#jabza

1 messages ยท Page 1 of 1 (latest)

warped cedarBOT
deep otter
#

Hello ๐Ÿ‘‹

vivid epoch
deep otter
#

Typically 429s are for rate limits.
Can you share an example Checkout Session ID so that I can take a look?

vivid epoch
#

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

vivid epoch
#

๐Ÿค” 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
#

๐Ÿ‘

vivid epoch
#

@deep otter that was it. huge thanks for the fast support!

#

passing back via JSON from the server did the trick

deep otter
#

NP! ๐Ÿ™‚ Happy to help