#Barasinga

1 messages · Page 1 of 1 (latest)

fading flameBOT
tacit sierra
#

Can you share the code that results in that error?

radiant moat
#

{"code": "Failed", "declineCode": null, "localizedMessage": "Invalid Payment Intent client secret: sk_test_51LrcmXXXXX", "message": "Invalid Payment Intent client secret: sk_test_51LrcmFGPzB0sOwRzYFBPWYtT7aOp2E0MWMDofbuWvfdeSnvZXXXXXXXXX", "stripeErrorCode": null, "type": null}

tacit sierra
#

sk_test_xxx is not a Payment Intent client secret

#

That's your API secret key

#

What are you trying to do?

radiant moat
#

We have a react native mobile app and we are trying to use stripe payment page for card processing. Idea is that the user enters the card details and we obtain a token from stripe to save on our server for future payments

tacit sierra
radiant moat
#

So our app should first communicated with our backend to obtain the client_secret then we will use this in the payment intent to send to stripe server?

#

Correct

tacit sierra
#

No, your backend will create the Payment Intent via the Stripe API and then return the response to your React Native app