Skip to content
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

[12.x] Subscription Update Webhook bugfix #1085

Merged

Conversation

fschirinzi
Copy link
Contributor

Reproduction:

  1. Add subscription to user
  2. Cancel subscription with custom date on Stripe Dashboard

Expected:

  • ends_at is set as in the stripe subscription model property cancel_at

Outcome:

  • ends_at property in subscription model is null

@fschirinzi
Copy link
Contributor Author

Do I have to set the Stripe Secret in my fork to run the tests?

@driesvints driesvints changed the title Subscription Update Webhook bugfix. Wrong ends_at; cancel_at field ignored (Custom cancellation date). [12.x] Subscription Update Webhook bugfix Mar 9, 2021
@driesvints
Copy link
Member

Do I have to set the Stripe Secret in my fork to run the tests?

No, that's okay. Atm GitHub Actions doesn't share repo secrets.

@driesvints
Copy link
Member

This lgtm but I'm going to confirm this with someone from Stripe first. I can't find any docs other than the API docs about cancel_at.

@driesvints driesvints marked this pull request as draft March 9, 2021 10:24
@driesvints driesvints marked this pull request as ready for review March 9, 2021 16:00
@driesvints
Copy link
Member

Verified that this is indeed the correct solution. Thanks @fschirinzi!

@taylorotwell taylorotwell merged commit bda7a52 into laravel:12.x Mar 9, 2021
@driesvints
Copy link
Member

Fyi, I had to add this isset because it broke some other tests: 3184afc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants