#ivy-ray_error
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1440690259800363010
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ Hi there, can you share any request IDs (req_xxx) related to what you are currently trying? https://support.stripe.com/questions/finding-the-id-for-an-api-request
And to clarify, are you working with customer portals? https://docs.stripe.com/customer-management
yes, customer portal, logs have no failed requests as I assume this is not an API error, but rather JS of portal
Could you share the snippet of your code where you're creating the customer portal session?
I use TS lib, this code hasn't changed for a long time
async createStripeCheckoutSession(
email: string,
stripePriceId?: string,
): Promise<Stripe.Checkout.Session> {
const user = await this.userService.getUser(email)
const customThankYouPage = user?.niche?.thankYouPage
return await this.stripe.checkout.sessions
.create({
payment_method_types: ['card'],
customer_email: email,
line_items: [
{
price: stripePriceId,
quantity: 1,
},
],
mode: 'subscription',
success_url:
customThankYouPage ||
`${<string>this.configService.get('STRIPE_SUCCESS_URL')}${email}`,
//cancel_url: <string>this.configService.get('STRIPE_CANCEL_URL'),
})
.catch((error) => {
this.logger.error({
msg: `Error creating Stripe checkout session: `,
error,
})
throw error
})
}
Do you see a /v1/billing_portal/sessions request that corresponds to the erroring session in your workbench logs on your dashboard?
only successful session creations, when i click "Subscribe" there's no outbound request in network
Ah sorry, it's checkout sessions you're creating so, not customer portal sessions. The checkout sessions are created first, before showing the UI in your screenshot. Can you copy and paste one of the request IDs from them?
Do you have this test running on a publicly accessible URL that we would be able to see, in order to see if we can reproduce the same error?
I'm not sure, but I guess so, I can open it in incognito mode, just follow the link in the response
I tried that URL, but I was able to subscribe without error, so I wonder is there something specific to your browser that's causing issues. Have you tried with another browser/device to see if it's happening for you there too?
both me and my QA were able to reproduce, we have different operation systems, the error itself looks like some localisation, can country matter?
I will ask QA for additional error messages/ screens
Hi there ๐ jumping in as my teammate needs to step away. Taking a look to see if anything jumps out at me.
Is the Checkout Session associated with this request one where the error was encountered?
yes, it is
Perfect, thank you!
Oh, but does it actually block you from checking out?
yes, the subscribe button doesn't do anything
Can you share the ID of a Checkout Session that hasn't been completed? I'd like to load it on my end and see what I see.
Hm, I saw the same warning and was able to check out fine, I don't think they're related.
What happens when you click Subscribe? Any network logs or new errors?
nothing, just this, also you can see the Subscribe button is greyed out, tried with vpn - same issue, tried different stripe account (for different env) - also same issue
What is the ID of that Checkout Session?
That button looks clickable
If it's not, I do suspect there is something environmental on your end, as neither me nor my teammate (from different countries) were able to reproduce.
see the screen above its greyed out for me, i can add video, but tbh I'm out of ideas, here is the screen from issues page in chrome maybe that can be helpful
it seems like it treats some fields not filled
What are the exact steps you're following to reproduce this? Maybe it's something with autofill?
This was a country issue, it doesnt allow other localizations but doesnt show where the issue is. Once I have chosen my country, it started working for all other countries as well.
Hhmm, are you testing this flow from outside of the US by chance?
Ukraine
Okay, I have a theory, let me check some more things.
Do you still have the tab from that recording open? If so, can you grab the ID of the Checkout Session from the URL and paste it here (just to make sure I'm looking at the right objects). It's the part that starts with cs_test_
cs_test_a1YF7ZOL6dYqyJFGKjuFUlw9irq97REUjrGf1B4xloqxgc2mCMsVd2Ndsi#fidkdWxOYHwnPyd1blpxYHZxWjA0VWFjanBHZkd0a1dqcUJWcVYyd1dsYj1CdTZyNmZBbUBkfHxqMWhVZkR0VVdrTWZgXVQ9TGN1czczdFdSdWh%2FTE9kSkJVc3JnZmpfcjZEMnFxaVxmTGF9NTVsQURnN3FGVycpJ2hsYXYnP34nYnBsYSc%2FJz0xMzM1NDZmKDJjNmcoMTU9MShnPTJhKDQ1MjA9N2YxNjFkMjVgMTEyZycpJ2hwbGEnPydkNWAzYGQ1Nig9YDFkKDFgMDMoZDNkNigyMTQyNTw1MzA9MTdhMmNhMTAnKSd2bGEnPycxND0wZjI3NCg2NWc9KDFhMDIoZGE9MigzPGRhYGFmYGMzMzw8PDRgZjQneCknZ2BxZHYnP15YKSdpZHxqcHFRfHVgJz8ndmxrYmlgWmxxYGgnKSd3YGNgd3dgd0p3bGJsayc%2FJ21xcXV2PyoqYWBzNTQrZGxhYGErcHYneCUl
Thank you!
Okay, one more ask, can you grab a screen recording of the checkout page first being opened? I want to be able to show my teams the exact UI experience that you get when you open it
I will ask QA to make it
cs_test_a1l3xAOLedSqVEbvtaCeQRs1vEYsE5PNN9iETGDpUOOcg1b1DTIYYf4VJw#fidkdWxOYHwnPyd1blpxYHZxWjA0VXZuPF9Pf0RnQVMzQUxKQTVqXEBsMVdcSTxVV3BgajdoUWdLMG9JfXYzdl1mZFZEN3NOUF9Eaj00cjBSc1R1PDVhQ282bGFIRGpifWBwTGFhbklLNDJqNTVwN2E3MjNJXScpJ2hsYXYnP34nYnBsYSc%2FJzczZGE1ZDFmKGRgNTAoMTE2Zyg9NDNkKDA2YWRhMmdkZjA2NzI0YzVnNycpJ2hwbGEnPycwYD0xZGRgNigyPGM1KDEwZjUoZ2NnMShkPTdmMjRmNGA9Zz0wPWM2MTMnKSd2bGEnPydkPGQ1MDwwNShnPDxnKDExZDYoPGM3NChhMDcwMj1kMjw8N2ZjZDU8PWAneCknZ2BxZHYnP15YKSdpZHxqcHFRfHVgJz8ndmxrYmlgWmxxYGgnKSd3YGNgd3dgd0p3bGJsayc%2FJ21xcXV2PyoqdnFkYmA1NCtkbGFgYStwdid4JSUl
I'm sorry to keep asking more, but I can't test from where you're testing from, so I don't see the same things. Apologies for the delay as well, I'm juggling a couple threads.
What was seen was slightly different from what I had theorized, in a good way (ish), the system was behaving the way it's expected to. (aside from the button obviously)
Would you be willing to step through that flow two more times, with minor changes each time?
- Do it again, but complete the address form before switching countries
- Do it again, but before you change the country to US on the checkout page, check the checkbox at the bottom of the page to sign up for Link