#Kunal Verma-checkout

1 messages · Page 1 of 1 (latest)

neon adder
#

Hi there!

#

Did you get any error message when trying to create the Checkout Session?

rigid thorn
#

Hey,
I haven't got any error message as of now! Tbh, i haven't taken a step forward from this part, as it was not working

neon adder
#

So it looks like your code is correct but you are using the wrong API key.

rigid thorn
#

I am actually using the publishable API key right now! The POST request only works with the secret API key? Is that the case?

neon adder
#

Yes, exactly 🙂

rigid thorn
#

But right now as I am in the process of developing the application, would want to stay in the test mode only (using the publishable key).
So, if this would work once i put in my secret key (which i can do in future), then I probably can move ahead with following the tutorial further from this point, right?

neon adder
#

You have 2 secret keys (test mode and live mode) and 2 publishable keys (test mode and live mode).

#

Here you need to use the test mode secret key.

#

It should look like this: sk_test_xxx