#ivy-ray_error

1 messages ยท Page 1 of 1 (latest)

elfin hullBOT
#

๐Ÿ‘‹ 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.

thick birch
mild lichen
#

yes, customer portal, logs have no failed requests as I assume this is not an API error, but rather JS of portal

thick birch
#

Could you share the snippet of your code where you're creating the customer portal session?

mild lichen
#

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
      })
  }
thick birch
#

Do you see a /v1/billing_portal/sessions request that corresponds to the erroring session in your workbench logs on your dashboard?

mild lichen
#

only successful session creations, when i click "Subscribe" there's no outbound request in network

thick birch
#

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?

mild lichen
#

ah sorry, i thought that's the same thing

#

req_ERmr01PxShHIja

thick birch
#

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?

mild lichen
#

I'm not sure, but I guess so, I can open it in incognito mode, just follow the link in the response

thick birch
#

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?

mild lichen
#

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

elfin hullBOT
undone yoke
#

Hi there ๐Ÿ‘‹ jumping in as my teammate needs to step away. Taking a look to see if anything jumps out at me.

undone yoke
mild lichen
#

yes, it is

undone yoke
#

Perfect, thank you!

mild lichen
#

tried Chrome and Safari - reproduces on both

undone yoke
#

Oh, but does it actually block you from checking out?

mild lichen
#

yes, the subscribe button doesn't do anything

undone yoke
#

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.

undone yoke
#

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?

mild lichen
#

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

undone yoke
#

What is the ID of that Checkout Session?

undone yoke
#

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.

mild lichen
#

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

undone yoke
#

What are the exact steps you're following to reproduce this? Maybe it's something with autofill?

mild lichen
#

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.

elfin hullBOT
undone yoke
#

Hhmm, are you testing this flow from outside of the US by chance?

mild lichen
#

Ukraine

undone yoke
#

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_

mild lichen
#

cs_test_a1YF7ZOL6dYqyJFGKjuFUlw9irq97REUjrGf1B4xloqxgc2mCMsVd2Ndsi#fidkdWxOYHwnPyd1blpxYHZxWjA0VWFjanBHZkd0a1dqcUJWcVYyd1dsYj1CdTZyNmZBbUBkfHxqMWhVZkR0VVdrTWZgXVQ9TGN1czczdFdSdWh%2FTE9kSkJVc3JnZmpfcjZEMnFxaVxmTGF9NTVsQURnN3FGVycpJ2hsYXYnP34nYnBsYSc%2FJz0xMzM1NDZmKDJjNmcoMTU9MShnPTJhKDQ1MjA9N2YxNjFkMjVgMTEyZycpJ2hwbGEnPydkNWAzYGQ1Nig9YDFkKDFgMDMoZDNkNigyMTQyNTw1MzA9MTdhMmNhMTAnKSd2bGEnPycxND0wZjI3NCg2NWc9KDFhMDIoZGE9MigzPGRhYGFmYGMzMzw8PDRgZjQneCknZ2BxZHYnP15YKSdpZHxqcHFRfHVgJz8ndmxrYmlgWmxxYGgnKSd3YGNgd3dgd0p3bGJsayc%2FJ21xcXV2PyoqYWBzNTQrZGxhYGErcHYneCUl

undone yoke
#

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

mild lichen
#

I will ask QA to make it

mild lichen
#

cs_test_a1l3xAOLedSqVEbvtaCeQRs1vEYsE5PNN9iETGDpUOOcg1b1DTIYYf4VJw#fidkdWxOYHwnPyd1blpxYHZxWjA0VXZuPF9Pf0RnQVMzQUxKQTVqXEBsMVdcSTxVV3BgajdoUWdLMG9JfXYzdl1mZFZEN3NOUF9Eaj00cjBSc1R1PDVhQ282bGFIRGpifWBwTGFhbklLNDJqNTVwN2E3MjNJXScpJ2hsYXYnP34nYnBsYSc%2FJzczZGE1ZDFmKGRgNTAoMTE2Zyg9NDNkKDA2YWRhMmdkZjA2NzI0YzVnNycpJ2hwbGEnPycwYD0xZGRgNigyPGM1KDEwZjUoZ2NnMShkPTdmMjRmNGA9Zz0wPWM2MTMnKSd2bGEnPydkPGQ1MDwwNShnPDxnKDExZDYoPGM3NChhMDcwMj1kMjw8N2ZjZDU8PWAneCknZ2BxZHYnP15YKSdpZHxqcHFRfHVgJz8ndmxrYmlgWmxxYGgnKSd3YGNgd3dgd0p3bGJsayc%2FJ21xcXV2PyoqdnFkYmA1NCtkbGFgYStwdid4JSUl

undone yoke
#

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?

  1. Do it again, but complete the address form before switching countries
  2. 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
elfin hullBOT