#gtabeo
1 messages ยท Page 1 of 1 (latest)
Hi! Let me help you with this.
Could you please share the PaymentIntent ID pi_xxx?
And screenshots.
I haven't seen this behaviour before, but that's probably how Terminals work.
I recommend listening to the payment_intent.succeeded event, and not to the charge.* to be more sure.
Not sure how to replicate this in Test mode.
I don't think it's possible.
Today stripe dashboard is different
can you check the webhooks? It also sents a refund
here is the refund also
๐ taking over for my colleague. Let me catch up.
๐
as my colleague mentioned you shouldn't be listening to the Charges events but instead listen to the payment_intent.* events
you will receive a payment_intent.payment_failed instead and you wouldn't have to worry what the low-level API is doing under the hood
is it possible to reproduce locally? I need to test that case
additionally, I have to listen to the refunds events
in that case I receive a refund event
basically you still need to listen to charge.refunded but you need to look at the Payment Intent for that Charge and see its status to see whether this is a refund because of charge error or a refund based on customer demand
what about reproducing in test mode?
you can learn how to test terminal features here https://stripe.com/docs/terminal/references/testing
yes but I cannot find how I can test the above behavior
you can use these cards https://stripe.com/docs/terminal/references/testing#test-cards-for-specific-error-cases
any card decline
do you mind sharing a PI ID were you see the different behavior?
sure a second
pi_3Mo25BJizIym4wPX0lhhVcjV
that's test mode
we have a charge failed but we don't get refunds
and that looks the expected beavior (at least for me)
pi_3Mo25BJizIym4wPX0lhhVcjV
another one from test mode
if we could identigy the differenct of the one in production and these 2 from test mode, it may help to see why the system behaves this way
I'm really not sure, this is very niche and specific use-case
I would suggest sending us all of this by email https://support.stripe.com/contact/email?topic=api_integration
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
and someone with more knowledge on the subject could take a look
thank you tarzan and vanya