#Dayman

1 messages · Page 1 of 1 (latest)

empty reefBOT
safe brook
#

Can you share the code where you initialise Stripe.js?

pulsar raptor
#
        {
          betas: ["cart_beta_1"],
        }
      );```
#

I followed the example in the docs

#

All the API routes work fine, the cart_session cookie get set and I can see that the cart is initialised properly.

safe brook
#

One second

pulsar raptor
#

Sure thing

safe brook
#

Yeah I think the docs are wrong and the error message is accurate. Specifically:

In order to access this beta feature, you must explicitly specify which version of the beta you want, by passing an HTTP header "Stripe-Version: 2020-08-27;cart_sessions_beta=v1\

const stripe = Stripe("pk_test_xxx", {
  apiVersion: "2020-08-27;cart_sessions_beta=v1"
  betas: ["cart_beta_1"],
});
#

Should work

pulsar raptor
#

I am still getting the same error unfortunately.

safe brook
#

Then I recommend you speak with the team directly (you should of got an email address when you were added to the beta). We don't really support betas directly here

pulsar raptor
#

Gotcha, thanks for the help anyway 😄 I'll see if I can get in touch with them

safe brook
#

Sorry, not familiar with that beta/feature otherwise I'd have known