Skip to content

Commit 79bf284

Browse files
authored
Update index.android.ts (#166)
1 parent b44bdd0 commit 79bf284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nativescript-stripe/standard/index.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export class StripeStandardPaymentSession {
157157
const data = this._data;
158158
const shippingMethod = data?.getShippingMethod();
159159
const shippingCost = shippingMethod ? shippingMethod.getAmount() : 0;
160-
const id = data.getPaymentMethod()?.id;
160+
const id = data?.getPaymentMethod()?.id;
161161
if (!id) {
162162
console.warn('Payment method undefined!');
163163
this.listener.onError(500, 'Payment method undefined!');

0 commit comments

Comments
 (0)