-
Notifications
You must be signed in to change notification settings - Fork 682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support credit against a subscription renewal #762
Comments
@BinaryCocoa I think negative customer balance would be the easiest solution in your case: https://stripe.com/docs/billing/subscriptions/discounts#other You can just update customer's balance as soon as he receives new credits: $newBalance = $customer->asStripeCustomer()->balance + (-$credits);
$customer->updateStripeCustomer(['balance' => $newBalance]); The negative balance will be used as a discount for the future invoices. |
This should work just like @Sti3bas says. Maybe we can add some nice API methods to add new balance. |
This is something I'd be interested in too. I can see this being used in sites where they offer cash against your current subscription if you bring referrals and sign up through your link. |
I spent some time today implementing this feature: #1216 |
This will land in tomorrow's release. |
I don't know if the Stripe API supports this or not, but I have an interesting need. We are implementing a subscription site where people typically pay for their subscription with a credit card, but depending on achievements/site activity/etc, they can receive credit against their account. This credit can then be used to pay for their subscription. This is how we plan on rewarding contributors on our site (they can essentially earn free months by being awesome.)
Ideally things would work like this:
Is this something that is currently supported and I just missed it?
Is this something that could be added to this library if it isn't there already?
Is this something completely out of the scope of this library and can't be handled due to how Stripe manages subscriptions?
Before I go about building my own solution for this, I'd much rather contribute something back (if possible) to an existing library so that the community can benefit.
The text was updated successfully, but these errors were encountered: