#hasan0.0.7

1 messages · Page 1 of 1 (latest)

simple geyserBOT
calm rain
#

Hi there!

#

If the customer paid something, they you have a PaymentIntent ID (or Charge ID)?

charred trail
#

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.

calm rain
#

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

charred trail
#

ah okay, now I get it. I thought there was a way to clear the balance directly without touching the charge. Alright thanks!

calm rain
#

Happy to help 🙂