-
Notifications
You must be signed in to change notification settings - Fork 14
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
MemberPress » Payment chargeback » Pronamic subscription on hold » Suspend (pause) MemberPress subscription #165
Comments
🤔 Note: MemberPress members may have the option to pause and resume subscriptions themselves:
https://gitlab.com/pronamic/memberpress/-/blob/1.2.4/app/views/admin/options/form.php#L158-168 What should happen if a chargeback results in a paused MemberPress subscription and the user clicks the 'Resume' link on his account page?
|
Note from customer:
Internal HelpScout ticket: https://secure.helpscout.net/conversation/1501257614/22011?folderId=1425720 @rvdsteege Might it be better to give the MemberPress transaction, that is linked to the Pronamic Pay payment that receives a chargeback, the status 'refunded'? A chargeback is also a kind of refund?
|
👍 However, we currently don't trigger an action when a chargeback for a payment occurs, so we would need to add 'some mechanism' to hook into the payment chargeback from the extension. |
Just like https://docs.mollie.com/reference/v2/payments-api/get-payment
|
Discussed at the office with @rvdsteege, question is whether we should add an extra property |
From customer:
Internal Help Scout ticket: https://secure.helpscout.net/conversation/1891085653/23973/ @remcotolsma how can we improve on this? I think we need to add the |
Decided in #170 (comment) to keep track of the chargeback amount of a payment. We can then update the MemberPress transaction to 'Refunded' based on this amount. |
In the event of a Mollie payment chargeback, we give the Pronamic Pay subscription the status on hold. This ensures that future direct debits do not continue.
https://github.com/wp-pay-gateways/mollie/blob/09c60fdfbab9eee85d58909da24c5b82d9ff51fe/src/Gateway.php#L734-L767
However, the MemberPress subscription remains active. Eventually the MemberPress subscription will expire, but it is probably clearer to suspend (pause) the MemberPress subscription directly in case of a chargeback.
For example, with an annual direct debit where a chargeback is made after 2 months, you do not want the customer to keep access for another 10 months.
MeprSubscriptionsCtrl->suspend_subscription()
https://gitlab.com/pronamic/memberpress/-/blob/1.2.4/app/controllers/MeprSubscriptionsCtrl.php#L147-160
MeprSubscription->suspend()
https://gitlab.com/pronamic/memberpress/-/blob/1.2.4/app/models/MeprSubscription.php#L1095-1107
MeprBaseGateway
https://gitlab.com/pronamic/memberpress/-/blob/1.2.4/app/lib/MeprBaseGateway.php#L184-186
The text was updated successfully, but these errors were encountered: