Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot pass returnUrl to Stripe for FPX Payment #147

Closed
syaraf-az opened this issue Jun 15, 2021 · 4 comments
Closed

Cannot pass returnUrl to Stripe for FPX Payment #147

syaraf-az opened this issue Jun 15, 2021 · 4 comments
Assignees

Comments

@syaraf-az
Copy link

Describe the bug
When attempting a payment using FPX, '.confirmPaymentMethod' failed with code 'PaymentIntentError.unknown'. When I checked my Stripe dashboard for logs, it show that I must pass 'returnUrl' when using FPX.

However, there isn't a way to supply 'returnUrl' parameter to the library. I read through the source code and it seems like 'urlScheme' need to be defined for the parameter to be set, but the library seems not providing a way on how configure nor set it.

Smartphone / tablet

  • Device: iPhone 11
  • OS: iOS 14.6
  • Package version: 1.0.2
  • Flutter version: 2.2.2
@thorsten-stripe
Copy link
Contributor

@jonasbark
Copy link
Member

I think this PR is related: #84

@syaraf-az
Copy link
Author

syaraf-az commented Jun 15, 2021

It needs to be provided when initializing Stripe: https://github.com/flutter-stripe/flutter_stripe/blob/main/packages/stripe_platform_interface/lib/src/stripe_platform_interface.dart#L35

Yeap, but not passed to the platform code when invoked:

await _methodChannel.invokeMethod('initialise', {

I think this PR is related: #84

I see, hopefully it would be merged soon.

@jonasbark
Copy link
Member

Merged and published

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants