#Indikakis2
1 messages ยท Page 1 of 1 (latest)
Is that a call in your JS?
yes
that's weird. Can you screenshot the place?
sure
could that be a payment intent client secret?
I just tried it with the secret key and I know I must not use it in client side. For the test pupose I tried. So I got this ๐
error1:You should not use your secret key with Stripe.js.
Please pass a publishable key instead.
Yes definitely don't use secret key client-side. 1 min
const stripe = Stripe('pk_test_xxx, {
betas: ['server_side_confirmation_beta_1'],
apiVersion: '2022-08-01;server_side_confirmation_beta=v1',
});
I notice you may lack the apiVersion when initialize the Stripe instance
Then I get api version invalid error. That's why I removed it. Let me try again in that way
My payment element not mounting and gives this error in console
Do I have to upgrade my api version to 2022-08-01?
Okie, that's permission error. Have you contacted our Support team as the Doc said?
You will need to be set engaged into the beta
Yes let's wait for them to let you in the program!
Sorry for the inconvenience ๐
It's indeed the step to allow you to call update on PaymentIntent using the Publishable key
it's all right. how long will it take?
Probably a few days, please be patient ๐