#jabza
1 messages ยท Page 1 of 1 (latest)
Hello ๐
hey ๐
Typically 429s are for rate limits.
Can you share an example Checkout Session ID so that I can take a look?
sure! thanks
cs_test_a1dg6DbPTDfYEvc7W5BP3O7ptAzifaEJ1IUfzxtx0DKqiUSeinbwUBl2Ct
my backend logic looks like this:
mode: "subscription",
line_items: [{
price: req.query.pid,
quantity: 1
}],
subscription_data: subData,
customer: customerId,
customer_update: {
address: "auto"
},
automatic_tax: {
enabled: true
},
success_url: appUrl,
cancel_url: getSubUrl(partner.data.subdomain)
});```
if that helps - I create a new Stripe Customer before creating the session
Ah I think your URL is missing auth data. The complete URL for the Checkout session is following:
So the value after # is getting clipped somewhere
๐ค oh- could it be being stripped?
throw new Error("Invalid Checkout Session");
return res.redirect(cs.url);```
maybe I shouldn't use redirect but send the URL back to client in json
thanks I'll try this now!
๐
@deep otter that was it. huge thanks for the fast support!
passing back via JSON from the server did the trick
NP! ๐ Happy to help