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

handleCardAction not calling returnURL / authentication WebView not closing #772

Closed
te-online opened this issue Jan 12, 2022 · 2 comments · Fixed by #1104
Closed

handleCardAction not calling returnURL / authentication WebView not closing #772

te-online opened this issue Jan 12, 2022 · 2 comments · Fixed by #1104
Labels
bug Something isn't working In progress ios

Comments

@te-online
Copy link

Describe the bug
When calling handleCardAction, if an authentication modal opens for 3D-secure, it is never closed, since no return URL is called.

To Reproduce
Steps to reproduce the behavior:

  1. Create a payment intent with a test card that always requires authentication
  2. Call handleCardAction(paymentIntentClientSecret)
  3. Go through 3D-secure or cancel it
  4. WebView / Sheet does not close

Expected behavior
The authentication WebView closes, because scheme://safepay is being called and the app in question has implemented a handler for these links and calls handleURLCallback subsequently.

Screenshots
Simulator Screen Shot - iPhone 12 Pro - 2022-01-12 at 12 21 18

Smartphone (please complete the following information):

  • Device: iPhone 12
  • OS: iOS 15.2
  • Browser: Safari
  • Version [e.g. 22] n/a

Additional context
I already mentioned this problem in this related issue. However, in our app closing of the authentication modal works fine now when using confirmSetupIntent, because we implemented the handler for the safepay link. It's just not working when using handleCardAction.

It looks to me like in this method the additional returnURL parameter is missing from the resulting paymentIntent object. Not sure if this is the cause though.

@Eth3rnit3
Copy link

Any news about this problem?

@charliecruzan-stripe
Copy link
Collaborator

Fix is incoming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working In progress ios
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants