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

#   Hikashop redirect to payment gateway url with a POST, but we need a GET!

##

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

Less More

- Posts: 53
- Thank you received: 1
-
-

4 years 5 months ago [\#342203](#342203) by [matmosis](/forum/user/61552-matmosis "View matmosis's Profile")  *[Hikashop redirect to payment gateway url with a POST, but we need a GET!](/forum/4-how-to/904519-hikashop-redirect-to-payment-gateway-url-with-a-post-but-we-need-a-get#342203 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 3.10.6 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : Chrome 90.0.4430.212  Hello! we created a &quot;payment plugin&quot; for hikashop environment. Plugin call a custom WS that return a the url for the paymente gateway. As the example we had follow, in the &quot;onAfterOrderConfirm&quot; we set that url into $this-&gt;gateway&#95;url.  Then i don't know what append, but if url point to a bank gateway that accept a POST call, everything goes well. If the url point to a bank gateway tha only accept a GET call, then we got an http error &quot;POST is not allowed&quot;.  How can we manage that?  The best would be to have a custom plugin parameter where to set GET or POST options as needed, but i don't know then how to say &quot;hei hikashop! do a GET for this case&quot; :)  Thank you very much. Regards,")* was created by *[matmosis](/forum/user/61552-matmosis "View matmosis's Profile")*

-- HikaShop version -- : 4.6.0
-- Joomla version -- : 3.10.6
-- PHP version -- : 7.4.3
-- Browser(s) name and version -- : Chrome 90.0.4430.212

Hello!
we created a "payment plugin" for hikashop environment. Plugin call a custom WS that return a the url for the paymente gateway.
As the example we had follow, in the "onAfterOrderConfirm" we set that url into $this-&gt;gateway_url.

Then i don't know what append, but if url point to a bank gateway that accept a POST call, everything goes well.
If the url point to a bank gateway tha only accept a GET call, then we got an http error "POST is not allowed".

How can we manage that?

The best would be to have a custom plugin parameter where to set GET or POST options as needed, but i don't know then how to say "hei hikashop! do a GET for this case" ![:)](/media/kunena/emoticons/3.png ":)")

Thank you very much.
Regards,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkwNDUxOS1oaWthc2hvcC1yZWRpcmVjdC10by1wYXltZW50LWdhdGV3YXktdXJsLXdpdGgtYS1wb3N0LWJ1dC13ZS1uZWVkLWEtZ2V0P3RtcGw9bWFya2Rvd24=) 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: 86359
- Thank you received: 14293
-
-

4 years 5 months ago [\#342205](#342205) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop redirect to payment gateway url with a POST, but we need a GET!](/forum/4-how-to/904519-hikashop-redirect-to-payment-gateway-url-with-a-post-but-we-need-a-get#342205 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 3.10.6 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : Chrome 90.0.4430.212  Hello! we created a &quot;payment plugin&quot; for hikashop environment. Plugin call a custom WS that return a the url for the paymente gateway. As the example we had follow, in the &quot;onAfterOrderConfirm&quot; we set that url into $this-&gt;gateway&#95;url.  Then i don't know what append, but if url point to a bank gateway that accept a POST call, everything goes well. If the url point to a bank gateway tha only accept a GET call, then we got an http error &quot;POST is not allowed&quot;.  How can we manage that?  The best would be to have a custom plugin parameter where to set GET or POST options as needed, but i don't know then how to say &quot;hei hikashop! do a GET for this case&quot; :)  Thank you very much. Regards,")*

Hi,

There is no such thing because it's you who control this in the plugin.
In the plugin you normally have a file finishing with "_end.php". That file contains the form which has all the hidden input fields and which is triggered to redirect to the payment gateway.
So in that file of your payment plugin, you just need to make sure that the form HTML element has a "method" attribute set to "get" if you want the form to be sent as a GET:
[ www.w3schools.com/tags/att\_form\_method.asp](https://www.w3schools.com/tags/att_form_method.asp)

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

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