#sb_error

1 messages Β· Page 1 of 1 (latest)

hidden pilotBOT
#

πŸ‘‹ 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/1371418555639136326

πŸ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

buoyant jacinth
#

What Stripe integration are you following ?

solemn lion
#

and we use express checkout element

buoyant jacinth
#

Do you have a hosted website that I can test on ?

hidden pilotBOT
solemn lion
sleek radish
#

Login doesn't seem to work for me. Form just hangs

#
    at HTMLFormElement.C (checkout.57640d6d.js:1:80502)
    at HTMLFormElement.nrWrapper (cart:7:13152)
C @ checkout.57640d6d.js:1
nrWrapper @ cart:7```
#

That's logged when I click 'Log in'

solemn lion
#

let me check, else you can create your own account

sleek radish
#

I'd prefer not to

solemn lion
#

Let me ask to my team for fix soon

#

Ok it has been fixed, you can test now πŸ˜‰

sleek radish
#

I can reproduce yeah. What code do you call when the button is clicked?

solemn lion
sleek radish
#

That doesn't really answer my question

#

Are you a developer familair with the Stripe code/integration?

solemn lion
#

Of course

sleek radish
#

Can you share the 'click' event handler

solemn lion
#

OK first we load basil/stripe.js

private init(): void {
const script = this.document.createElement('script');
script.src = STRIPE_SCRIPT_URL;
script.onload = () => {
this.stripe = window.Stripe(process.env.STRIPE_PUBLIC_KEY, {
developerTools: {
assistant: {
enabled: false,
}
}
});
this.setupButtonListeners();
};
this.document.body.appendChild(script);
}

sleek radish
#

I just need to see the 'click' handler please

solemn lion
#

The session token is generated with our backend

#

yes I know but let me explain teh flow to avoid confusion

#

expressCheckout is instantiate via :

const checkout = await this.stripe.initCheckout({fetchClientSecret});
const expressCheckout: ExpressCheckout = checkout.createExpressCheckoutElement({
paymentMethods: {
applePay: 'always',
googlePay: 'always'
},
layout: {
maxRows: 2,
}
});

    expressCheckout.mount(expressCheckoutContainer);

    expressCheckout.on('ready', () => {
        if (loaderElement) {
            loaderElement.style.display = 'none';
        }
    });
#

we don't use a onClick beccause wallet are loaderd when the expressCheckoutContainer is mounted as explain. We followed the documenation.

#

Finally we listen 'confirm' event
expressCheckout.on('confirm', event => checkout.confirm(
{expressCheckoutConfirmEvent: event}
).

hidden pilotBOT
noble prawn
#

πŸ‘‹ taking over for my colleague. Let me catch up.

solemn lion
#

Hi Tarzan !

#

Let my know if you need more information

noble prawn
#

I've just logged in to your website give me a few minutes to go through the payment flow and try to troubleshoot this

#

do you have a reproducible scenario that I could follow?

#

@solemn lion I'm a bit confused to be honest

#

where exactly do you add the ExpressCheckout Element?

solemn lion
#

Yes to reproduce, you must use EUR currency

noble prawn
#

I already did but where I should see the ECE?

hidden pilotBOT
solemn lion
#

here

#

is there somebody?

sleek radish
#

I'd recommend writing in to our team at this point so we can invesitgate this fully async. The server is busy so it's hard to do the deep dive necessary to figure out what's going on

hidden pilotBOT
#

Hello @solemn lion, we have sent you a direct message, please check it at https://discord.com/channels/@me/1371459716026204242

  • πŸ”—The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
solemn lion
sleek radish
#

We sent you a DM where you can get help