- Posts: 88
- Thank you received: 20
Subscription event hooks and recurring payments
4 years 3 months ago - 4 years 3 months ago #343558
by dyvel
Subscription event hooks and recurring payments was created by dyvel
-- HikaShop version -- : 4.6.1
-- HikaSerial version -- : 4.0.1
-- Joomla version -- : 4.1.4
-- PHP version -- : 8.0
Hi
I'm considering a use case where I would need to modify the price of a recurring subscription "on the fly". Let me explain.
A user signs up to a monthly subscription. I would like to create a plugin that checks the subscription before a recurring payment and in some cases (defined by code in the plugin) lowers the monthly payment.
I can code the plugin and the needed logic, but do we have any event hooks in Hikashop/Hikaserial that the plugin can use for changing the recurring payment amount? E.g. onBeforeSubscriptionUpdate?
Thanks
-- HikaSerial version -- : 4.0.1
-- Joomla version -- : 4.1.4
-- PHP version -- : 8.0
Hi
I'm considering a use case where I would need to modify the price of a recurring subscription "on the fly". Let me explain.
A user signs up to a monthly subscription. I would like to create a plugin that checks the subscription before a recurring payment and in some cases (defined by code in the plugin) lowers the monthly payment.
I can code the plugin and the needed logic, but do we have any event hooks in Hikashop/Hikaserial that the plugin can use for changing the recurring payment amount? E.g. onBeforeSubscriptionUpdate?
Thanks
Last edit: 4 years 3 months ago by dyvel.
Please Log in or Create an account to join the conversation.
4 years 3 months ago #343593
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Subscription event hooks and recurring payments
Hello,
Modifying a price is possible since you have various triggers in HikaSerial and HikaShop.
But the real problem I see is regarding the payment platform ; because if you want to change the recurring price, it means that the payment plugin would be able to accept a modification in the reccuring price.
Regards,
Modifying a price is possible since you have various triggers in HikaSerial and HikaShop.
But the real problem I see is regarding the payment platform ; because if you want to change the recurring price, it means that the payment plugin would be able to accept a modification in the reccuring price.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.054 seconds