#clint_webhooks

1 messages ยท Page 1 of 1 (latest)

eternal basaltBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1256156713115979777

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

fair comet
frigid idol
#

Thank you, I have completed the entire payment process of Checkout and now wish to obtain the card information through a Webhook after a successful payment. However, I couldn't find it in the returned information.

fair comet
#

does what I posted above give you a starting point?

#

let me know what I can clarify

frigid idol
#

Can the checkout.session.completed Webhook obtain payment card information, such as card type, card number, etc.?

fair comet
#

when you recieve the webhook you can make an API call to get that information yes, using the path I described.

frigid idol
#

payment_method_id

frigid idol
#

I checked the document address you provided me, and upon testing, it did not return card information; only billing information was obtained.

#

How can I obtain the card number and card type?

fair comet
#

it's all inside payment_method_details.

frigid idol
#

However, the information for payment_method_details was not returned.

fair comet
#

if you're having difficulties please share the exact code you wrote

frigid idol
#

This is the information returned by the checkout.session.completed Webhook, and there is no payment_method_details information.

fair comet
#

yep, indeed

frigid idol
#

How can I query payment_method_details information?

fair comet
#

I said session->payment_intent->latest_charge->payment_method_details

frigid idol
#

How do I obtain and query the chargeid for a charge?

fair comet