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

#   How to show add more/remove field section in payment gateway configuration page

##

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

Less More

- Posts: 21
- Thank you received: 0
-
-

6 years 4 months ago [\#321881](#321881) by [ajdev33](/forum/user/59738-ajdev33 "View ajdev33's Profile")  *[How to show add more/remove field section in payment gateway configuration page](/forum/29-payment-methods/900385-how-to-show-add-more-remove-field-section-in-payment-gateway-configuration-page#321881 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.3  Hello,  I am integrating a custom payment gateway and I managed to install and show all required fields under Specific configuration section. Now I want one more section which will contain multiple Value and Title field with remove button something like below :  I did R&amp;D but did not find a way to create something like this for my payment gateway. So please let me know how to create this kind of custom section and save data in db.  Thanks")* was created by *[ajdev33](/forum/user/59738-ajdev33 "View ajdev33's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.19
-- PHP version -- : 7.3

Hello,

I am integrating a custom payment gateway and I managed to install and show all required fields under Specific configuration section.
Now I want one more section which will contain multiple Value and Title field with remove button something like below :

[ ![add&#95;more.png](/forum/attachment/50030) ](/forum/attachment/50030 "add&#95;more.png")

I did R&amp;D but did not find a way to create something like this for my payment gateway. So please let me know how to create this kind of custom section and save data in db.

Thanks

- [ ![add&#95;more.png](/forum/attachment/50030) ](/forum/attachment/50030 "add&#95;more.png") [ ](/forum/attachment/50030?download=1 "add&#95;more.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDAzODUtaG93LXRvLXNob3ctYWRkLW1vcmUtcmVtb3ZlLWZpZWxkLXNlY3Rpb24taW4tcGF5bWVudC1nYXRld2F5LWNvbmZpZ3VyYXRpb24tcGFnZT90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

6 years 4 months ago [\#321886](#321886) 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 show add more/remove field section in payment gateway configuration page](/forum/29-payment-methods/900385-how-to-show-add-more-remove-field-section-in-payment-gateway-configuration-page#321886 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.3  Hello,  I am integrating a custom payment gateway and I managed to install and show all required fields under Specific configuration section. Now I want one more section which will contain multiple Value and Title field with remove button something like below :  I did R&amp;D but did not find a way to create something like this for my payment gateway. So please let me know how to create this kind of custom section and save data in db.  Thanks")*

Hi,

In your plugin, you can add a function pluginConfigDisplay($optionType, $extraOption, $type, $paramsType, $key, $element, $options) and return the HTML you want. That way, you can create new type of options for the $pluginConfig attribute at the beginning of your plugin. When the type you set there is not known, the system will call your pluginConfigDisplay function so that it can return the HTML you want to be displayed.
And you can add another function called onPaymentConfigurationSave(&amp;$element) to be called when the payment method is being saved so that you can take the data from the POST and add it in the object $element-&gt;payment_params as extra attributes or in another table of your plugin or eslewhere.

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

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