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

#   Implement new PSP

##

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

Less More

- Posts: 137
- Thank you received: 2
-
-

14 years 10 months ago [\#34308](#34308) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  *[Implement new PSP](/forum/4-how-to/34308-implement-new-psp#34308 "Hi!  As there is no plug-in for our favourite PSP (  www.mpay24.com ) we have to implement a way to use our PSP. Is there a tutorial or how-to how to do this? We only have to pass the price and the order number to our PSP. The payment itself will be done on the site of mpay  Best regards")* was created by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")*

Hi!

As there is no plug-in for our favourite PSP ([ www.mpay24.com](http://www.mpay24.com)) we have to implement a way to use our PSP. Is there a tutorial or how-to how to do this? We only have to pass the price and the order number to our PSP. The payment itself will be done on the site of mpay

Best regards

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

14 years 10 months ago [\#34324](#34324) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Implement new PSP](/forum/4-how-to/34308-implement-new-psp#34324 "Hi!  As there is no plug-in for our favourite PSP (  www.mpay24.com ) we have to implement a way to use our PSP. Is there a tutorial or how-to how to do this? We only have to pass the price and the order number to our PSP. The payment itself will be done on the site of mpay  Best regards")*

Hi,

We have a developer documentation here for that: [ www.hikashop.com/en/support/documentatio...r-documentation.html](http://www.hikashop.com/en/support/documentation/62-hikashop-developer-documentation.html)
Also, you can take the other payment plugins as example for yours.

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

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

Less More

- Posts: 137
- Thank you received: 2
-
-

14 years 10 months ago [\#35143](#35143) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Implement new PSP](/forum/4-how-to/34308-implement-new-psp#35143 "Hi!  As there is no plug-in for our favourite PSP (  www.mpay24.com ) we have to implement a way to use our PSP. Is there a tutorial or how-to how to do this? We only have to pass the price and the order number to our PSP. The payment itself will be done on the site of mpay  Best regards")*

Hi!

I just wanted to test the Paypal Plugin and after clicking on "Next" I receive the following error message:
Code:

Error loading module Table 'm' was not locked with LOCK TABLES SQL=SELECT m.id, m.title, m.module, m.position, m.content, m.showtitle, m.params, mm.menuid FROM jos_modules AS m LEFT JOIN jos_modules_menu AS mm ON mm.moduleid = m.id LEFT JOIN jos_extensions AS e ON e.element = m.module AND e.client_id = m.client_id WHERE m.published = 1 AND e.enabled = 1 AND (m.publish_up = '0000-00-00 00:00:00' OR m.publish_up &lt;= '2012-01-11 08:06:24') AND (m.publish_down = '0000-00-00 00:00:00' OR m.publish_down &gt;= '2012-01-11 08:06:24') AND m.access IN (1,1,2,3) AND m.client_id = 0 AND (mm.menuid = 119 OR mm.menuid &lt;= 0) ORDER BY m.position, m.ordering

Best regards

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

14 years 10 months ago [\#35208](#35208) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Implement new PSP](/forum/4-how-to/34308-implement-new-psp#35208 "Hi!  As there is no plug-in for our favourite PSP (  www.mpay24.com ) we have to implement a way to use our PSP. Is there a tutorial or how-to how to do this? We only have to pass the price and the order number to our PSP. The payment itself will be done on the site of mpay  Best regards")*

That's an error in joomla not in HikaShop.
If you turn off the debug mode of the configuration of Joomla you won't have the problem anymore.

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

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

Less More

- Posts: 137
- Thank you received: 2
-
-

14 years 10 months ago [\#35568](#35568) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Implement new PSP](/forum/4-how-to/34308-implement-new-psp#35568 "Hi!  As there is no plug-in for our favourite PSP (  www.mpay24.com ) we have to implement a way to use our PSP. Is there a tutorial or how-to how to do this? We only have to pass the price and the order number to our PSP. The payment itself will be done on the site of mpay  Best regards")*

The error only appears when the debug mode is off. When I switch on the debug mode, the complete site crashes when I click on "Next".

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

14 years 10 months ago [\#35569](#35569) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Implement new PSP](/forum/4-how-to/34308-implement-new-psp#35569 "Hi!  As there is no plug-in for our favourite PSP (  www.mpay24.com ) we have to implement a way to use our PSP. Is there a tutorial or how-to how to do this? We only have to pass the price and the order number to our PSP. The payment itself will be done on the site of mpay  Best regards")*

Then could you also turn on the error reporting option in the configuration of joomla and try again ?
Do you get an error when you click next then ?

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

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

Less More

- Posts: 137
- Thank you received: 2
-
-

14 years 10 months ago [\#35583](#35583) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Implement new PSP](/forum/4-how-to/34308-implement-new-psp#35583 "Hi!  As there is no plug-in for our favourite PSP (  www.mpay24.com ) we have to implement a way to use our PSP. Is there a tutorial or how-to how to do this? We only have to pass the price and the order number to our PSP. The payment itself will be done on the site of mpay  Best regards")*

In addition these errors appear:
Code:

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /mnt/data/www/libraries/joomla/database/database/mysqli.php on line 305 Warning: Invalid argument supplied for foreach() in /mnt/data/www/administrator/components/com_hikashop/classes/field.php on line 445 Notice: Trying to get property of non-object in /mnt/data/www/components/com_hikashop/views/checkout/view.html.php on line 415 Notice: Trying to get property of non-object in /mnt/data/www/components/com_hikashop/views/checkout/view.html.php on line 415 Warning: Invalid argument supplied for foreach() in /mnt/data/www/administrator/components/com_hikashop/classes/field.php on line 445 Notice: Trying to get property of non-object in /mnt/data/www/components/com_hikashop/views/checkout/tmpl/payment.php on line 12 Notice: Trying to get property of non-object in /mnt/data/www/components/com_hikashop/views/checkout/tmpl/payment.php on line 12

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

14 years 10 months ago [\#35603](#35603) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Implement new PSP](/forum/4-how-to/34308-implement-new-psp#35603 "Hi!  As there is no plug-in for our favourite PSP (  www.mpay24.com ) we have to implement a way to use our PSP. Is there a tutorial or how-to how to do this? We only have to pass the price and the order number to our PSP. The payment itself will be done on the site of mpay  Best regards")*

Could you change your database handler from MySQLi to MySQL in the configuration of joomla and try again ?

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

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

Less More

- Posts: 137
- Thank you received: 2
-
-

14 years 10 months ago [\#35738](#35738) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Implement new PSP](/forum/4-how-to/34308-implement-new-psp#35738 "Hi!  As there is no plug-in for our favourite PSP (  www.mpay24.com ) we have to implement a way to use our PSP. Is there a tutorial or how-to how to do this? We only have to pass the price and the order number to our PSP. The payment itself will be done on the site of mpay  Best regards")*

This didn't change anything

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

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

Less More

- Posts: 137
- Thank you received: 2
-
-

14 years 10 months ago [\#35753](#35753) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Implement new PSP](/forum/4-how-to/34308-implement-new-psp#35753 "Hi!  As there is no plug-in for our favourite PSP (  www.mpay24.com ) we have to implement a way to use our PSP. Is there a tutorial or how-to how to do this? We only have to pass the price and the order number to our PSP. The payment itself will be done on the site of mpay  Best regards")*

The problem was the plugin which changed the order number and used a LOCK for the table.

I'm trying to implement the payment plugin with PayPal as an example but that's not very easy, as there are hardly any comments. For example I don't really see, where the forwarding in the "onAfterOrderConfirm" happens.

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

14 years 10 months ago [\#35823](#35823) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Implement new PSP](/forum/4-how-to/34308-implement-new-psp#35823 "Hi!  As there is no plug-in for our favourite PSP (  www.mpay24.com ) we have to implement a way to use our PSP. Is there a tutorial or how-to how to do this? We only have to pass the price and the order number to our PSP. The payment itself will be done on the site of mpay  Best regards")*

The comments are removed automatically from the code to reduce the size of the packages.

The onAfterOrderConfirm happens at the end of the after_confirm function of the checkout controller. So the order was just created and the payment plugin is directly triggered. when the onAfterOrderConfirm function finishes, the system displays the content displayed by the plugin in the end step. In the PyaPal plugin, the paypal_end file content is displayed by the onAfterOrderConfirm function in that end step and that's what is redirecting to the paypal gateway.

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

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

Less More

- Posts: 137
- Thank you received: 2
-
-

14 years 10 months ago [\#36512](#36512) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Implement new PSP](/forum/4-how-to/34308-implement-new-psp#36512 "Hi!  As there is no plug-in for our favourite PSP (  www.mpay24.com ) we have to implement a way to use our PSP. Is there a tutorial or how-to how to do this? We only have to pass the price and the order number to our PSP. The payment itself will be done on the site of mpay  Best regards")*

Then it would be very helpful to offer a version with in-code comments!

I don't see where the redirect to PayPal is in the onAfterOrderConfirm. I only see a redirect in the onPaymentNotification, that's what I don't understand.

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

14 years 10 months ago [\#36575](#36575) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Implement new PSP](/forum/4-how-to/34308-implement-new-psp#36575 "Hi!  As there is no plug-in for our favourite PSP (  www.mpay24.com ) we have to implement a way to use our PSP. Is there a tutorial or how-to how to do this? We only have to pass the price and the order number to our PSP. The payment itself will be done on the site of mpay  Best regards")*

As I said, the PayPal onAfterOrderConfirm function uses the paypal_end.php file to display the form of the end step. Thus the redirect you're looking for is in that paypal_end.php file.
You'll see, there is an auto submit of the form with one line of javascript.

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

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