How do refunds and cancellations work?
Stripe sends Rewardful a webhook notification when an invoice is fully or partially refunded. When we receive these notifications, we check to see if the refund is related to an invoice that has a commission.
If so, we recalculate the commission based on the refunded amount and update the invoice metadata in Stripe to reflect the full or partial refund and the new commission amount.