Subscription event hooks and recurring payments

  • Posts: 88
  • Thank you received: 19
2 years 3 months ago #343558

-- 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

Last edit: 2 years 3 months ago by dyvel.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
2 years 3 months ago #343593

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,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.057 seconds
Powered by Kunena Forum