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

#   How recurring plugins work

##

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

Less More

- Posts: 424
- Thank you received: 11
-
-

2 years 1 month ago [\#363665](#363665) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  *[How recurring plugins work](/forum/58-hikasubscription/908700-how-recurring-plugins-work#363665 "-- HikaShop version -- : 5.1.0 -- HikaSerial version -- : 5.0.0 -- Joomla version -- : 5.1.4 -- PHP version -- : 8.1.x  Hi, I have the hikasubscription made a plan and product for it. Put the product on create and renewal after 1 day. Als rewrote mollie plugin for recurring payments, but nothing happens and i only can renew manualy via customer subscription page. Also i missing tutorial for one part in your documentation. Can you help me how to set the renewal correctly on recurring?  Yours, Mark")* was created by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")*

-- HikaShop version -- : 5.1.0
-- HikaSerial version -- : 5.0.0
-- Joomla version -- : 5.1.4
-- PHP version -- : 8.1.x

Hi,
I have the hikasubscription made a plan and product for it. Put the product on create and renewal after 1 day. Als rewrote mollie plugin for recurring payments, but nothing happens and i only can renew manualy via customer subscription page. Also i missing tutorial for one part in your documentation.  [ ![screenshot-bluepoint-concept&#95;nl-2024&#95;10&#95;02-13&#95;58&#95;16.png](/forum/attachment/59835) ](/forum/attachment/59835 "...2-13&#95;58&#95;16.png")

Can you help me how to set the renewal correctly on recurring?

Yours,
Mark

- [ ![screenshot-bluepoint-concept&#95;nl-2024&#95;10&#95;02-13&#95;58&#95;16.png](/forum/attachment/59835) ](/forum/attachment/59835 "...2-13&#95;58&#95;16.png") [ ](/forum/attachment/59835?download=1 "...2-13&#95;58&#95;16.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vOTA4NzAwLWhvdy1yZWN1cnJpbmctcGx1Z2lucy13b3JrP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

2 years 1 month ago [\#363678](#363678) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How recurring plugins work](/forum/58-hikasubscription/908700-how-recurring-plugins-work#363678 "-- HikaShop version -- : 5.1.0 -- HikaSerial version -- : 5.0.0 -- Joomla version -- : 5.1.4 -- PHP version -- : 8.1.x  Hi, I have the hikasubscription made a plan and product for it. Put the product on create and renewal after 1 day. Als rewrote mollie plugin for recurring payments, but nothing happens and i only can renew manualy via customer subscription page. Also i missing tutorial for one part in your documentation. Can you help me how to set the renewal correctly on recurring?  Yours, Mark")*

Hello,

In the "Paypal recurring" plugin, you will find three functions : "init", "activateAutoRenew" and "cancelAutoRenew".
The "init" allows to check if HikaSerial is installed or not.
The two other functions are there to mark the subscription as handled by a recurring plugin.

Regarding the "upgrade mode" setting ; it is a feature request to be able to have different ways to process the expiration time during "upgrades".
CF : [ www.hikashop.com/forum/14-hikaserial/904...question.html#343170](https://www.hikashop.com/forum/14-hikaserial/904709-hikaserial-upgrade-expiration-problem-question.html#343170)

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vOTA4NzAwLWhvdy1yZWN1cnJpbmctcGx1Z2lucy13b3JrP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 424
- Thank you received: 11
-
-

2 years 1 month ago [\#363691](#363691) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[How recurring plugins work](/forum/58-hikasubscription/908700-how-recurring-plugins-work#363691 "-- HikaShop version -- : 5.1.0 -- HikaSerial version -- : 5.0.0 -- Joomla version -- : 5.1.4 -- PHP version -- : 8.1.x  Hi, I have the hikasubscription made a plan and product for it. Put the product on create and renewal after 1 day. Als rewrote mollie plugin for recurring payments, but nothing happens and i only can renew manualy via customer subscription page. Also i missing tutorial for one part in your documentation. Can you help me how to set the renewal correctly on recurring?  Yours, Mark")*

Hi,
Thanks for the directions to make the mollie plugin recurring, but in the subscription options i see: SUBSCRIPTION_UPGRADE-MODE-DIFF and SUBSCRIPTION_UPGRADE-MODE_EXTEND what does it mean? i think it is a language string failure.

Regards,
Mark

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vOTA4NzAwLWhvdy1yZWN1cnJpbmctcGx1Z2lucy13b3JrP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

2 years 1 month ago [\#363699](#363699) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How recurring plugins work](/forum/58-hikasubscription/908700-how-recurring-plugins-work#363699 "-- HikaShop version -- : 5.1.0 -- HikaSerial version -- : 5.0.0 -- Joomla version -- : 5.1.4 -- PHP version -- : 8.1.x  Hi, I have the hikasubscription made a plan and product for it. Put the product on create and renewal after 1 day. Als rewrote mollie plugin for recurring payments, but nothing happens and i only can renew manualy via customer subscription page. Also i missing tutorial for one part in your documentation. Can you help me how to set the renewal correctly on recurring?  Yours, Mark")*

Hello,

Yes, the translations are missing ; I will check these.
The "mode diff" is a "differential mode", where the the end date become the maximum between the current expiration date and the "current date + upgrade duration".
The "mode extend" is the "extension mode", where the end date is being increment by the "upgrade duration".

An example.
You have an upgrade with a duration of "1 year".
If a customer A buy the upgrade and its subscription ends in one month.
- In diff mode : the new expiration date will be in one year.
- In extend mode : the new expiration date will be in one year and one month.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vOTA4NzAwLWhvdy1yZWN1cnJpbmctcGx1Z2lucy13b3JrP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 424
- Thank you received: 11
-
-

2 years 1 month ago -  2 years 1 month ago [\#363714](#363714) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[How recurring plugins work](/forum/58-hikasubscription/908700-how-recurring-plugins-work#363714 "-- HikaShop version -- : 5.1.0 -- HikaSerial version -- : 5.0.0 -- Joomla version -- : 5.1.4 -- PHP version -- : 8.1.x  Hi, I have the hikasubscription made a plan and product for it. Put the product on create and renewal after 1 day. Als rewrote mollie plugin for recurring payments, but nothing happens and i only can renew manualy via customer subscription page. Also i missing tutorial for one part in your documentation. Can you help me how to set the renewal correctly on recurring?  Yours, Mark")*

Thanks for telling what the the upgrade mode does. Super..
As you know i am busy rewriting the mollie plugin for recurring payments, as far as i see in mollie webhook and mandates are going correctly, however, after coding the activateAutoRenew" and "cancelAutoRenew" and init, as you explained earlier in my code, the subscription will not renew, can you help or guide me where i go wrong?
Here my code as far i completed it.
Hope you can help ![:)](/media/kunena/emoticons/3.png ":)")
Regards,
Mark

Last edit: 2 years 1 month ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: removing plugin code

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vOTA4NzAwLWhvdy1yZWN1cnJpbmctcGx1Z2lucy13b3JrP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

2 years 1 month ago [\#363719](#363719) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How recurring plugins work](/forum/58-hikasubscription/908700-how-recurring-plugins-work#363719 "-- HikaShop version -- : 5.1.0 -- HikaSerial version -- : 5.0.0 -- Joomla version -- : 5.1.4 -- PHP version -- : 8.1.x  Hi, I have the hikasubscription made a plan and product for it. Put the product on create and renewal after 1 day. Als rewrote mollie plugin for recurring payments, but nothing happens and i only can renew manualy via customer subscription page. Also i missing tutorial for one part in your documentation. Can you help me how to set the renewal correctly on recurring?  Yours, Mark")*

Hello,

Please do not share full content of plugin files.
I cleaned your post for this time...

Copying the function is the first part ; you also need to call these function to activate the auto renew and cancel it..
Please look further in the Paypal recurring plugin to see where and when these functions are called.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vOTA4NzAwLWhvdy1yZWN1cnJpbmctcGx1Z2lucy13b3JrP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 424
- Thank you received: 11
-
-

2 years 1 month ago [\#363727](#363727) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[How recurring plugins work](/forum/58-hikasubscription/908700-how-recurring-plugins-work#363727 "-- HikaShop version -- : 5.1.0 -- HikaSerial version -- : 5.0.0 -- Joomla version -- : 5.1.4 -- PHP version -- : 8.1.x  Hi, I have the hikasubscription made a plan and product for it. Put the product on create and renewal after 1 day. Als rewrote mollie plugin for recurring payments, but nothing happens and i only can renew manualy via customer subscription page. Also i missing tutorial for one part in your documentation. Can you help me how to set the renewal correctly on recurring?  Yours, Mark")*

Sorrie for the whole code, won't happen again, i was not aware of that..
Look like i found the trigger for the recurring.. thanks for guiding where to look..
Hopefully i have managed to implemnet it correctly.. Keep you posted.

Regards,
Mark

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vOTA4NzAwLWhvdy1yZWN1cnJpbmctcGx1Z2lucy13b3JrP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

2 years 1 month ago [\#363730](#363730) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How recurring plugins work](/forum/58-hikasubscription/908700-how-recurring-plugins-work#363730 "-- HikaShop version -- : 5.1.0 -- HikaSerial version -- : 5.0.0 -- Joomla version -- : 5.1.4 -- PHP version -- : 8.1.x  Hi, I have the hikasubscription made a plan and product for it. Put the product on create and renewal after 1 day. Als rewrote mollie plugin for recurring payments, but nothing happens and i only can renew manualy via customer subscription page. Also i missing tutorial for one part in your documentation. Can you help me how to set the renewal correctly on recurring?  Yours, Mark")*

Hello,

Happy to know that you have the triggers working !

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vOTA4NzAwLWhvdy1yZWN1cnJpbmctcGx1Z2lucy13b3JrP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 424
- Thank you received: 11
-
-

2 years 1 month ago [\#363999](#363999) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[How recurring plugins work](/forum/58-hikasubscription/908700-how-recurring-plugins-work#363999 "-- HikaShop version -- : 5.1.0 -- HikaSerial version -- : 5.0.0 -- Joomla version -- : 5.1.4 -- PHP version -- : 8.1.x  Hi, I have the hikasubscription made a plan and product for it. Put the product on create and renewal after 1 day. Als rewrote mollie plugin for recurring payments, but nothing happens and i only can renew manualy via customer subscription page. Also i missing tutorial for one part in your documentation. Can you help me how to set the renewal correctly on recurring?  Yours, Mark")*

Hi Jerome,
Just a little question, When recurring is set, is the original order of the subscription then renewed? or does it work like the manual setting to extend the subscription. Manualy i see that the system is making a new order for the subscription.
Like to know this so i can fine tune the plugin with the recurring option.

Hope you understand my question and love to hear from you how it is set.

Regards,
Mark

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vOTA4NzAwLWhvdy1yZWN1cnJpbmctcGx1Z2lucy13b3JrP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

2 years 1 month ago [\#364012](#364012) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How recurring plugins work](/forum/58-hikasubscription/908700-how-recurring-plugins-work#364012 "-- HikaShop version -- : 5.1.0 -- HikaSerial version -- : 5.0.0 -- Joomla version -- : 5.1.4 -- PHP version -- : 8.1.x  Hi, I have the hikasubscription made a plan and product for it. Put the product on create and renewal after 1 day. Als rewrote mollie plugin for recurring payments, but nothing happens and i only can renew manualy via customer subscription page. Also i missing tutorial for one part in your documentation. Can you help me how to set the renewal correctly on recurring?  Yours, Mark")*

Hello,

A renewal is a payment of the sum for the subscription.
The original order is used as the reference and a new order is created with the recurring content.
Regarding HikaShop side, the payment plugin need to know during the notification (or hook/etc) if it's to confirm the original order or if it's related to a renewal ; then it needs to know if i calls "createRecurringSuborder" to get a new order_id for the final call on "modifyOrder".

Please check the Paypal recurring code for example.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vOTA4NzAwLWhvdy1yZWN1cnJpbmctcGx1Z2lucy13b3JrP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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.082 seconds

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