#shiju-s

1 messages · Page 1 of 1 (latest)

quartz narwhalBOT
viscid sleet
#

what is that req_xxx value, can you paste it?

mighty lance
#

req_6uoRofcvVrPw2r

viscid sleet
#

you're using the wrong API key

#

that CheckoutSession was created on the Stripe account called Mozanta but you are trying to retrieve it using the API key of the account called Mozcom

mighty lance
#

ok thanks

#

Hi karllekko, Api key means secret key and public key right

viscid sleet
#

in this case, the secret key yes

mighty lance
#

but we were using same secret key when create checkOutSession and validation

viscid sleet
#

not sure what you mean, but the error is what I said

#

you used the secret key of Mozanta to create the CheckoutSession, and then when you call CheckoutSession.retrieve(id), you are using the secret key of Mozcom

#

I'd suggest carefully checking your code to see how you set Stripe.apiKey = ... in all cases

quartz narwhalBOT
mighty lance
#

but the secretKey is hardcoded

#

i don't understand how is that happening