-
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
Ability to Update a Subscription #936
Comments
Hey @connecteev. Think you missed this section: |
@driesvints I tried it but it does not work This works fine:
However, this throws an exception:
Exception error message:
which is strange, because I have these defined in my .env file
Does it work for you? Can you apply a coupon this way? |
@driesvints one more note: If I manually call
Note that this is a valid subscription and valid coupon code, and it works fine on doing this:
(just trying to convey that in all likelihood it's not user-error) |
Hmm, odd. The example in the docs indeed appears to be wrong. I'll rectify it. I've also send in a PR to add two convenience methods for updating the underlying stripe objects: #943 |
thanks @driesvints once this is merged in I will test my code again |
There is no way to update a subscription using Cashier. I'd like to be able to use Cashier to do the following:
It would also be nice to be able to do other things such as:
2. Change the billing date and use anchorBillingCycleOn() on an existing subscription
3. Possibly other things that Stripe allows in it's Update Subscription API
But even if we just get 1, that would be a start :)
Thanks for the work on Cashier, btw...definitely makes our lives easier.
The text was updated successfully, but these errors were encountered: