#Barasinga
1 messages · Page 1 of 1 (latest)
Hi there!
Hi
In the request you shared, account acct_1LrcmFGPzB0sOwRz is trying to confirm the PaymentIntent pi_3MFBAYIZ4uMmIcMu0BWErrUc. But that PaymentIntent doesn't belong to that account, so it fails.
We have two stripe accounts under same company
So if you are sure the PaymentIntent ID you are using is correct, it means you are using a wrong API key.
Is it because the intent is from different acocunt?
Ok let us try to change
Hi
We have checked
we have verified
We are using the same secret and the publish key on our server and the client app
The intent is generated from the server and then it is used from the mobile app using the same key
it really can't be anything else than using the wrong key
We have matched the keys each and every character from our stripe dashboard account and the one used in our application
One question, on our server we are using publish key and secret key to obtain the payment intent
but in our mobile app we are using public key only from the live account., can it create any issue or we must use the secret key as well?
you would use the publishable key on the app yes, never the secret key
alright in this case we are doing the same thing
you're probably using the publishable key from a different account in the app(not the one matching the secret key used to create the PI).
Just the publish key in the app side at the moment
They are same we just verified them once again
Do you mean on our server or from the client app?
However the same keys are working fine with the normal card payment method
Issue is with Apple Pay
maybe your app is using a different code path for Apple Pay than regular payments?
it's hard for me to say much here, I don't know your code. If you can share something like the ViewControllers in your app I could maybe suggest something or point out where adding log lines might be useful
for that PaymentIntent pi_3MFBAYIZ4uMmIcMu0BWErrUc, the public key for that account should look like pk_test_51I0AA____________bb1bfl0 if that helps