capacitor-community / stripe

Stripe Mobile SDK wrapper for Capacitor
MIT License
185 stars 74 forks source link

paymentSheet.present is not a function #141

Closed zulkarnainfaizan closed 2 years ago

zulkarnainfaizan commented 2 years ago

Describe the bug Not able to present card action sheet in my ionic app when implementing Payment Sheet part: I am getting this error: TypeError: _this3.paymentSheet.present is not a function at web.ts:74 at Generator.next () at asyncGeneratorStep (asyncToGenerator.js:3) at _next (asyncToGenerator.js:25) at asyncToGenerator.js:32 at new ZoneAwarePromise (zone.js:1340) at asyncToGenerator.js:21 at StripeWeb.presentPaymentSheet (web.ts:67) at index.js:196 at ZoneDelegate.invoke (zone.js:400) on this function

export async function present(): Promise<void> {
  const result = await Stripe.presentPaymentSheet();
}

screenshot image

mengoni commented 2 years ago

Hi, I experienced the same issue and solved upgrading stripe elements package to 1.0.0

"@capacitor-community/stripe": "^3.4.2", "@stripe-elements/stripe-elements": "1.0.0",

Hope it helps

rdlabo commented 2 years ago

Please console.log(this.paymentSheet); This may not be plugin issue.

rdlabo commented 2 years ago

Is this issue resolved? This don't has any update, so will close. If be update, please re-open. Thanks.

rdlabo commented 2 years ago

@zulkarnainfaizan @mengoni Did you adapt this plugin for production? If yes, please tell us what app. Please help us to develop this plugin in 2022. https://github.com/capacitor-community/stripe/issues/145 Thanks.

prabhjotAppmobi commented 1 year ago

I am getting the same issue in version 4.0.0? is there any approach to solve it?

praticboutic commented 1 year ago

me too

ayubUOL commented 1 year ago

Any update for this issue? I'm trying to integrate it in ionic capacitor.

giuseeFG commented 7 months ago

any news about this issue?