#resham-sapkota_api

1 messages · Page 1 of 1 (latest)

pliant pawnBOT
#

👋 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/1313126320141504513

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

worldly zenith
#

hi! do you have some complete code of a minimal reproduction or a link to a page with the issue?

#

Can I not use link element independently ?

no, what would the use case be there? It's a means of letting a customer log in to their Link account so they can make a payment with the details in it; so it's always used with a PaymentElement.

keen creek
#

Like I want customer to make only link payment using this integrations, once I add payment element, they have add the ability to add a new cards and make a payment, right.
Making a payment via cards, we have our own UI and flow, so.
Not a big problem though, but asking if it is possible. I understand the point here of autofilling the payment methods from a link account.
It's a means of letting a customer log in to their Link account so they can make a payment with the details in it; so it's always used with a PaymentElement.

#

The minimal code, I was trying is:

    const elements = stripe.elements({ clientSecret, appearance, loader });

    // Create Element instances
    const linkAuthenticationElement = elements.create("linkAuthentication",
        {
        defaultValues: {
            email: “abc.test@gmail.com
        }
});


    linkAuthenticationElement.mount("#link-authentication-element");

        const { error } = await stripe.confirmPayment({
            elements,
            confirmParams: {
                return_url: "https://example.com/order/123/complete"
            }
        });```
worldly zenith
#

I don't think we have a solution like that which is "you can only pay with Link", that doesn't really exist

#

as you say, Link is just one of the payment methods that gets presented among the options our UIs present

keen creek
#

Thanks for the clarifications. Everything is clear for now. Thanks again.