#resham-sapkota_api
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/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.
- resham-sapkota_api, 2 days ago, 10 messages
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 ?
they can onboard on Link even if they're not already
why do you want to restrict that?
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 ?
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
Okay, so via Link Authentication element, also, I cannot know this right.
Yes, I was thinking about listening to the change event
https://docs.stripe.com/payments/elements/link-authentication-element#retrieving-email-address
But you can't know if the email is filled by the customer or auto-filled
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.
Yes it just display the email filled.
It's not valuable information to judge if customer has Link or not.
One more questions, does stripe.confirmPayment https://docs.stripe.com/js/payment_intents/confirm_payment supports callbackUrl rather than return url ?
In docs, under confirmParams, we need to pass return_url but there is no mention of callback response.
You have the result of the callback in the then function
What you mean exactly by the callbackUrl ?
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.
what do you mean by if your user chooses a redirect-based payment method ?
There is some payment methods are redirect based
These are bank redirects payment methods:
https://docs.stripe.com/payments/bank-redirects
Link is not.