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

Subscription Grants not working #105

Closed
idawgik opened this issue Jun 10, 2020 · 3 comments
Closed

Subscription Grants not working #105

idawgik opened this issue Jun 10, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@idawgik
Copy link

idawgik commented Jun 10, 2020

Description

So I'm trying to get Subscription Grants working, however running into some problems.

It looks like it's a side effect of this issue: #44

Looking into the code, the Subscription Grants are looking for the customer.subscription.created event from the webhook, but that is sent before the checkout.session.completed event, so there's no order to attach the event to and process the grants.

I can manually resend the customer.subscription.created event through the Stripe dashboard, and then everything works.

Cancelling a subscription does work since the customer.subscription.deleted is received and mapped properly.

I have the webhook configured for All Events currently.

How do we get this working? It's built in functionality for the plugin, not trying to do anything custom. I don't see anything in the documentation around needing to do anything extra to get this working.

Steps to reproduce

  1. Configure Subscription Grant
  2. Create Subscription
  3. See grant was not processed and user is not added to groups

Additional info

  • Craft version: 3.4.23
  • Plugin version: 2.7.0
@andrelopez andrelopez self-assigned this Jun 11, 2020
@andrelopez andrelopez added the bug Something isn't working label Jun 11, 2020
@andrelopez
Copy link
Member

andrelopez commented Jun 11, 2020

@idawgik Sorry for the trouble, we'll fix this issue asap.

Thanks for reporting

@andrelopez
Copy link
Member

Hi @idawgik We just released Stripe Payments v2.7.1 with a fix to this issue.

Best,

@idawgik
Copy link
Author

idawgik commented Jun 11, 2020

Worked great. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants