#Indikakis2

1 messages ยท Page 1 of 1 (latest)

upper oakBOT
hearty radish
#

Is that a call in your JS?

remote anchor
#

yes

hearty radish
#

that's weird. Can you screenshot the place?

remote anchor
#

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.

hearty radish
#

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

remote anchor
#

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?

hearty radish
#

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

remote anchor
#

no not yet

#

I just signed up with my email.

hearty radish
#

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

remote anchor
#

it's all right. how long will it take?

hearty radish
#

Probably a few days, please be patient ๐Ÿ™‚