#miran-element

1 messages · Page 1 of 1 (latest)

wet wasp
tacit pine
#

Is this error because of the secret key not being passed or anything else is happening here?

wet wasp
#

The error you observed is due to an attempt to parse a PaymentIntent that does not exist, this can be due to a number of reasons, e.g. using a test secret key to try and fetch a PaymentIntent in live mode, trying to fetch a PaymentIntent from a Connected account.

To allow me to help you further, I was wondering if you could provide me with either the PaymentIntent id (pi_xxx), the request id (req_xxx) or your account id please (acct_xxx).

normal light
#

To be clear, you need the PaymentIntent secret to be passed in there, not the secret key

#

The PaymentIntent Secret is generated each time you create a PaymentIntent on server side. With 1 Stripe Account, you can have as many PaymentIntent (hence as many PaymentIntent secret) as you want

tacit pine
#

I have changed the test mode keys with live mode public and secret keys.

#

in the .env file in our laravel application.

#

pi_3JzD1nIbABbFHjKR14T9rgle

#

payment_intent id

#

um, hello?

normal light
#

Hmm you shouldn't change from test mode key to live mode key at all. Test vs Live is a different thing

#

it should looks like pi_xxx_secret_yyy

tacit pine
#

pi_1DpdYU2eZvKYlo2CBIjRuKHh_secret_PtKQprmtQrGEEbgVoamKc5R6P

#

here you go..

normal light
#

Yeah, that should be good to pass into the PaymentElement initialization call