-
Notifications
You must be signed in to change notification settings - Fork 3
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
Regarding Cancel Subscription Function #41
Comments
Hello Team Is there an update on this? |
Seems we don't use (and never have) the wp-pay-core/src/Core/Gateway.php Lines 244 to 262 in f220aa2
@knit-pay you should be able to hook into subscription status updates through the status update actions. wp-pay-core/src/Subscriptions/SubscriptionsDataStoreCPT.php Lines 761 to 795 in f220aa2
|
Thanks |
…-function Remove `Gateway->update_subscription()` and `Gateway->cancel_subscription()` methods. #41
I think in the
handle_subscription_cancel
function, we should call thecancel_subscription
function of Gateway also. In some payment gateway, we need to make an API call to inform the gateway that the subscription is canceled. Apart from this, is there any other way to make an API call while executing thehandle_subscription_cancel
function? Or is there an action similar topronamic_payment_status_update_
which we can use to execute a function when a subscription gets canceled? Please refer to the code mentioned below.https://github.com/wp-pay/core/blob/88ac1e26ae754cb2366697023f38f6004dbd15bb/src/Subscriptions/SubscriptionsModule.php#L152
https://github.com/wp-pay/core/blob/88ac1e26ae754cb2366697023f38f6004dbd15bb/src/Core/Gateway.php#L431
The text was updated successfully, but these errors were encountered: