#shainanand
1 messages · Page 1 of 1 (latest)
hi there!
Hi
what do you mean exactly byt transaction ID?
I did a test payment and the reference number I received is something like this Pi_3OXOAvHMY4efpPO01Ab4k4xQ. How can I use this to refund?
I saw the refund reference number starts with ch_
$stripe->refunds->create(['charge' => 'ch_1NirD82eZvKYlo2CIvbtLWuY']);
when you create a refund you can pass a PaymentIntent ID (pi_xxx): https://stripe.com/docs/api/refunds/create#create_refund-payment_intent
so its either charge or payment intent, is it?