#lam_payment-sheet-link

1 messages ยท Page 1 of 1 (latest)

wet knotBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1255068606044049411

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

candid thorn
#

Hello

#

Here is the record video for reproduce the issue

wet knotBOT
kind field
#

Hi, let me help you with this.

candid thorn
#

Hello

#

Thank you

kind field
#

I see in your case the link pop-up is in the browser and not in a native element, which probably takes the cookie from your browser session. I don't think you should expect resetPaymentSheetCustomer() to affect it.

#

This will ensure that any persisted authentication state in the PaymentSheet, such as authentication cookies, is also cleared during logout
This suggests it only clears out the state of the PaymentSheet component.

kind field
# candid thorn

How does your PaymentSheet look like before you call resetPaymentSheetCustomer()?

candid thorn
#

yes it has cleard the state on payment sheet

#

so, is there any ways to clear the cookie session on browser?

#

Because i need to prevent diff users use the phone and checkout. That makes the issue

#

not sure anyways open Link screen in the native element only and avoid open on broswer

kind field
#

Yeah, it would make sense if it also reset the browser cookie though. I see the video is 1 year old and doesn't look exactly like your component, perhaps some internal workings changed. Let me check a bit more

candid thorn
#

ok

#

im using the latest version

kind field
#

I am not sure if there's an easy way to reset it like this.
It's the same with your Google accounts on your phone, for example, you will be logged into it until you log out explicitly.

candid thorn
#

i see

#

im seeing we can provide the email from payment sheet and mapping to Link payment screen

#

that seems be can link by email between Stripe and Link

#

so, any solution for now?

candid thorn
#

ah i just guess. I dont know

kind field
#

What if you remove this?

defaultBillingDetails: {
                email: email,
            }
candid thorn
#

i just removed. And still be getting the same issue

#

that options for init the payment sheet when user logged in from my app

#

to provide the Payment Link Button will load the Link email used before

kind field
#

I see, thanks for checking. And what happens if you log out of link on link.com, but not call resetPaymentSheetCustomer()?

#

Overall, I am not sure if Link is a good fit for devices that are used by multiple people. The whole idea is one-click checkout, which becomes more difficult if you need to log in every time, it's easier to enter your card details I think.

candid thorn
#

If i logout on the Link.com and open again that requrie to using OTP to checkout

#

this was my expectation when use resetPaymentSheetCustomer()

candid thorn
kind field
#

Yes, as you see it's independent from the PaymentSheet state.

#

Let me check again if there's anything like this...

candid thorn
#

thank you

wet knotBOT
#

lam_payment-sheet-link

brisk helm
#

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

#

we will take a closer look and get back to you asynchronously

candid thorn
#

ok