capacitor-community / stripe

Stripe Mobile SDK wrapper for Capacitor
https://capacitor-community-stripe.netlify.app/
MIT License
197 stars 77 forks source link

Support Server Side confirmation Flows #384

Open barooahabinash opened 2 months ago

barooahabinash commented 2 months ago

Is your feature request related to a problem? Please describe. We have an app for iOS & Android built using ionic & capacitor. Although after integration, the payment sheet works and I get options to pay using Card, Apple/ Google pay, but as soon as I confirm the payment it throws me an error message saying - "you can no longer use this publishable key and client secret to confirm this payment intent as a confirmation has already been attempted". Please see the screenshot below.

We are using server side confirmation flows and the payment intent is confirmed on the server side. Does this package support this, if yes can you please let me know how to set those properly?

Describe the solution you'd like Use a server side confirmed payment intent

Additional context Screenshot of the issue I am facing

Screenshot 2024-08-28 at 16 18 00

Usage Product Payment Sheet

Product Name: Ecommerce App Product URL : Using Function:

abinashVS commented 2 months ago

@rdlabo Can anyone please help?

rdlabo commented 1 month ago

Where can I find the Stripe documentation describing this feature? I don't know of any server-side confirmation, as I have never used it.