jonasbark / flutter_stripe_payment

[DISCONTINUED] A flutter plugin with stripe payment plugin integration
MIT License
307 stars 243 forks source link

returnUrlForSca in HTTP format? #321

Closed danielo17 closed 2 years ago

danielo17 commented 2 years ago

Sorry, I think that my question below refers to stripe_sdk library, not to stripe_payment. I cannot delete my comment at this stage, so please close it.


Hello,

I´m struggling to use a standard firebase dynamic link as a returnUrlForSca when paying with a secured card, standard dynamic links are "https://..." urls.

Digging a bit, I see there is check in the code that doesn´t allow "https..." url after the pament, when the library calls internally a "_isValidScheme" method.

Is there any way to define an https url as returnUrlForSca when calling "init"?

I dare to suggest this possibility to be added in a new release, since Stripe itself (if you use their bare API) perfectly accept these.

For the time being my code works because I manually changed the code... which is not future proof of course.

Any help out there?

Many thanks in advance.