#Sophia123

1 messages · Page 1 of 1 (latest)

slow geodeBOT
dire jasper
dull egret
#

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');```
dire jasper
#

Can you share a sample PaymentIntent id ?

dull egret
#

pi_3N8LxT2eAB6s7U3S0HOu7SaQ

dire jasper
#

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

dull egret
#

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.

slow geodeBOT
full mist
#

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

dull egret
full mist
#

I'm not sure how Link works sorry

tender badge
#

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.