#skthon_code
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/1314587775403823144
đ 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.
- skthon_code, 4 hours ago, 6 messages
if email is filled, it shows payment method as link which is fine, but it requires phone number to be filled as well to create a link account. So it should be false here instead of true complete:true
Once i focus on phone number, it triggers event with complete:false, then once i fill the phone number it shows complete:true
Problem here the event object doesn't seem to be consistent.
Link works with just Email. Check our official Demo here:
https://docs.stripe.com/payments/elements/link-authentication-element
We do not have Link Element implemented separately since PaymentElement already supports built in Link.
I could provide you the link for this checkout page, would that help ?
Yes I understand that, just I wanted to share with you a Link demo (It remains Element itnegration)
When you enter just the email, does Link works for you or not ?
No, link account doesn't get created when only email is filled
https://saikiran.staging.thrivecart.com/reuse-card-link-payment-method/
This is the checkout page
Checkout page for reuse-card-link-payment-method.
I was able to submit the payment with just the email.
Could you try filling the phone number and name
Ah I see what you mean now...
More Info:
When confirming the stripe payment, i would need to either send or leave out save_payment_method: true depending on card/link payment method:
stripe.confirmPayment({save_payment_method: true});
Here event object is showing link everytime, if it omit save_payment_method:true, it doesn't reuse the payment method in uspsell page.
I see what you are trying to do, but I don't think that's the recommended way to.
You should be following this guide then:
https://docs.stripe.com/payments/save-during-payment
By setting setup_future_usage: 'off_session', when you create the PaymentIntent.
I tried that earlier, but with that option, it doesn't display link section at all
Interesting...
wish there was an event triggered before confirming payment to check which payment method is being submitted
https://docs.stripe.com/js/element/events
Thank you for your patience here. We've shared your feedback with the product team for future product reiterations.
We agree this is confusing, and that the event should like reflect type=card until the Link fields are completed.
I'm raising this with the Link team to investigate
You can continue to rely on the complete state for knowing about submitting payment, that part is accurate (since you have sufficient card details to pay), but the type=link value is misleading.
If you want to get updates about this, please write in to support using the url I'll share below and I'll make sure to associate you case with the investigation.