#kiril-reznik_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/1425460920837996634
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
When a user completes a payment using Link (currently reported as โcardโ)
would you mind sharing a PaymentIntent ID where you see this happening?
Hi ! Thank you for your quick response, we are using the "Confiramtion Token" approach so we are not creating a Payment intent on this step
When the Payment intent is successfull we do get a "payment-method" id value but we cannot identify which payment provider is it
by you do have that information on the confirmation token then
if the type is card you can check https://docs.stripe.com/api/confirmation_tokens/object?api-version=2025-09-30.preview#confirmation_token_object-payment_method_preview-card-wallet-link
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and if the type is link then https://docs.stripe.com/api/confirmation_tokens/object?api-version=2025-09-30.preview#confirmation_token_object-payment_method_preview-link
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Perfect, this is very helpfull, we will now be able to identify if the user payed with card via link, thank you
Do we have a way to recorde the interactions within the link component ?
you can listen to the onchange https://docs.stripe.com/js/element/events/on_change?type=paymentElement#element_on_change-handler-value-payment_method-type
it would give you the type
but then you would need to look at the confirmationToken for more info
if you're using the Express Checkout Element to add Link then you can listen to this event https://docs.stripe.com/js/element/events/on_click?type=expressCheckoutElement