#keith_webhooks

1 messages ¡ Page 1 of 1 (latest)

dull waspBOT
#

👋 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/1268380592886780034

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

alpine token
#

Yes you can totally rely on your return URL, call a Retrieve Payment Intent to check your status and go ahead with your business logic

#

But webhook event is for when your customer may accidentally close the tab, lost internet connection or in a train going into a tunnel

#

it's more guaranteed to notify your system

mental python
#

We've had problems with other payment gateways in the past where the request does not reach our servers via webhook. Unfortunately, Stripe does not provide this payment metadata on payment success like other gateways. But it sounds like retrieving the payment intent object and then the payment method object is the better option. I have no way of knowing how many events my event is in the list.

alpine token
#

Could you elaborate why you don't have metadata? We do provide metadata in PaymentIntent

mental python
#

There's no payment method data in it but the id. I would have to do another lookup of either the payment data or the charge data

"payment_method": "pm_1PiEyADsAiEbkgK9vV7kpINf",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
"installments": null,
"mandate_options": null,
"network": null,
"request_three_d_secure": "automatic"
}
},
"payment_method_types": [
"card"
],

#

for instance if I wanted the expiration date and last 4 card