[Skip to main content](#vessel-content)

#   Subscription event hooks and recurring payments

##

- **[dyvel](/forum/user/39996-dyvel "View dyvel's Profile")**
- [![dyvel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39996-dyvel "View dyvel's Profile") Topic Author
- [ Offline](/forum/user/39996-dyvel)

Less More

- Posts: 88
- Thank you received: 20
-
-

4 years 3 months ago -  4 years 3 months ago [\#343558](#343558) by [dyvel](/forum/user/39996-dyvel "View dyvel's Profile")  *[Subscription event hooks and recurring payments](/forum/14-hikaserial/904791-subscription-event-hooks-and-recurring-payments#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 &quot;on the fly&quot;. 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")* was created by *[dyvel](/forum/user/39996-dyvel "View dyvel's Profile")*

-- 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: 4 years 3 months ago by [dyvel](/forum/user/39996-dyvel "View dyvel's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvOTA0NzkxLXN1YnNjcmlwdGlvbi1ldmVudC1ob29rcy1hbmQtcmVjdXJyaW5nLXBheW1lbnRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

4 years 3 months ago [\#343593](#343593) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Subscription event hooks and recurring payments](/forum/14-hikaserial/904791-subscription-event-hooks-and-recurring-payments#343593 "-- 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 &quot;on the fly&quot;. 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")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvOTA0NzkxLXN1YnNjcmlwdGlvbi1ldmVudC1ob29rcy1hbmQtcmVjdXJyaW5nLXBheW1lbnRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.088 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
