Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 22514

PaymentIntents refund event handling

$
0
0

I'm refunding in my express app the amount that is paid by the user .

const paymentIntent = await stripe.paymentIntents.retrieve(p_id);   const refund = await stripe.refunds.create({      payment_intent: p_id,      amount: Math.round(refundAmount * 100), // Convert refund amount to cents    });

this is working fine

But i need to update records based on the refund events .

I have these two unhandled events :

Unhandled event type charge.refundedUnhandled event type charge.refund.updated

I do have payments by card enabled , and in the future i will add google pay and apple ..

are these two events related to card payments only ?

lets say I have refunded a google pay or apple pay payment in my admin panel will i get the same two events ?


Viewing all articles
Browse latest Browse all 22514

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>