#girl-paymentelement-livemode
1 messages · Page 1 of 1 (latest)
This is the req id that failed: req_FnGIIyh090FUav
Do you have the Payment Intent ID for the client secret you used?
yes pi_3OMzA2L28DqkxcJB0MtT9kqj
So that Payment Intent was created in test mode, but you're trying to use it with a live mode Elements session
But I switched it to the live mode
Apparently you didn't. Somewhere in your code your test mode API key is being used instead of your live mode key when creating the Payment Intent
But the dashboard shows that the payment intent was created :
Is the dashboard in test mode?
If that Payment Intent is showing, then you have test mode toggled to "on"
Sorry, let's back up a little bit.
Okay, so you sent a request ID for a request made in live mode --> req_FnGIIyh090FUav
Then a live mode payment intent --> pi_3OMzA2L28DqkxcJB0MtT9kqj
Where did you get the client secret for the Elements request? It couldn't have been the same client secret from that Payment Intent as far as I can tell
Okay so I have made a new req id req_Ga3J0ed9zvIhZh
the client secret was: pi_3ON0C6L28DqkxcJB057jqpYw_secret_XnEDt0WUBN2vtPd393jOWzdan
This is a test mode Payment Intent --> pi_3ON0C6L28DqkxcJB057jqpYw
I also get this errors in the console:
The Element you're passing it to was made in live mode
okay
So you need to step through your code and find the function call that's creating the Payment Intent, then ensure the Create Payment Intent API call is using your live mode API key
okay got it Thankyou
Sure thing!