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

#   Custom payment methods

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

14 years 7 months ago [\#45846](#45846) by [TWControls](/forum/user/6891-twcontrols "View TWControls's Profile")  *[Custom payment methods](/forum/4-how-to/45846-custom-payment-methods#45846 "I've just about finished setting up our test system but we have three additional payment methods on our current system that don't match any of the default plugins:Quote, Phone, Purchase Order. No...")* was created by *[TWControls](/forum/user/6891-twcontrols "View TWControls's Profile")*

I've just about finished setting up our test system but we have three additional payment methods on our current system that don't match any of the default plugins:Quote, Phone, Purchase Order. No information has to be collected for these methods so I I can modify some of the methods I'm not using such as Western Union to serve this purpose, but can I copy or rename one of the other plugins and give it a different ID so I have an actual "Phone" payment method?

Thanks
Tim

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ1ODQ2LWN1c3RvbS1wYXltZW50LW1ldGhvZHM/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: 86564
- Thank you received: 14311
-
-

14 years 7 months ago [\#46081](#46081) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Custom payment methods](/forum/4-how-to/45846-custom-payment-methods#46081 "I've just about finished setting up our test system but we have three additional payment methods on our current system that don't match any of the default plugins:Quote, Phone, Purchase Order. No...")*

You can't just copy them. You would have to also edit the files of the plugins and change some of the code.

You can rename the plugins: "collect on delivery", "western union", "bank transfer" and "check"
They are pretty much the same.

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

14 years 7 months ago [\#46167](#46167) by [TWControls](/forum/user/6891-twcontrols "View TWControls's Profile")  Replied by *[TWControls](/forum/user/6891-twcontrols "View TWControls's Profile")* on topic *[Re: Custom payment methods](/forum/4-how-to/45846-custom-payment-methods#46167 "I've just about finished setting up our test system but we have three additional payment methods on our current system that don't match any of the default plugins:Quote, Phone, Purchase Order. No...")*

Ok thanks for the info.

Tim

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

- **[phamosa](/forum/user/7861-phamosa "View phamosa's Profile")**
- [![phamosa's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/guitar.gif)](/forum/user/7861-phamosa "View phamosa's Profile")
- [ Offline](/forum/user/7861-phamosa)

Less More

- Posts: 65
- Thank you received: 0
-
-

13 years 11 months ago [\#80519](#80519) by [phamosa](/forum/user/7861-phamosa "View phamosa's Profile")  Replied by *[phamosa](/forum/user/7861-phamosa "View phamosa's Profile")* on topic *[Custom payment methods](/forum/4-how-to/45846-custom-payment-methods#80519 "I've just about finished setting up our test system but we have three additional payment methods on our current system that don't match any of the default plugins:Quote, Phone, Purchase Order. No...")*

I wanted to change the "Western Union" plugin into "Payment in Advance". I changed the name in the .xml file but the variable in my admin confirmation email "($data-&gt;order_payment_method)" still draws the name "westernunion".
Can I just change the line
*if($method-&gt;payment\_type!='westernunion' \|\| !$method-&gt;enabled){*

in the "westernunion.php" file?

It's the only place where I can find this exact naming..

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ1ODQ2LWN1c3RvbS1wYXltZW50LW1ldGhvZHM/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: 86564
- Thank you received: 14311
-
-

13 years 11 months ago [\#80579](#80579) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom payment methods](/forum/4-how-to/45846-custom-payment-methods#80579 "I've just about finished setting up our test system but we have three additional payment methods on our current system that don't match any of the default plugins:Quote, Phone, Purchase Order. No...")*

There are a other places in the file where you need to change that like the class name. The XML and the php file names should be changed too. The XML itself should be changed too.

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

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

Less More

- Posts: 25
- Thank you received: 0
-
-

12 years 11 months ago [\#132938](#132938) by [aleks59](/forum/user/19049-aleks59 "View aleks59's Profile")  Replied by *[aleks59](/forum/user/19049-aleks59 "View aleks59's Profile")* on topic *[Custom payment methods](/forum/4-how-to/45846-custom-payment-methods#132938 "I've just about finished setting up our test system but we have three additional payment methods on our current system that don't match any of the default plugins:Quote, Phone, Purchase Order. No...")*

Hi,
I have made a custom payment plugin based on the check payment. I also added a myplugin_configuration.php file in the zip.
After installation everything worked fine. Only this configuration file is missing. But everything works without it. What is if for? All other payment plugins do have this file. Which role does if play?

Many thanks in advance
Aleks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ1ODQ2LWN1c3RvbS1wYXltZW50LW1ldGhvZHM/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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 11 months ago [\#132941](#132941) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom payment methods](/forum/4-how-to/45846-custom-payment-methods#132941 "I've just about finished setting up our test system but we have three additional payment methods on our current system that don't match any of the default plugins:Quote, Phone, Purchase Order. No...")*

Hi,

The configuration file is used only if you want to have a more complex configuration interface.
If you add a file with your plugin, you have to reference it in the XML so Joomla will copy it in the right place.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ1ODQ2LWN1c3RvbS1wYXltZW50LW1ldGhvZHM/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.063 seconds

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