You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have the integration with manual confirmation_method on the server.
Using PaymentSheet.FlowController we collect a payment method on iOS, send it to the server. Then the server creates a payment intent with the provided payment method and immediately confirms it. If the payment intent is confirmed right away without the next action needed, we return payment_intent_client_secret to the iOS client and call this:
When the next action is required and we call self.intentCreationCallback?(.success(clientSecret)) on iOS, it launches 3D Secure flow on iOS without issues. But if it's not required and intent was confirmed right away, we see this issue.
So the thing is that the payment on its own works perfectly, just the iOS SDK shows the error in case the intent was confirmed right away on the server.
Question
What should we do in this case? Apparently, the intent is correct and it does exist, payment is successfully executed.
We are migrating to Payment Element from Basic integration and there is no way to make it work with Apple Pay sheet correctly in this case.
The text was updated successfully, but these errors were encountered:
Just to provide more context about our migration to Payment Element, one issue in SDK was fixed related to our case, so now it's the second one remaining that blocks the complete transition to Payment Element.
Ariandr
changed the title
[BUG] Calling self.intentCreationCallback?(.success(clientSecret)) after intent was confirmed on the server causes error
[Question] Calling self.intentCreationCallback?(.success(clientSecret)) after intent was confirmed on the server causes error
Feb 3, 2025
Summary
We have the integration with
manual confirmation_method
on the server.Using
PaymentSheet.FlowController
we collect a payment method on iOS, send it to the server. Then the server creates a payment intent with the provided payment method and immediately confirms it. If the payment intent is confirmed right away without the next action needed, we returnpayment_intent_client_secret
to the iOS client and call this:...
self.intentCreationCallback?(.success(clientSecret))
Which gives this error:
ERROR apiError(StripeCore.StripeAPIError(type: StripeCore.StripeAPIError.ErrorType.invalidRequestError, code: Optional("resource_missing"), docUrl: Optional(https://stripe.com/docs/error-codes/resource-missing), message: Optional("Risorsa payment_intent non trovata: \'pi_3QoMsmGZhTdR0Vyo0EFXXXX\'"), param: Optional("intent"), statusCode: Optional(404), requestID: Optional("req_UiMP9kIq1XXXXX"), _allResponseFieldsStorage: Optional(6 fields)))
PaymentSheet.IntentConfiguration
config is this:Code to reproduce
self.intentCreationCallback?(.success(clientSecret))
iOS version
iOS 18.2
Installation method
Cocoapods
SDK version
Stripe 23.29.2
Other information
When the next action is required and we call
self.intentCreationCallback?(.success(clientSecret))
on iOS, it launches 3D Secure flow on iOS without issues. But if it's not required and intent was confirmed right away, we see this issue.So the thing is that the payment on its own works perfectly, just the iOS SDK shows the error in case the intent was confirmed right away on the server.
Question
What should we do in this case? Apparently, the intent is correct and it does exist, payment is successfully executed.
We are migrating to Payment Element from Basic integration and there is no way to make it work with Apple Pay sheet correctly in this case.
The text was updated successfully, but these errors were encountered: