Subscription Integration

Set WooCommerce Settings

We can create two webhooks for now. One webhook is for creating and another one is for updating.

The first one is “subscription created”. The “subscription created” is called when your customer starts a successful subscription. The second one is “subscription updated”. The “subscription updated” is called when the subscription is renewed and deleted.

First, go to WooCommerce Settings —> Advanced —> Webhooks

Click to “Add webhook” button for Subscription Created Topic

Subscription Created Topic Parameters

Now, we’ve just created our first webhook for the “subscription created” topic. We need to create another one for “subscription updated”. To do that, click to “Add webhook” button again for the “subscription updated” topic.

Subscription Updated Topic Parameters

Create a New Appkey Pair for Secret

Bear In Mind

Troubleshooting

How to debug

You may need to look at the responses from KEYZY service. To do that, please look at the logs under WooCommerce —> Status —> Logs. You’ll see files starting with webhooks-delivery-YYYY-MM-DD--UNIQUE-ID (e.g. webhooks-delivery-2021-12-05-cf5ea08f2e6045ad6d889249b3ef8fa3.log)