#Seb-mobile-payments
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ it is a bit tricky to provide guidance without a better understanding of what's going wrong. Are you seeing any errors?
Yes we get some errors but it seems that there is a lot of different cases.
The last one I get reported was a customer that gets an sca check error : The PaymentIntent requires a PaymentMethod or Source to be attached before using STPPaymentHandler.
Our integration is based on this doc: https://stripe.com/docs/payments/accept-a-payment-synchronously
We also have the error "The current action is not yet completed. STPPaymentHandler does not support concurrent calls to its API."
Addressing the payment intent issue first, how are you trying to attach a payment method or source to that payment?
In that doc it suggests passing the payment method ID in with the server-side call to create the payment intent . Are you doing that?
Yes this is what I am doing, I posted on a issue a simplified version of my code to show how it works: https://github.com/stripe/stripe-react-native/issues/733#issuecomment-993709310
And to be clearer, we have some successful payments in our app and if we test it with the test cards in staging it works well but on production we have some errors that we do not understand.
Do you have an ID of the payment intent that you saw this for?
I have the id of the payment method (pm_1JHNlgBBURfSZNfggR5bHjR5) but not of the payment intent as the sca check was not successful and I get the paymentIntent id on success of the call to handleCardAction
It seems like we may have gone between a few different errors in this thread. What is the error you are seeing on handleCardAction?
The user tried several times to do the payment and had two different errors:
- The provided PaymentMethod has failed authentication. You can provide payment_method_data or a new PaymentMethod to attempt to fulfill this PaymentIntent again. (4 times)
- The PaymentIntent requires a PaymentMethod or Source to be attached before using STPPaymentHandler. (1 time)
The first try were 10 hours ago and the last one 3h ago
๐ @shut prairie has to head out so I'm taking over - give me a few mi nutes to catch up
On my side I am close to finish my day and I am off tomorrow so if we can't finish today I will ping you back on thursday