#girl-paymentelement-livemode

1 messages · Page 1 of 1 (latest)

proud lindenBOT
spark hornet
#

This is the req id that failed: req_FnGIIyh090FUav

flint delta
#

Do you have the Payment Intent ID for the client secret you used?

spark hornet
#

yes pi_3OMzA2L28DqkxcJB0MtT9kqj

flint delta
#

So that Payment Intent was created in test mode, but you're trying to use it with a live mode Elements session

spark hornet
#

But I switched it to the live mode

flint delta
#

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

spark hornet
#

But the dashboard shows that the payment intent was created :

flint delta
#

Is the dashboard in test mode?

spark hornet
#

nope

#

its live

flint delta
#

If that Payment Intent is showing, then you have test mode toggled to "on"

spark hornet
#

its off

flint delta
#

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

spark hornet
#

Okay so I have made a new req id req_Ga3J0ed9zvIhZh
the client secret was: pi_3ON0C6L28DqkxcJB057jqpYw_secret_XnEDt0WUBN2vtPd393jOWzdan

flint delta
#

This is a test mode Payment Intent --> pi_3ON0C6L28DqkxcJB057jqpYw

spark hornet
#

I also get this errors in the console:

flint delta
#

The Element you're passing it to was made in live mode

spark hornet
#

okay

flint delta
#

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

spark hornet
#

okay got it Thankyou

flint delta
#

Sure thing!

proud lindenBOT