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

#   Developing payment plugin with input fields

##

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

Less More

- Posts: 6
- Thank you received: 0
-
-

11 years 3 months ago [\#209313](#209313) by [Bent Nielsen](/forum/user/38109-bent-nielsen "View Bent Nielsen's Profile")  *[Developing payment plugin with input fields](/forum/29-payment-methods/878343-developing-payment-plugin-with-input-fields#209313 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5  I am trying to develop a payment plugin.  What is required is to have the buyer select an institution from a list giving a code for electronic invoicing. The order is then exported to our main system where we process the orders and send out invoices.  I need a little help on two things:  Firstly I need to add two input fields on the checkout page that relates to this specific payment plugin. (This is one of several payment methods, the fields will be hidden when another payment method is selected, that is done by javascript)  Secondly I need to store the values from the fields in the payment information in the order.  Can you give any advice on how to do it, perhaps there is a similar functionality in some of the existing payment plugins (I haven't been able to find it, though).")* was created by *[Bent Nielsen](/forum/user/38109-bent-nielsen "View Bent Nielsen's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.5

I am trying to develop a payment plugin.

What is required is to have the buyer select an institution from a list giving a code for electronic invoicing. The order is then exported to our main system where we process the orders and send out invoices.

I need a little help on two things:

Firstly I need to add two input fields on the checkout page that relates to this specific payment plugin. (This is one of several payment methods, the fields will be hidden when another payment method is selected, that is done by javascript)

Secondly I need to store the values from the fields in the payment information in the order.

Can you give any advice on how to do it, perhaps there is a similar functionality in some of the existing payment plugins (I haven't been able to find it, though).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzgzNDMtZGV2ZWxvcGluZy1wYXltZW50LXBsdWdpbi13aXRoLWlucHV0LWZpZWxkcz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 3 months ago [\#209315](#209315) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Developing payment plugin with input fields](/forum/29-payment-methods/878343-developing-payment-plugin-with-input-fields#209315 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5  I am trying to develop a payment plugin.  What is required is to have the buyer select an institution from a list giving a code for electronic invoicing. The order is then exported to our main system where we process the orders and send out invoices.  I need a little help on two things:  Firstly I need to add two input fields on the checkout page that relates to this specific payment plugin. (This is one of several payment methods, the fields will be hidden when another payment method is selected, that is done by javascript)  Secondly I need to store the values from the fields in the payment information in the order.  Can you give any advice on how to do it, perhaps there is a similar functionality in some of the existing payment plugins (I haven't been able to find it, though).")*

Hi,

I would recommend to look at the SVEA payment plugin which has such fields, or the credit card payment plugin which is simpler and included by default in HikaShop:

[ www.hikashop.com/support/support/documen...-payment-method.html](http://www.hikashop.com/support/support/documentation/294-sveawebpay-payment-method.html)

The following user(s) said Thank You: [Bent Nielsen](/forum/user/38109-bent-nielsen "View Bent Nielsen's Profile")

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

11 years 3 months ago [\#209441](#209441) by [Bent Nielsen](/forum/user/38109-bent-nielsen "View Bent Nielsen's Profile")  Replied by *[Bent Nielsen](/forum/user/38109-bent-nielsen "View Bent Nielsen's Profile")* on topic *[Developing payment plugin with input fields](/forum/29-payment-methods/878343-developing-payment-plugin-with-input-fields#209441 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5  I am trying to develop a payment plugin.  What is required is to have the buyer select an institution from a list giving a code for electronic invoicing. The order is then exported to our main system where we process the orders and send out invoices.  I need a little help on two things:  Firstly I need to add two input fields on the checkout page that relates to this specific payment plugin. (This is one of several payment methods, the fields will be hidden when another payment method is selected, that is done by javascript)  Secondly I need to store the values from the fields in the payment information in the order.  Can you give any advice on how to do it, perhaps there is a similar functionality in some of the existing payment plugins (I haven't been able to find it, though).")*

Hi.

Thank you for your reply.

The svea plugin is far to complex for our needs. The credit card plugin seems to be highly coupled to the HikashopPaymentPlugin class, defining the available fields.

I will soldering on for now, hopefully finding a way forward.

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

11 years 2 months ago [\#209711](#209711) by [Bent Nielsen](/forum/user/38109-bent-nielsen "View Bent Nielsen's Profile")  Replied by *[Bent Nielsen](/forum/user/38109-bent-nielsen "View Bent Nielsen's Profile")* on topic *[Developing payment plugin with input fields](/forum/29-payment-methods/878343-developing-payment-plugin-with-input-fields#209711 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5  I am trying to develop a payment plugin.  What is required is to have the buyer select an institution from a list giving a code for electronic invoicing. The order is then exported to our main system where we process the orders and send out invoices.  I need a little help on two things:  Firstly I need to add two input fields on the checkout page that relates to this specific payment plugin. (This is one of several payment methods, the fields will be hidden when another payment method is selected, that is done by javascript)  Secondly I need to store the values from the fields in the payment information in the order.  Can you give any advice on how to do it, perhaps there is a similar functionality in some of the existing payment plugins (I haven't been able to find it, though).")*

Hi again.

I sorry to say that I have come very far with the payment plugin.

I just need one field (I originally thought I needed 2) that shows up on the checkout form. HikaShop would in this case not handle the payment at all, sending invoices would be handled externally.

The field would be filled with data and the buyer can select the correct company to be invoiced. Then the payment plugin reads the selected value, stores it in the order.

Can something be done with say a tmpl directory and a view?

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

11 years 2 months ago [\#209716](#209716) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Developing payment plugin with input fields](/forum/29-payment-methods/878343-developing-payment-plugin-with-input-fields#209716 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5  I am trying to develop a payment plugin.  What is required is to have the buyer select an institution from a list giving a code for electronic invoicing. The order is then exported to our main system where we process the orders and send out invoices.  I need a little help on two things:  Firstly I need to add two input fields on the checkout page that relates to this specific payment plugin. (This is one of several payment methods, the fields will be hidden when another payment method is selected, that is done by javascript)  Secondly I need to store the values from the fields in the payment information in the order.  Can you give any advice on how to do it, perhaps there is a similar functionality in some of the existing payment plugins (I haven't been able to find it, though).")*

Hi,

I really don't know what to say except what have been already written by Nicolas.
If you want to add fields with the payment plugin, you have to use the "custom html" feature and you can take a look at the two mentioned plugin for examples (knowing that the "credit card" one is lighter than the other one).
And that's it.

Now ; if you want to just explain the requirements and not the finality, with useful details on the development/technical aspect ; it will be easier for everyone.
Most information you gave are useless for our understanding of your issue ; because you said that you come "very far" but at any moment you gave details on the issue you got or the problems you're facing.

Regards,

---

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

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

11 years 2 months ago [\#209843](#209843) by [Bent Nielsen](/forum/user/38109-bent-nielsen "View Bent Nielsen's Profile")  Replied by *[Bent Nielsen](/forum/user/38109-bent-nielsen "View Bent Nielsen's Profile")* on topic *[Developing payment plugin with input fields](/forum/29-payment-methods/878343-developing-payment-plugin-with-input-fields#209843 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5  I am trying to develop a payment plugin.  What is required is to have the buyer select an institution from a list giving a code for electronic invoicing. The order is then exported to our main system where we process the orders and send out invoices.  I need a little help on two things:  Firstly I need to add two input fields on the checkout page that relates to this specific payment plugin. (This is one of several payment methods, the fields will be hidden when another payment method is selected, that is done by javascript)  Secondly I need to store the values from the fields in the payment information in the order.  Can you give any advice on how to do it, perhaps there is a similar functionality in some of the existing payment plugins (I haven't been able to find it, though).")*

It would have saved me quite some time, if you had directed me to the purchaseorder payment plugin in the first place.

I found that after grepping "custom_html".

It seems to me to be the most simple payment plugin with custom fields.

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

11 years 2 months ago [\#209852](#209852) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Developing payment plugin with input fields](/forum/29-payment-methods/878343-developing-payment-plugin-with-input-fields#209852 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.5  I am trying to develop a payment plugin.  What is required is to have the buyer select an institution from a list giving a code for electronic invoicing. The order is then exported to our main system where we process the orders and send out invoices.  I need a little help on two things:  Firstly I need to add two input fields on the checkout page that relates to this specific payment plugin. (This is one of several payment methods, the fields will be hidden when another payment method is selected, that is done by javascript)  Secondly I need to store the values from the fields in the payment information in the order.  Can you give any advice on how to do it, perhaps there is a similar functionality in some of the existing payment plugins (I haven't been able to find it, though).")*

Hi,

I have to admit that I totally forgot that plugin !
Sorry about that.

Regards,

---

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

The following user(s) said Thank You: [Bent Nielsen](/forum/user/38109-bent-nielsen "View Bent Nielsen's Profile")

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

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

[](#top)
