Passing null to completion() results in StripePaymentDelegate.prototype.paymentContextDidFinishWithError = function (paymentContext, status, error) being called with status equal to 0, which is the value of STPPaymentStatus.Success. The following change resolves the issue for me:
Calls to the user-implemented
capturePayment
handler that result in error end up triggeringonPaymentSuccess
listener.I believe this is due to the following code in index.ios.js:
Passing
null
tocompletion()
results inStripePaymentDelegate.prototype.paymentContextDidFinishWithError = function (paymentContext, status, error)
being called withstatus
equal to 0, which is the value ofSTPPaymentStatus.Success
. The following change resolves the issue for me:Version: 8.0.2