#geordi-sub-partial-refund
1 messages · Page 1 of 1 (latest)
Yes, ideally
We generally don't refund prorated credit following a cancellation. Would be applied to the customer balance. You'd need to handle the refund yourself
You'd need to handle the refund yourself
What do you mean by this sorry?
You would need to issue a (partial) refund from Stripe for the payment
The idea of handling this was:
- Fetch the remaining prorated amount on the subscription
- Cancel the subscription
- Pass the remaining amount as a parameter to the refund API
Well, you'd just cancel the subscription and pass prorate: true: https://stripe.com/docs/api/subscriptions/cancel#cancel_subscription-prorate
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That will generate an credit invoice item and apply to customer balance
So you can just use that amount as the basis of your refund
Okay, and if I refunded based on that amount, would it deduct from the customer balance? Or is there a risk of refunding a customer AND them still having a balance?
You would need to manually adjust their balance: https://stripe.com/docs/billing/customer/balance#modifying