flutter_stripe icon indicating copy to clipboard operation
flutter_stripe copied to clipboard

Support future payment for web

Open zengshan233 opened this issue 2 years ago • 3 comments

I'm using the method of "confirmSetupIntent" to save card for future payment in my website, but experiencing unimplemented error. Is there any plans to complete it ?

zengshan233 avatar May 13 '22 13:05 zengshan233

Web is a bit lacking behind at the moment but I added it as an enhancement and will let you know when we start working on it

remonh87 avatar May 16 '22 18:05 remonh87

Hi @remonh87, I noticed the confirmSetupIntent function seems to be implemented in here for web, is this function in a usable stage?

michaelhwn avatar May 19 '22 20:05 michaelhwn

I am getting the same error (and getting null response), but the payment method is being saved correctly on Stripe.

SeriousMonk avatar Sep 17 '22 14:09 SeriousMonk

@remonh87 Do you know when Future payment for web will be supported?

PatrikGolubar avatar Jan 11 '23 07:01 PatrikGolubar

@jamesblasco can you answer above question? You have the best insight on the plans for the web

remonh87 avatar Jan 11 '23 08:01 remonh87

I have been working this past weekend to make the flow work for web, it should be ready next week.

jamesblasco avatar Jan 11 '23 08:01 jamesblasco

@jamesblasco & @remonh87 When update will be available?

PatrikGolubar avatar Jan 17 '23 11:01 PatrikGolubar

I have been working this past weekend to make the flow work for web, it should be ready next week.

@jamesblasco I would like to help with this. Can you give me some direction on where to look in the code?

sleewok avatar Feb 02 '23 16:02 sleewok

@jamesblasco: Do you have any new informations about this? It would be nice to have this update in next two weeks.

PatrikGolubar avatar Feb 15 '23 19:02 PatrikGolubar

I have been working this past weekend to make the flow work for web, it should be ready next week.

Can you give us any information about this update ? It would be really nice to have it. I can't continue with app development without this. Please let me know. If you don't have time, please let me know how can I fix that by myself?

PatrikGolubar avatar Mar 10 '23 11:03 PatrikGolubar

I have been working this past weekend to make the flow work for web, it should be ready next week.

Can you give us any information about this update ? It would be really nice to have it. I can't continue with app development without this. Please let me know. If you don't have time, please let me know how can I fix that by myself?

Same here. This is blocking our release. I have offered to lend a hand, but I just need pointed in the right direction.

The maintainers of this package do it in their spare time, so I understand that it isn't a huge priority... We may be out of luck and need to find another way to get this functionality to work with the plugin as-is for now.

sleewok avatar Mar 10 '23 13:03 sleewok

Sorry for the delay. From the maintainers I am the one taking ownership of this. I am in the process of changing jobs so this last couple weeks I had too many things on my plate.

The current blocker right now is the way to handle javascript union types in dart. In the first release of this library I used a technique that I do not think it will work long term. I have been working on a new version for this that con support setup intents. I will push today what I have so far into https://github.com/flutter-stripe/flutter_stripe/pull/1079 so you can take a look. I will try to speed up this as much as possible.

jamesblasco avatar Mar 10 '23 14:03 jamesblasco

Sorry for the delay. From the maintainers I am the one taking ownership of this. I am in the process of changing jobs so this last couple weeks I had too many things on my plate.

The current blocker right now is the way to handle javascript union types in dart. In the first release of this library I used a technique that I do not think it will work long term. I have been working on a new version for this that con support setup intents. I will push today what I have so far into #1079 so you can take a look. I will try to speed up this as much as possible.

I understand that you work in your spare time, so no problem for delay :) If I understand right, code which you pushed, will work now on web or does it need some changes?

PatrikGolubar avatar Mar 10 '23 15:03 PatrikGolubar

This is already part of latest web sdk

remonh87 avatar Apr 29 '23 16:04 remonh87

This is already part of latest web sdk

Fantastic. Thank you for getting this working. I will give it a try this week. Can you point me towards the commit that finished the implementation?

sleewok avatar Apr 29 '23 16:04 sleewok