#-reduce-_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/1300354643305562155
๐ 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.
- -reduce-_api, 3 days ago, 13 messages
Hi there, I don't quite understand your question, can you rephrase?
sure. Im creating new payment im redirected to stripe checkout page there is Payment method called "Link" Im using it then in the checkout session completed i retrieve information about successfull payment im takig payment_intent id and calling stripe.PaymentIntent.retrieve("pi....") and in the payment methods there is only card no information about that i used Link method and there is different fee if I use Link method as i saw in the documentation
Ok, so what do you want to achieve?
I want to have information that I used "Link" method somewhere in webhook that informs me that payment was success
Ok, so you want to know if the payment was confirmed with a link payment method?
Yes
Sure, you can check payment_intent->payment_method->type
yes but there is no this method
"payment_method_types": [
"card"
],
i only have card
give me second I will provide some screen shoots
Can you share with me the payment intent ID?
Im using this method of payment
this created me payment with this intent
pi_3QEnKcJZ9pJk48QC1OlWRgKz
When i Retreieve information about this payment there is no method Link
In the api response in only have
"payment_method_types": [
"card"
],
Or Am I doing something wrong?
Ok, this is a card payment method, and its wallet type is link https://docs.stripe.com/api/payment_methods/object?lang=curl#payment_method_object-card-wallet-type
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Sorry I dont get it ๐ค .
The wallet[type] tells you this card payment method was originated from Link
Okay So I Used Link Payment method and when I retrieve pm_....
i got
"wallet": {
"dynamic_last4": null,
"link": {},
"type": "link"
}
},
wallet.link tells me if it was created with link method?
Yes you are right
Okay. So One last question. In there future I always must base on payment method.wallet.type ? or Can I Use payment_intent.payment_method_types?
You should check both. There's also a possibility for a payment to be completed by a link payment method (i.e., payment_method.type = 'link')