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

#   Payment Plugin for ogone.com

##

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

Less More

- Posts: 33
- Thank you received: 0
-
-

15 years 1 month ago [\#26244](#26244) by [mkasika](/forum/user/3820-mkasika "View mkasika's Profile")  *[Payment Plugin for ogone.com](/forum/4-how-to/26244-payment-plugin-for-ogone-com#26244 "Hi,  I'm trying to do a payment plugin for ogone.com. In the last step of the webshop we need to submit a form with some hidden form fields (among others things like &quot;currency&quot;, &quot;amount&quot;, &quot;language&quot;, &quot;address&quot;, ...) to a url provided by them. What's the best way to get this done?  I've already looked into the php code of some other payment plugins, but I didn't find anything similar to the things that we need.  Thanks in advance for your support!  Best regards, Martin Kasika")* was created by *[mkasika](/forum/user/3820-mkasika "View mkasika's Profile")*

Hi,

I'm trying to do a payment plugin for ogone.com. In the last step of the webshop we need to submit a form with some hidden form fields (among others things like "currency", "amount", "language", "address", ...) to a url provided by them. What's the best way to get this done?

I've already looked into the php code of some other payment plugins, but I didn't find anything similar to the things that we need.

Thanks in advance for your support!

Best regards,
Martin Kasika

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

Less More

- Posts: 86578
- Thank you received: 14321
-
-

15 years 1 month ago [\#26249](#26249) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Payment Plugin for ogone.com](/forum/4-how-to/26244-payment-plugin-for-ogone-com#26249 "Hi,  I'm trying to do a payment plugin for ogone.com. In the last step of the webshop we need to submit a form with some hidden form fields (among others things like &quot;currency&quot;, &quot;amount&quot;, &quot;language&quot;, &quot;address&quot;, ...) to a url provided by them. What's the best way to get this done?  I've already looked into the php code of some other payment plugins, but I didn't find anything similar to the things that we need.  Thanks in advance for your support!  Best regards, Martin Kasika")*

Hi,

Most of the payment plugins that are available with HikaShop use that exact same technic.
For example, in the plugins/hikashoppayment/paypal.php, in the function onAfterOrderConfirm the $vars variable is loaded with all the values that you want to pass in your form. Then, in plugins/hikashoppayment/paypal_end.php all the values of that variable are added to the form which is displayed on the last step of the checkout.

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

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

Less More

- Posts: 33
- Thank you received: 0
-
-

15 years 1 month ago [\#26644](#26644) by [mkasika](/forum/user/3820-mkasika "View mkasika's Profile")  Replied by *[mkasika](/forum/user/3820-mkasika "View mkasika's Profile")* on topic *[Re: Payment Plugin for ogone.com](/forum/4-how-to/26244-payment-plugin-for-ogone-com#26644 "Hi,  I'm trying to do a payment plugin for ogone.com. In the last step of the webshop we need to submit a form with some hidden form fields (among others things like &quot;currency&quot;, &quot;amount&quot;, &quot;language&quot;, &quot;address&quot;, ...) to a url provided by them. What's the best way to get this done?  I've already looked into the php code of some other payment plugins, but I didn't find anything similar to the things that we need.  Thanks in advance for your support!  Best regards, Martin Kasika")*

Hi nicolas,

thanks for that tip! I took the paypal plugin as a template and tried to change the relevant code lines to make it work with ogone.com

I changed the configuration file, which is now working perfectly well.

In the ogone.php / onAfterOrderConfirm method I replaced the section where it compiles the "vars" (key-value-pairs to be sent to paypal) with the variables that ogone.com is expecting. Unfortunately if I try it out and use the new plugin to pay for an order it just shows a blank page as step-5. It doesn't redirect me to the URL I specified in the configuration.

As I'm not used to code in php, I have no idea what's wrong. I would really appreciate it, if you could help me out here and attached my files to this post. Thanks in advance!

Best regards,
Martin

####  *This attachment is hidden for guests.
Please log in or register to see it.*

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

Less More

- Posts: 86578
- Thank you received: 14321
-
-

15 years 1 month ago [\#26690](#26690) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Payment Plugin for ogone.com](/forum/4-how-to/26244-payment-plugin-for-ogone-com#26690 "Hi,  I'm trying to do a payment plugin for ogone.com. In the last step of the webshop we need to submit a form with some hidden form fields (among others things like &quot;currency&quot;, &quot;amount&quot;, &quot;language&quot;, &quot;address&quot;, ...) to a url provided by them. What's the best way to get this done?  I've already looked into the php code of some other payment plugins, but I didn't find anything similar to the things that we need.  Thanks in advance for your support!  Best regards, Martin Kasika")*

Hi,

In the function onAfterOrderConfirm, the variable
$pspid

should be
$method-&gt;payment_params-&gt;pspid

and
"CN"=&gt; @$order-&gt;cart-&gt;$address_type-&gt;address_firstname." ".@$order-&gt;cart-&gt;$address_type-&gt;address_lastname,

should be:
"CN"=&gt; @$order-&gt;cart-&gt;billing_address-&gt;address_firstname." ".@$order-&gt;cart-&gt;billing_address-&gt;address_lastname,

That fixes the blank page on my end.
Note that you should activate the errors display of php in your php.ini when developing in order to see such errors.

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

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

Less More

- Posts: 33
- Thank you received: 0
-
-

15 years 1 month ago [\#26707](#26707) by [mkasika](/forum/user/3820-mkasika "View mkasika's Profile")  Replied by *[mkasika](/forum/user/3820-mkasika "View mkasika's Profile")* on topic *[Re: Payment Plugin for ogone.com](/forum/4-how-to/26244-payment-plugin-for-ogone-com#26707 "Hi,  I'm trying to do a payment plugin for ogone.com. In the last step of the webshop we need to submit a form with some hidden form fields (among others things like &quot;currency&quot;, &quot;amount&quot;, &quot;language&quot;, &quot;address&quot;, ...) to a url provided by them. What's the best way to get this done?  I've already looked into the php code of some other payment plugins, but I didn't find anything similar to the things that we need.  Thanks in advance for your support!  Best regards, Martin Kasika")*

Hi,

thank you for the answer, works perfectly. The plugin now redirects perfectly to the payment service provider. We now have to finish the progress, but we are looking forward to be done end of this week.

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

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

Less More

- Posts: 33
- Thank you received: 0
-
-

15 years 1 month ago [\#26717](#26717) by [mkasika](/forum/user/3820-mkasika "View mkasika's Profile")  Replied by *[mkasika](/forum/user/3820-mkasika "View mkasika's Profile")* on topic *[Re: Payment Plugin for ogone.com](/forum/4-how-to/26244-payment-plugin-for-ogone-com#26717 "Hi,  I'm trying to do a payment plugin for ogone.com. In the last step of the webshop we need to submit a form with some hidden form fields (among others things like &quot;currency&quot;, &quot;amount&quot;, &quot;language&quot;, &quot;address&quot;, ...) to a url provided by them. What's the best way to get this done?  I've already looked into the php code of some other payment plugins, but I didn't find anything similar to the things that we need.  Thanks in advance for your support!  Best regards, Martin Kasika")*

Hi nicolas,

sorry to bother you again, but I have another question: Where can I find the callback URL for the payment provider?

They offer to send a POST request to our system so that we can update the order with the correct status. I think I did the php correctly and wanted to test it out, but I have no idea what url I need to set in my ogone.com account.

Best regards,
Martin

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

Less More

- Posts: 86578
- Thank you received: 14321
-
-

15 years 1 month ago [\#26720](#26720) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Payment Plugin for ogone.com](/forum/4-how-to/26244-payment-plugin-for-ogone-com#26720 "Hi,  I'm trying to do a payment plugin for ogone.com. In the last step of the webshop we need to submit a form with some hidden form fields (among others things like &quot;currency&quot;, &quot;amount&quot;, &quot;language&quot;, &quot;address&quot;, ...) to a url provided by them. What's the best way to get this done?  I've already looked into the php code of some other payment plugins, but I didn't find anything similar to the things that we need.  Thanks in advance for your support!  Best regards, Martin Kasika")*

It's the URL [ www.yourwebsite.com/index.php?option=com...pl=component&amp;lang=en](http://www.yourwebsite.com/index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=ogone&tmpl=component&lang=en)

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

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