#Sophia123
1 messages · Page 1 of 1 (latest)
Hi
Check this guide for a complete integration:
https://stripe.com/docs/payments/link/accept-a-payment?platform=web&ui=elements
it doesn't work for us
We have this code```
defaultValues: {
billingDetails: {
name: fullName ? fullName: userModel.displayName,
email: userModel.email
}
},
fields: {
billingDetails: {
},
},
wallets: {
applePay: 'never',
googlePay: googlePayEnabled ? 'auto' : 'never',
}
};
paymentOptions = merge(defaultOptions, getStripeCreateOptions());
paymentElement = elements.create('payment', paymentOptions);
paymentElement.mount('#stripe-payment-elements');```
Can you share a sample PaymentIntent id ?
pi_3N8LxT2eAB6s7U3S0HOu7SaQ
Thanks for sharing, the PaymentIntent has Link and it's activated in your account.
In the screenshot you shared, you have Link already there
The checkbox Save your info with secure 1-click checkout with Link
I can't select an account in Link for payment
You select the account by email. fill the email and Element/Link will bring any saved Link account that matches that email:
https://stripe.com/docs/payments/link/accept-a-payment?platform=web&ui=elements#web-test-the-integration:~:text=You can create test mode accounts for Link using any valid email address. The following table shows the fixed one-time passcode values that Stripe accepts for authenticating test mode accounts%3A
Yes, I saw this and I have Link account. How can I get Link account to purchase? I don't want to save account I want to use my existing Link account to purchase.
not sure but I think if you enter your email and phone number it will prompt you to log into your existing account
or go to https://link.com/ and log in there so your browser has an active session, and then go to your payment page
I did it, nothing happens, if I understand correctly I can use this saved account in Stripe Checkout, but I can't use this one in Stripe Payment Elements, I only can save my card. Is this right?
I'm not sure how Link works sorry
Hi @dull egret are you still around? In order to allow customers with existing Link accounts to use those in your checkout flow leveraging the Payment Element, you will need to provide a way for your customer's email address to be provided, you can either collect this in your own field and provide it when initializing the Payment Element (what you seem to be doing), allow the Payment Element to collect the email address, or use the Link authentication Element.
If you're providing the email address to, as it looks like you are from the code sample that was shared, and we don't prompt for a one-time passcode to authenticate the Link session, then that email address is likely not registered for Link. In test mode Link accounts are only usable on the Stripe account that created them, they cannot be reused on integrations for other Stripe accounts.