question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

paymentSheet.present is not a function

See original GitHub issue

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 (<anonymous>) 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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mengonicommented, Dec 30, 2021

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

0reactions
ayubUOLcommented, Sep 27, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

stripe.confirmCardPayment is not a function - Stack Overflow
Your code is mixing up client-side and server-side code together which will not work. The stripe.confirmCardPayment() method comes from ...
Read more >
@capacitor-community/stripe - npm
Present Payment Sheet. create. You should connect to your backend endpoint, and get every key. This is "not" function at this Plugin.
Read more >
Confirm a card payment - Stripe JS Reference
If present, the payment method used with this PaymentIntent can be attached to a Customer, even after the transaction completes.
Read more >
PaymentSheet - capacitor-community/stripe Documentation
This is "not" function at this Plugin. So you will use HTTPClient ... When you do presentPaymentSheet method, plugin present PaymentSheet and get...
Read more >
Mastering Stripe PaymentSheet in React Native with Expo
Then, we initialize the PaymentSheet using the initPaymentSheet() function and pass in the client secret we got from the back end. We present...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found