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

#   How to add a new payment or shipping method?

##

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

Less More

- Posts: 107
- Thank you received: 1
-
-

14 years 1 week ago -  14 years 1 week ago [\#78729](#78729) by [tinachou](/forum/user/11887-tinachou "View tinachou's Profile")  *[How to add a new payment or shipping method?](/forum/4-how-to/76152-how-to-add-a-new-payment-or-shipping-method#78729 "Hi there,  I need to add an additional payment method called &quot; pay at the convenient store&quot; like 7-11.  That means the ordered things will be sent to the convenient store that specified by the consumer;  once the ordered things arrive at the convenient store,  the consumer will get a reminding message from the seller  so the consumer can then go to the convenient store to pay the bill and get the things.  There is an online service which offers an API that developers can pass the required parameters to the application service and it will send back some necessary info.  The example code is here :   www.ezship.com.tw/emap/ezship&#95;simulation&#95;request&#95;code&#95;big5.html  However, I don't know how and where can I add this additional payment plugin into Hikashop and make it appear as a payment option?  Please help me to configure this.  Thank you so much. :)")* was created by *[tinachou](/forum/user/11887-tinachou "View tinachou's Profile")*

Hi there,

I need to add an additional payment method called " pay at the convenient store" like 7-11.

That means the ordered things will be sent to the convenient store that specified by the consumer;

once the ordered things arrive at the convenient store,

the consumer will get a reminding message from the seller

so the consumer can then go to the convenient store to pay the bill and get the things.

There is an online service which offers an API that developers can pass the required parameters to the application service
and it will send back some necessary info.

The example code is here : [ www.ezship.com.tw/emap/ezship\_simulation\_request\_code\_big5.html](http://www.ezship.com.tw/emap/ezship_simulation_request_code_big5.html)

However, I don't know how and where can I add this additional payment plugin into Hikashop and make it appear as a payment option?

Please help me to configure this.

Thank you so much. ![:)](/media/kunena/emoticons/3.png ":)")

Last edit: 14 years 1 week ago by [tinachou](/forum/user/11887-tinachou "View tinachou's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTUyLWhvdy10by1hZGQtYS1uZXctcGF5bWVudC1vci1zaGlwcGluZy1tZXRob2Q/dG1wbD1tYXJrZG93bg==) 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)
-

14 years 1 week ago [\#78750](#78750) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to add a new payment or shipping method?](/forum/4-how-to/76152-how-to-add-a-new-payment-or-shipping-method#78750 "Hi there,  I need to add an additional payment method called &quot; pay at the convenient store&quot; like 7-11.  That means the ordered things will be sent to the convenient store that specified by the consumer;  once the ordered things arrive at the convenient store,  the consumer will get a reminding message from the seller  so the consumer can then go to the convenient store to pay the bill and get the things.  There is an online service which offers an API that developers can pass the required parameters to the application service and it will send back some necessary info.  The example code is here :   www.ezship.com.tw/emap/ezship&#95;simulation&#95;request&#95;code&#95;big5.html  However, I don't know how and where can I add this additional payment plugin into Hikashop and make it appear as a payment option?  Please help me to configure this.  Thank you so much. :)")*

Hi,

I think you want to use the "collect on delivery" payment plugin.
If you want to use several times this plugin, you would have to duplicate it.
The duplication requires some little development skills in order to create a valid zip with duplicated files.

We don't have a plugin for "ezship" but with some developpment skills, you can implement it.
[ www.hikashop.com/en/support/documentatio...r-documentation.html](http://www.hikashop.com/en/support/documentation/62-hikashop-developer-documentation.html)

I don't understand if "ezship" is a shipping or a payment method but HikaShop plugins are Joomla plugins with some specific triggers.
Creating a plugin for HikaShop is like creating a plugin for Joomla. If you want to install an HikaShop plugin, you would use the Joomla Extension manager.

Regards,

---

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

The following user(s) said Thank You: [tinachou](/forum/user/11887-tinachou "View tinachou's Profile")

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

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

Less More

- Posts: 107
- Thank you received: 1
-
-

14 years 3 days ago -  14 years 3 days ago [\#79640](#79640) by [tinachou](/forum/user/11887-tinachou "View tinachou's Profile")  Replied by *[tinachou](/forum/user/11887-tinachou "View tinachou's Profile")* on topic *[How to add a new payment or shipping method?](/forum/4-how-to/76152-how-to-add-a-new-payment-or-shipping-method#79640 "Hi there,  I need to add an additional payment method called &quot; pay at the convenient store&quot; like 7-11.  That means the ordered things will be sent to the convenient store that specified by the consumer;  once the ordered things arrive at the convenient store,  the consumer will get a reminding message from the seller  so the consumer can then go to the convenient store to pay the bill and get the things.  There is an online service which offers an API that developers can pass the required parameters to the application service and it will send back some necessary info.  The example code is here :   www.ezship.com.tw/emap/ezship&#95;simulation&#95;request&#95;code&#95;big5.html  However, I don't know how and where can I add this additional payment plugin into Hikashop and make it appear as a payment option?  Please help me to configure this.  Thank you so much. :)")*

Dear Jerome,

Thank you for your insightful reply.

As you say, may I zip the directory "plg_hikashoppayment_collectondelivery" as :

[ ![COD1.jpg](/forum/attachment/7277) ](/forum/attachment/7277 "COD1.jpg")

and install duplicate "plg_hikashoppayment_collectondelivery" to Joomla website through "extension manager"?

Then, try to modify the included files as:

[ ![COD2.jpg](/forum/attachment/7278) ](/forum/attachment/7278 "COD2.jpg")

Are the above steps correct?

If yes, then, since there are four php files, Which php file should I add additional code into?

**EZSHIP** offers an API : "[ www.ezship.com.tw/emap/rv\_request\_web.jsp](http://www.ezship.com.tw/emap/rv_request_web.jsp)" and uses the method "post".

Their API requires the following parameters:

- **su\_id** = shop owner's ezShip account
- **order\_id** = order ID
- **rturl** = return url
- **rv\_name** = customer's name
- **rv\_email** = customer's email
- **rv\_mobil** = customer's mobile phone number
- **rv\_amount** = 2000 or 0.
(If customer will pay at the convenient store, then rv\_amount=2000;
if customer will not pay at the convenient store, then rv\_amount=0.)
- **webtemp** = Some other parameters required by Hikashop web application for logic handling.

I wonder what are the corresponding parameters of Hikashop side?

What are the return URL and webtemp for Hikashop? I am confused.

My most appreciation. ![:)](/media/kunena/emoticons/3.png ":)")

- [ ![COD1.jpg](/forum/attachment/7277) ](/forum/attachment/7277 "COD1.jpg") [ ](/forum/attachment/7277?download=1 "COD1.jpg")
- [ ![COD2.jpg](/forum/attachment/7278) ](/forum/attachment/7278 "COD2.jpg") [ ](/forum/attachment/7278?download=1 "COD2.jpg")

Last edit: 14 years 3 days ago by [tinachou](/forum/user/11887-tinachou "View tinachou's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTUyLWhvdy10by1hZGQtYS1uZXctcGF5bWVudC1vci1zaGlwcGluZy1tZXRob2Q/dG1wbD1tYXJrZG93bg==) 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)
-

14 years 2 days ago [\#79743](#79743) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to add a new payment or shipping method?](/forum/4-how-to/76152-how-to-add-a-new-payment-or-shipping-method#79743 "Hi there,  I need to add an additional payment method called &quot; pay at the convenient store&quot; like 7-11.  That means the ordered things will be sent to the convenient store that specified by the consumer;  once the ordered things arrive at the convenient store,  the consumer will get a reminding message from the seller  so the consumer can then go to the convenient store to pay the bill and get the things.  There is an online service which offers an API that developers can pass the required parameters to the application service and it will send back some necessary info.  The example code is here :   www.ezship.com.tw/emap/ezship&#95;simulation&#95;request&#95;code&#95;big5.html  However, I don't know how and where can I add this additional payment plugin into Hikashop and make it appear as a payment option?  Please help me to configure this.  Thank you so much. :)")*

Hi,

It's a little bit different.
If you're working directly in your joomla instance. You can copy the directory, rename it to "plg_hikashopshipping_collectondelivery2" and rename files into using the same method.
After that, you have to edit the xml files and some PHP files in order to replace "collectondelivery" by "collectondelivery2".

When your plugin would be ready, you would be able to use the "discovery" feature in Jooma extension manager.
Your new plugin should appear and you would be able to install it.

Regards,

---

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

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

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

Less More

- Posts: 107
- Thank you received: 1
-
-

14 years 2 days ago [\#79768](#79768) by [tinachou](/forum/user/11887-tinachou "View tinachou's Profile")  Replied by *[tinachou](/forum/user/11887-tinachou "View tinachou's Profile")* on topic *[How to add a new payment or shipping method?](/forum/4-how-to/76152-how-to-add-a-new-payment-or-shipping-method#79768 "Hi there,  I need to add an additional payment method called &quot; pay at the convenient store&quot; like 7-11.  That means the ordered things will be sent to the convenient store that specified by the consumer;  once the ordered things arrive at the convenient store,  the consumer will get a reminding message from the seller  so the consumer can then go to the convenient store to pay the bill and get the things.  There is an online service which offers an API that developers can pass the required parameters to the application service and it will send back some necessary info.  The example code is here :   www.ezship.com.tw/emap/ezship&#95;simulation&#95;request&#95;code&#95;big5.html  However, I don't know how and where can I add this additional payment plugin into Hikashop and make it appear as a payment option?  Please help me to configure this.  Thank you so much. :)")*

Dear,

I rename the directory and re-edit the corresponding files. I put the new "collectondelivery2" under website\plugins\hikashoppayment.

However,when I use "discovery" function, there is no files being found.

What should I do now?

Really really thank you. ![:)](/media/kunena/emoticons/3.png ":)")

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

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

Less More

- Posts: 107
- Thank you received: 1
-
-

14 years 2 days ago [\#79808](#79808) by [tinachou](/forum/user/11887-tinachou "View tinachou's Profile")  Replied by *[tinachou](/forum/user/11887-tinachou "View tinachou's Profile")* on topic *[How to add a new payment or shipping method?](/forum/4-how-to/76152-how-to-add-a-new-payment-or-shipping-method#79808 "Hi there,  I need to add an additional payment method called &quot; pay at the convenient store&quot; like 7-11.  That means the ordered things will be sent to the convenient store that specified by the consumer;  once the ordered things arrive at the convenient store,  the consumer will get a reminding message from the seller  so the consumer can then go to the convenient store to pay the bill and get the things.  There is an online service which offers an API that developers can pass the required parameters to the application service and it will send back some necessary info.  The example code is here :   www.ezship.com.tw/emap/ezship&#95;simulation&#95;request&#95;code&#95;big5.html  However, I don't know how and where can I add this additional payment plugin into Hikashop and make it appear as a payment option?  Please help me to configure this.  Thank you so much. :)")*

hi there,

I have to send the parameters of customer's name, email, and phone number to EZSHIP's API.

I wonder how can I get the user's email, name, and phone number in Hikashop. Which function should I use?

I did some check, and found out

**$user\_id = hikashop\_loadUser();**

But this is for user's id. How can I get the other information of users?

Thank you so much. ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTUyLWhvdy10by1hZGQtYS1uZXctcGF5bWVudC1vci1zaGlwcGluZy1tZXRob2Q/dG1wbD1tYXJrZG93bg==) 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)
-

14 years 1 day ago [\#79875](#79875) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to add a new payment or shipping method?](/forum/4-how-to/76152-how-to-add-a-new-payment-or-shipping-method#79875 "Hi there,  I need to add an additional payment method called &quot; pay at the convenient store&quot; like 7-11.  That means the ordered things will be sent to the convenient store that specified by the consumer;  once the ordered things arrive at the convenient store,  the consumer will get a reminding message from the seller  so the consumer can then go to the convenient store to pay the bill and get the things.  There is an online service which offers an API that developers can pass the required parameters to the application service and it will send back some necessary info.  The example code is here :   www.ezship.com.tw/emap/ezship&#95;simulation&#95;request&#95;code&#95;big5.html  However, I don't know how and where can I add this additional payment plugin into Hikashop and make it appear as a payment option?  Please help me to configure this.  Thank you so much. :)")*

Hi,

If you want to see how load user info and address info, the best is to read source code of other payment plugins, like "paypal" or other. Code:

$address_type = 'shipping_address'; // or 'billing_address' $app =&amp; JFactory::getApplication(); $address = $app-&gt;getUserState( HIKASHOP_COMPONENT.'.'.$address_type); $cart = hikashop_get('class.cart'); $cart-&gt;loadAddress($order-&gt;cart, $address, 'object', 'shipping'); // or 'billing' £first_name = @$order-&gt;cart-&gt;$address_type-&gt;address_firstname; £last_name = @$order-&gt;cart-&gt;$address_type-&gt;address_lastname; // etc

Regards,

---

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

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

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

Less More

- Posts: 107
- Thank you received: 1
-
-

14 years 1 day ago -  14 years 1 day ago [\#79900](#79900) by [tinachou](/forum/user/11887-tinachou "View tinachou's Profile")  Replied by *[tinachou](/forum/user/11887-tinachou "View tinachou's Profile")* on topic *[How to add a new payment or shipping method?](/forum/4-how-to/76152-how-to-add-a-new-payment-or-shipping-method#79900 "Hi there,  I need to add an additional payment method called &quot; pay at the convenient store&quot; like 7-11.  That means the ordered things will be sent to the convenient store that specified by the consumer;  once the ordered things arrive at the convenient store,  the consumer will get a reminding message from the seller  so the consumer can then go to the convenient store to pay the bill and get the things.  There is an online service which offers an API that developers can pass the required parameters to the application service and it will send back some necessary info.  The example code is here :   www.ezship.com.tw/emap/ezship&#95;simulation&#95;request&#95;code&#95;big5.html  However, I don't know how and where can I add this additional payment plugin into Hikashop and make it appear as a payment option?  Please help me to configure this.  Thank you so much. :)")*

Dear J,

I am very thankful for your hints. I have finished the API connection. ![^&#95;^](/anime.gif "^&#95;^")Code:

$user = hikashop_loadUser(true); $address_type = 'billing_address'; // or 'billing_address' $app =&amp; JFactory::getApplication(); $address = $app-&gt;getUserState( HIKASHOP_COMPONENT.'.'.$address_type); $cart = hikashop_get('class.cart'); $cart-&gt;loadAddress($order-&gt;cart, $address, 'object', 'billing'); // or 'billing' $vars["name"]=@$order-&gt;cart-&gt;$address_type-&gt;address_firstname; $vars["phone"]=@$order-&gt;cart-&gt;$address_type-&gt;address_telephone; $vars["email"]=$user-&gt;user_email;

Currently I overwrote the original "collectondelivery" plugin for test.

But I have to make a new plugin for ezship because "collectondelivery" itself is also a payment option too.

I have tried the method you mentioned by the "discovery" function of extension manager. However, the function cannot work. (I put the "collectondelivery2" in the same directory as "collectondelivery" plugin.) Joomla just cannot find it.

Is there any alternative way to install the plugin?

Last edit: 14 years 1 day ago by [tinachou](/forum/user/11887-tinachou "View tinachou's Profile").

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86592
- Thank you received: 14332
-
-

14 years 14 hours ago [\#79966](#79966) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to add a new payment or shipping method?](/forum/4-how-to/76152-how-to-add-a-new-payment-or-shipping-method#79966 "Hi there,  I need to add an additional payment method called &quot; pay at the convenient store&quot; like 7-11.  That means the ordered things will be sent to the convenient store that specified by the consumer;  once the ordered things arrive at the convenient store,  the consumer will get a reminding message from the seller  so the consumer can then go to the convenient store to pay the bill and get the things.  There is an online service which offers an API that developers can pass the required parameters to the application service and it will send back some necessary info.  The example code is here :   www.ezship.com.tw/emap/ezship&#95;simulation&#95;request&#95;code&#95;big5.html  However, I don't know how and where can I add this additional payment plugin into Hikashop and make it appear as a payment option?  Please help me to configure this.  Thank you so much. :)")*

You can zip the files of your plugin and install it like a normal extension via the joomla installer.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MTUyLWhvdy10by1hZGQtYS1uZXctcGF5bWVudC1vci1zaGlwcGluZy1tZXRob2Q/dG1wbD1tYXJrZG93bg==) 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?

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

Time to create page: 0.086 seconds

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