#Kunal Verma-checkout
1 messages · Page 1 of 1 (latest)
Hi there!
Did you get any error message when trying to create the Checkout Session?
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
I had a quick look at your Stripe account, and I do see an error when creating a Checkout Session: https://dashboard.stripe.com/test/logs/req_ewhFLpn0hXpehh
This API call cannot be made with a publishable API key. Please use a secret API key. You can find a list of your API keys at https://dashboard.stripe.com/account/apikeys.
So it looks like your code is correct but you are using the wrong API key.
I am actually using the publishable API key right now! The POST request only works with the secret API key? Is that the case?
Yes, exactly 🙂
You can learn more about Stripe API keys here: https://stripe.com/docs/keys
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?