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

Cancelation Event Cancels Membership Instead of Subscription #49

Open
misfist opened this issue Jul 14, 2024 · 1 comment
Open

Cancelation Event Cancels Membership Instead of Subscription #49

misfist opened this issue Jul 14, 2024 · 1 comment

Comments

@misfist
Copy link
Contributor

misfist commented Jul 14, 2024

Describe the bug
The cancellation event cancels the member's membership rather than just the subscription.

What should happen is that the subscription is canceled so they're no longer billed, but the membership should remain active until the next bill date.

https://github.com/strangerstudios/pmpro-ccbill/blob/dev/webhook.php#L348-L367

To Reproduce
Steps to reproduce the behavior:

Event sent to:
https://{{base_url}}/wp-admin/admin-ajax.php?action=ccbill-webhook&eventType=Cancellation&clientAccnum={{clientAccnum}}&clientSubacc={{clientSubacc}}&eventGroup={{eventGroup}}&validate=true&creationDate=2024-07-14T05:24:49.122Z

Event data sent:

subscriptionId {{subscriptionId}}
transactionId 14621b22-b4a1-4d50-80f7-a4e69eadf8a3
timestamp 2024-07-14T05:20:50.703Z
reason Invalid Input.
source FORM

Screenshots
If applicable, please attach a screenshot to make your issue clearer.

Expected behavior
A clear and concise description of what you expected to happen.

misfist referenced this issue in misfist/pmpro-ccbill Jul 15, 2024
Expiration should cancel subscription and membership
Cancellation should cancel subscription
@andrewlimaza
Copy link
Collaborator

This issue is related to #42

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

No branches or pull requests

2 participants