ecommerce_sanity_stripe icon indicating copy to clipboard operation
ecommerce_sanity_stripe copied to clipboard

When I click on payment button it shows only redirecting and these below errors on console?

Open tanuuu18 opened this issue 2 years ago • 4 comments

Screenshot (70)

tanuuu18 avatar May 13 '22 11:05 tanuuu18

@tanu8een Hello,

Do you set an account or business name at https://dashboard.stripe.com/account ?

YanaKrukovets avatar May 14 '22 11:05 YanaKrukovets

@tanu8een

What does your stripe.js file look like? It is passing the data correctly to the redirectToCheckout function?

miahthegreat avatar May 15 '22 03:05 miahthegreat

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."

sodapopjam avatar May 24 '22 07:05 sodapopjam

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 .

chimoski avatar Jun 21 '22 07:06 chimoski

done

tanuuu18 avatar Oct 12 '23 05:10 tanuuu18