ecommerce_sanity_stripe
ecommerce_sanity_stripe copied to clipboard
When I click on payment button it shows only redirecting and these below errors on console?
@tanu8een Hello,
Do you set an account or business name at https://dashboard.stripe.com/account ?
@tanu8een
What does your stripe.js file look like? It is passing the data correctly to the redirectToCheckout function?
This happened to me as well. It seems that when you clic on Reveal the secret key, stripe actually copies the publishable key again, before finally copying the secret key once you click a second time.
Just double check the secret key on NEXT_PUBLIC_STRIPE_SECRET_KEY.
If you go to the developer dashboard on stripe, you can see the actual error message: "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."
check on the application part of your developer tool to detect the error, Stripe was precise with the errors, I had couple of errors , which were all resolved .
done