#-reduce-_api

1 messages ยท Page 1 of 1 (latest)

shell siloBOT
#

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

ashen magnet
#

Hi there, I don't quite understand your question, can you rephrase?

pliant ferry
#

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

ashen magnet
#

Ok, so what do you want to achieve?

pliant ferry
#

I want to have information that I used "Link" method somewhere in webhook that informs me that payment was success

ashen magnet
#

Ok, so you want to know if the payment was confirmed with a link payment method?

pliant ferry
#

Yes

ashen magnet
#

Sure, you can check payment_intent->payment_method->type

pliant ferry
#

yes but there is no this method
"payment_method_types": [
"card"
],

#

i only have card

#

give me second I will provide some screen shoots

ashen magnet
#

Can you share with me the payment intent ID?

pliant ferry
#

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?

ashen magnet
pliant ferry
#

Sorry I dont get it ๐Ÿค” .

ashen magnet
#

The wallet[type] tells you this card payment method was originated from Link

pliant ferry
#

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?

ashen magnet
#

Yes you are right

pliant ferry
#

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?

ashen magnet
#

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')