#vish_code
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/1341304994246295585
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! So you don't want Link at all?
We need it, but we are displaying LinkAuthenticationElement only when user clicks on continue with Link button. But this particular collapsible Secure, 1-click checkout with Link appears by default on card. Is there any way I can hide it?
Happens on specific browsers
What browsers does it happen on? Can you also provide your code for this bit: displaying LinkAuthenticationElement only when user clicks on continue with Link button
Yes
It happens on Chrome
`const [linkMode, setLinkMode] = useState(false)
const [email, setEmail] = useState('')
return(
<>
<button onClick={() => setLinkMode(!linkMode)}>
{linkMode ? 'Continue without link' : 'Continue with link'}
</button>
{linkMode && (
<LinkAuthenticationElement
id="link-authentication-element"
onChange={handleLinkAuthenticationChange}
options={{
defaultValues: {
email: email
}
}}
/>
)}
</>
)`
What is the use case of handling Link by yourself?
We wanted to give user option to proceed with/without link
Can you
- go to https://dashboard.stripe.com/test/settings/payment_methods on your dashboard
- choose the payment method configuration you're using
- Click on Link
- Beside "Active" click on the button with 3 dots
- Click on Supported integrations
- Toggle "Payment Element" off
Does Link still appear?
Okk