-
Notifications
You must be signed in to change notification settings - Fork 1k
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
STPPaymentHandler.shared().handleNextAction can return status == .failed but no handleActionError #1769
Comments
@mvarie thanks for the report, I'll see if I can find anything that looks suspicious here. If you manage to reproduce, could you look at the status of the returned PaymentIntent? |
@csabol-stripe the issue originates where your code checks if However, you then check I was sometimes asking your sdk to present on a controller that was already presenting (my bad) but I never got the error message - that's why I was confused and trying to find a problem with the payment flow. stripe-ios/Stripe/STPPaymentHandler.swift Lines 1158 to 1195 in 73306f3
Thanks! |
Thanks for the followup @mvarie! I've got a fix that we'll include in the next release so these errors are reported |
This should be fixed in 21.4.0. |
Summary
Sometimes, when using
STPPaymentHandler.shared().handleNextAction
with test card4000 0000 0000 3063
which requires 3DS, the completion block is called with a seemingly inconsistent set of parameters:status == .failed
paymentIntent ==
populated and seemingly normalhandleActionError == nil
It is unclear at this stage why the
status
is.failed
, as no error object is offered.Code to reproduce
I have been unable to identify a situation where this can be consistently reproduced.
My best guess is that cases that return an empty error
handleActionError == nil
, but a seemingly valid and populatedpaymentIntent
, and a.failure
status, pass by this line:stripe-ios/Stripe/STPPaymentHandler.swift
Line 555 in 73306f3
.. but it's kind of a wild guess.
iOS version
14.4 , on physical device (iPhone 8)
Installation method
Swift Package Manager
SDK version
21.3.1
Other information
I wish I had more information to offer - I'll keep on monitoring these calls and see if I can find out more.
The text was updated successfully, but these errors were encountered: