- This topic has 2 replies, 1 voice, and was last updated 1 month ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Stripe payment plugins for your WordPress site
· ·
Home › Forums › Stripe Payments Plugin › Subscription – Action hook for cancelling a subscription
Tagged: action hooks, hooks, Subscription, webhooks
Hello,
I am trying to send a request to my external API once a subscription is paid and cancelled. I have found this page: https://s-plugins.com/stripe-payments-plugin-action-hooks-reference/
Here I can see “asp_stripe_payment_completed” hook which is working, I can see the subscription and stripe data objects in debug.log
However, for “asp_subscription_invoice_paid” and more importantly, for “asp_subscription_canceled” I cannot see anything in debug.log
I have all 3 hooks defined in functions.php
So my problem is that my API doesn’t know when a subscription is cancelled.
Any help or thoughts are much appreciated, thank you!
Best,
Marius
Update: Found this discussion: https://s-plugins.com/forums/topic/i-need-to-hook-into-the-chancel-subscription-function/
I’m in the process of making a custom plugin right now and check. Will update.
Ok, it works. I created a plugin specifically for the hooks and it’s all good.
Thank you, the plugin is really nice so far.