flutter-stripe / flutter_stripe

Flutter SDK for Stripe.
https://pub.dev/packages/flutter_stripe
930 stars 514 forks source link

[Web] retrievePaymentIntent + handleNextAction #1746

Open guidotheelen opened 4 months ago

guidotheelen commented 4 months ago

I need the retrievePaymentIntent and handleNextAction functions implemented for Flutter web to enable Giropay and 3Ds credit card payments.

Or are there any other solutions / workarounds at the moment?

guidotheelen commented 4 months ago

@remonh87 Is there a plan to support these functions on Web?

remonh87 commented 4 months ago

@guidotheelen we have lmited capacity so we divide our time based on following:

Above are definitely something I want to implement but no ETA on this yet

guidotheelen commented 4 months ago

@remonh87 If I were to contribute to the development of these features, could you shed light on the complexity involved? I'm uncertain about the level of complexity I might encounter.

guidotheelen commented 3 months ago

@remonh87 I'm figuring out how much work would be needed to get complex payment flows to work on Flutter Web. (3DS / Giropay / Ideal)

remonh87 commented 3 months ago

@guidotheelen Ideal is working on the web through the webelement. The same goes for 3DS and Giropay. See for example: https://docs.stripe.com/payments/ideal/accept-a-payment?web-or-mobile=web&payments-ui-type=elements . If things are not working let me know

remonh87 commented 3 months ago

I would recommend take a look at the latest dev version of https://pub.dev/packages/flutter_stripe_web where we are using the new jsinterop from flutter. See branch feat/new_interop

guidotheelen commented 3 months ago

@remonh87 What do you mean by: "working on the web through the webelement"? Render a HTML/JS page within Flutter Web and process the payment from there?

EduardDumitrescu commented 1 month ago

I have a pr opened (https://github.com/flutter-stripe/flutter_stripe/pull/1881) where I have added the methods needed for a deferred payment flow, these including retrievePaymentIntent and handleNextAction.