paymentSheet.present is not a function
See original GitHub issueDescribe 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
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
Any update for this issue? I’m trying to integrate it in ionic capacitor.