Refund a payment
Reverse a captured payment in full or in part.
Create a refund against the PaymentIntent (or a charge). Omit amount for a
full refund; pass amount (smallest currency unit) for a partial one. The refund
shows up in balance transactions as
type: "refund".
For a partial refund, add amount:
reason accepts duplicate, fraudulent, or requested_by_customer. See the
API Reference for the full Refund object and its statuses.