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

Resolved: The product is not being assigned to the user, but the payment is logged properly in Stripe #395

Conversation

reygcalantaol
Copy link
Collaborator

Resolves #https://github.com/WPUserManager/wpum-stripe/issues/9

Description

The problem stems from the fact that Stripe's 'customer.subscription.created' and 'invoice.payment_succeeded' webhook events are triggered before the creation of the subscription record in 'wpum_stripe_subscriptions.' The solution is to force the 'customer.subscription.created' webhook event handler to create the subscription record.

Testing Instructions

  1. Create a Stripe Product
  2. Set up the Registration form to collect payment - https://wpusermanager.com/article/340-collecting-payment-on-registration/
  3. See the described issue from the site's my-account page after the test purchase.

Pre-review Checklist

  • Issue and pull request titles are properly formatted.
  • Acceptance criteria have been satisfied and marked in the related issue.
  • Unit tests are included (if applicable).
  • Self-review of code changes has been completed.
  • Self-review of UX changes has been completed.
  • Review has been requested from @polevaultweb.

@wp-user-manager wp-user-manager merged commit daf0be9 into develop Mar 11, 2024
1 check passed
@wp-user-manager wp-user-manager deleted the #9-During-Test-payment-The-product-is-not-being-assigned-to-the-user-but-the-payment-is-logged-properly-in-Stripe branch March 11, 2024 11:45
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.

3 participants