#resham-sapkota_api

1 messages ยท Page 1 of 1 (latest)

thorn graniteBOT
#

๐Ÿ‘‹ 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/1314171644817833984

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

radiant hatch
#

๐Ÿ‘‹ happy to help

#

I'm not sure I understand what you're trying to achieve

ancient moat
#

Hey Tarzan
So, I am trying to integrate Link as a payment method.
According to our flow, we ask customer email address as a first step on our checkout, we already have email id of the customer, now I am checking if there is an API or someway we can know via link element when mounting or others, if customer is onboarded into link.

So, we can restrict the customer to pay with link, if they are not onboarded into link ?

radiant hatch
#

they can onboard on Link even if they're not already

#

why do you want to restrict that?

thorn graniteBOT
ancient moat
#

Yeah they can onboard, but for non-link customers, paying via card, we have our own flow and process, so, we were exploring if there is a way to know before hand if customer is onboarded into link ?

smoky tiger
#

Hey! Taking over for my colleague. Let me catch up.

#

if there is a way to know before hand if customer is onboarded into link ?
No there is no direct APi that you can call to double check this

ancient moat
#

Okay, so via Link Authentication element, also, I cannot know this right.

smoky tiger
ancient moat
#

If I don't pass defaultValues while mouting the link element, then it is filled by customer, I think.
I listened to that event, but it does not give me details of whether onboarded or not.

#

event attributes are:

#

There is an internal lookup initiated by the link element, but the info is not made available to us, it seems.

smoky tiger
#

Yes it just display the email filled.

#

It's not valuable information to judge if customer has Link or not.

ancient moat
smoky tiger
#

You have the result of the callback in the then function

#

What you mean exactly by the callbackUrl ?

ancient moat
#

No I mean, when I give returnUrl, then after payment, stripe will re-direct to that return url with payment intent and payment intent secret,
But I do not want to redirect, since as per my flow, after the payment, I make customer subscribe to a plan, if that redirect happens, then I am unable to do that.

Interestingly, there is redirect attribute that can be passed to confirmPayment. So, when redirect = if_required , it says

If you set redirect: "if_required", then stripe.confirmPayment will only redirect if your user chooses a redirect-based payment method.

#

what do you mean by if your user chooses a redirect-based payment method ?
Does link fall under redirect-based payment method.

smoky tiger
#

what do you mean by if your user chooses a redirect-based payment method ?
There is some payment methods are redirect based

#

Link is not.

thorn graniteBOT