#sandrine_webhooks

1 messages ¡ Page 1 of 1 (latest)

glossy basinBOT
#

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

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

kindred void
#

Hello
What Terminal SDK are you using for your integration?

atomic stone
#

Sorry I didn't see your messages. We use ruby on rails.

kindred void
atomic stone
#

Server Driven

#

What is the difference between the type charge.failed and payment_intent.payment_failed? What are the cases when one or the other event is submitted?

kindred void
#

Ideally, both events are generated in case of a failed payment. You should listen to payment_intent.payment_failed event since PaymentIntent objects are primarily used for tracking payment status.

PaymentIntent creates and uses Charge objects in the background. The difference here is that a Charge can only belong to one PaymentIntent where as a PaymentIntent can have multiple charges.

atomic stone
#

Ok I see. Are there cases where a charge.failed event is emitted but no payment_intent.payment_failed?

kindred void
#

Not really, no.

atomic stone
#

Yes ok.
We recently have had problems with this usecase: a user that present a card on the reader, but the paiment don't pass and finally the reader ask for the pin code. What event are triggered in this case?

kindred void