#hasan0.0.7
1 messages · Page 1 of 1 (latest)
Hi there!
If the customer paid something, they you have a PaymentIntent ID (or Charge ID)?
And then you can simply refund that object with https://stripe.com/docs/api/refunds/create
yess, when I provide the charge ID, the whole payment is refunded. But that's noy what I'm looking for, what I need is in the case of subscription change, and an amount is left in the credit balance, I want the credit balance to be cleared and not the whole charge.
Then you don't do a full refund, but only a partial refund for the amount left in the customer credit balance.
And then you set the customer credit balance to zero bby updating the customer object
ah okay, now I get it. I thought there was a way to clear the balance directly without touching the charge. Alright thanks!
Happy to help 🙂