#sb_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/1371418555639136326
π Have more to share? Add more details, code, screenshots, videos, etc. below.
What Stripe integration are you following ?
we followed this doc https://docs.stripe.com/js/custom_checkout/create_express_checkout_element
and we use express checkout element
Do you have a hosted website that I can test on ?
You can use www.artsper.com is our production.
user: demo@stripe.com
password: demo@stripe.com!
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'
let me check, else you can create your own account
I'd prefer not to
I can reproduce yeah. What code do you call when the button is clicked?
we deal with
const STRIPE_SCRIPT_URL = 'https://js.stripe.com/basil/stripe.js';
That doesn't really answer my question
Are you a developer familair with the Stripe code/integration?
Can you share the 'click' event handler
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);
}
I just need to see the 'click' handler please
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}
).
π taking over for my colleague. Let me catch up.
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?
from what I can see on your site at /checkout/payment you're using custom checkout https://dashboard.stripe.com/logs/req_Sq6tCqRO2qvCIh
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yes to reproduce, you must use EUR currency
I already did but where I should see the ECE?
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
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.
How to contact you support? I don't understand why stripe is down considering last week everthing was ok. We haven't touch code base since long while... It's a critical issue because it stucks our business. we need a quick assistance.
We sent you a DM where you can get help