#weboar_unexpected
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/1372987040710266942
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- weboar_error, 2 days ago, 33 messages
Session is getting lost after using stripe checkout on mobiles.
This semes to happen for ios 18_4_1.
We have the following architecture:
AWS ALB with 2 servers.
Using sticky sessions, which depend on cookies.
We use stripe checkout (loaded from JS https://checkout.stripe.com/checkout.js).
Someone starts browsing and gets sticked to server A.
He triggers the checkout.
Checkout (inside iframe or whatever) requests logo from site.
User provides credit card information.
Process continue on our site by running a background script.
When the background script is run, the ALB stickiness seems to be lost and directs them to server B, loosing the session.
We tried removing the logo from the checkout and everything works great without them.
What could it be?
How did you integration with Stripe? Are you using embedded form or hosted payment page in Checkout Session integration, i.e. is the ui_mode hosted or embedded?
I think this
hosted payment page in Checkout Session integration
can you ask me in a different way?
sorry, should know, but this has been here for too long
this integration
StripeCheckout.configure(...)
....
OpenStripePayment = function(){
//open stripe handler
stripeHandler.open({
amount: ...
});
}
image is a configuration item --> that triggers the image request
Thanks for waiting! This isn't a request to Stripe. Can you share the Checkout Session ID (cs_123), so that I can check how your system integrate with Stripe?
You mean the public key?
This is an old integration...
I can post you a screenshot
Could you share the code that uses Stripe library to create and complete a payment, or the your website? So that I can determine which flow you're using
That helps?
this is the code used for launching the checkout
StripeCheckout.configure(...)
....
OpenStripePayment = function(){
//open stripe handler
stripeHandler.open({
amount: ...
});
}
Later, after the token info is fetched, I create the charges using an API
But the problem is on the checkout
Upon checking, StripeCheckout.configure(...) is the legacy Checkout flow that has been deprecated, which no new feature or update will be added. I'd recommend upgrading the new Checkout flow with this migration guide: https://docs.stripe.com/payments/checkout/migration
ok. But can you please help me or provide guidance regarding this issue? seems very strange how the image request made the ALB to loose stickiness
I'm afraid we don't have visibility how ALB works that looses the stickiness of the sessions. There could be a change in the browser update in iOS. If it works in other versions of iOS or desktop browsers, the issue is likely due to this specific iOS version you're testing on