We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b44bdd0 commit 79bf284Copy full SHA for 79bf284
packages/nativescript-stripe/standard/index.android.ts
@@ -157,7 +157,7 @@ export class StripeStandardPaymentSession {
157
const data = this._data;
158
const shippingMethod = data?.getShippingMethod();
159
const shippingCost = shippingMethod ? shippingMethod.getAmount() : 0;
160
- const id = data.getPaymentMethod()?.id;
+ const id = data?.getPaymentMethod()?.id;
161
if (!id) {
162
console.warn('Payment method undefined!');
163
this.listener.onError(500, 'Payment method undefined!');
0 commit comments