Hi,
We've been using Hikashop/Serial for many years now, and finally started to look at subscriptions.
We have an existing, custom, plugin which communicates with a 3rd party system when an order is generated via the
trigger. This works well.
Now, we'd also like to pass some subscription info to the 3rd party system when a subscription is (a) created and also (b) renewed (which will be done automatically via the Paypal recurring payment plugin).
I have a plan created and assigned to a product using "Creation then Renewal". Within the
trigger, I took a look at the object returned by
'class.order'->loadFullOrder()
function but this doesn't appear to include any of the associated order's subscription data.
Is there a mechanism to obtain the subscription data (e.g. subscription Id, valid from/to datetime) from within the
trigger or perhaps a different trigger specifically for subscriptions? I saw
but I suspect this is for a different use case?
If such a thing is possible, is it the same mechanism for both initial subscription creation AND automatic renewal (using "Creation then Renewal")?
Many thanks,
Oliver