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

#   Moneris Checkout (MCO) integration

##

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

Less More

- Posts: 11
- Thank you received: 1
-
-

4 years 4 months ago [\#342353](#342353) by [wschredl](/forum/user/27917-wschredl "View wschredl's Profile")  *[Moneris Checkout (MCO) integration](/forum/29-payment-methods/904550-moneris-checkout-mco-integration#342353 "-- HikaShop version -- : HikaShop Business 2.6.0 -- Joomla version -- : 3.4 -- PHP version -- : 5.6  Hi Team, As you are aware Moneris is ending the Hosted pay page (HPP), so we need to link the hikashop to Moneris Checkout (MCO). I wanted to check if Hikashop(new version) has prebuilt integration with Hosted solution &quot;Moneris Checkout (MCO) ? If yes then please guide me. I am sure many of your customer may have asked this question before.  If no then also kindly guide if any of current plugin of hikashop (2.6.0) can be used (copied) and altered to work with MCO ? I mean to say if there is already existing plugin with similar functionality as MCO then I can use the same instead of writing the code from scratch.  Your inputs are highly appreciated.")* was created by *[wschredl](/forum/user/27917-wschredl "View wschredl's Profile")*

-- HikaShop version -- : HikaShop Business 2.6.0
-- Joomla version -- : 3.4
-- PHP version -- : 5.6

Hi Team, As you are aware Moneris is ending the Hosted pay page (HPP), so we need to link the hikashop to Moneris Checkout (MCO). I wanted to check if Hikashop(new version) has prebuilt integration with Hosted solution "Moneris Checkout (MCO) ? If yes then please guide me. I am sure many of your customer may have asked this question before.

If no then also kindly guide if any of current plugin of hikashop (2.6.0) can be used (copied) and altered to work with MCO ? I mean to say if there is already existing plugin with similar functionality as MCO then I can use the same instead of writing the code from scratch.

Your inputs are highly appreciated.

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

Less More

- Posts: 86315
- Thank you received: 14274
-
-

4 years 4 months ago [\#342368](#342368) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Moneris Checkout (MCO) integration](/forum/29-payment-methods/904550-moneris-checkout-mco-integration#342368 "-- HikaShop version -- : HikaShop Business 2.6.0 -- Joomla version -- : 3.4 -- PHP version -- : 5.6  Hi Team, As you are aware Moneris is ending the Hosted pay page (HPP), so we need to link the hikashop to Moneris Checkout (MCO). I wanted to check if Hikashop(new version) has prebuilt integration with Hosted solution &quot;Moneris Checkout (MCO) ? If yes then please guide me. I am sure many of your customer may have asked this question before.  If no then also kindly guide if any of current plugin of hikashop (2.6.0) can be used (copied) and altered to work with MCO ? I mean to say if there is already existing plugin with similar functionality as MCO then I can use the same instead of writing the code from scratch.  Your inputs are highly appreciated.")*

Hi,

There is no ready-made solution avaialble for Moneris Checkout.
If you want to develop a plugin for it, looking at their developer documentation, I would recommend basing yourself on the plugins/hikashoppayment/epay/ plugin.
I'm not sure if it was already available in the 2.6.0 version but I suppose it is the case.
It has a similar workflow where the javascript from the payment gateway is loaded in the epay_end.php view file with javascript code to interact with the payment gateway.
There are of course differences. With MCO, you need to first do a preload request in onAfterOrderConfirm to initiate the transaction and store a ticket id in the order in the database.
Then, you can use that ticket id with a "receipt request" in the onPaymentNotification callback to make sure the payment is valid before changing the status of the order.

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

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

Less More

- Posts: 11
- Thank you received: 1
-
-

4 years 4 months ago [\#342400](#342400) by [wschredl](/forum/user/27917-wschredl "View wschredl's Profile")  Replied by *[wschredl](/forum/user/27917-wschredl "View wschredl's Profile")* on topic *[Moneris Checkout (MCO) integration](/forum/29-payment-methods/904550-moneris-checkout-mco-integration#342400 "-- HikaShop version -- : HikaShop Business 2.6.0 -- Joomla version -- : 3.4 -- PHP version -- : 5.6  Hi Team, As you are aware Moneris is ending the Hosted pay page (HPP), so we need to link the hikashop to Moneris Checkout (MCO). I wanted to check if Hikashop(new version) has prebuilt integration with Hosted solution &quot;Moneris Checkout (MCO) ? If yes then please guide me. I am sure many of your customer may have asked this question before.  If no then also kindly guide if any of current plugin of hikashop (2.6.0) can be used (copied) and altered to work with MCO ? I mean to say if there is already existing plugin with similar functionality as MCO then I can use the same instead of writing the code from scratch.  Your inputs are highly appreciated.")*

Thanks Nicolas. I will check the epay plugin. If it is not there then I will follow the steps shared by you to implement the same. I also wanted to know if Moneris Checkout is part of latest version of Hikashop Business ?

MCO documentation says that I need to provide the callback handler in the javascript. I thought the preload request will be fired from js but from your comment it seems I need to initiate the same via PHP under onAfterOrderConfirm trigger. Get the ticket id and save the same in orders table. When the Moneris payment is done, then javascript will get the notification via handler "order or payment completed" and we need to call our server function onPaymentNotification (which will then fire the "receipt request" to moneris with ticket id stored for the order ). If success then mark the order as complete or else mark the order status to something else based on the error detail. Is my understanding correct ?

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

Less More

- Posts: 86315
- Thank you received: 14274
-
-

4 years 4 months ago [\#342406](#342406) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Moneris Checkout (MCO) integration](/forum/29-payment-methods/904550-moneris-checkout-mco-integration#342406 "-- HikaShop version -- : HikaShop Business 2.6.0 -- Joomla version -- : 3.4 -- PHP version -- : 5.6  Hi Team, As you are aware Moneris is ending the Hosted pay page (HPP), so we need to link the hikashop to Moneris Checkout (MCO). I wanted to check if Hikashop(new version) has prebuilt integration with Hosted solution &quot;Moneris Checkout (MCO) ? If yes then please guide me. I am sure many of your customer may have asked this question before.  If no then also kindly guide if any of current plugin of hikashop (2.6.0) can be used (copied) and altered to work with MCO ? I mean to say if there is already existing plugin with similar functionality as MCO then I can use the same instead of writing the code from scratch.  Your inputs are highly appreciated.")*

Hi,

Unfortunately, Moneris Checkout has not been developed on our end, even in the latest version of HikaShop Business.

Your understanding is not far off the mark.
Here is how you need to do it from what I understand of the Moneris Checkout documentation:
- in onAfterOrderConfirm you first need to do a preload request (in PHP with cURL)
- this will give you back a ticket id
- you need to save that ticket id in the order
- you also need to pass that ticket id in $this-&gt;vars so that in the Javascript code you'll add in the end file, you'll use that ticket id to display the Moneris Checkout. At that time, you'll also be able to set callbacks in javascript.
- using the payment complete callback, you can redirect the user to the payment notification URL of your plugin which will call onPaymentNotification.
- in onPaymentNotification you need to do a receipt request (in PHP with cURL) to check that the payment has really been completed and then you can change the status of the order to confirmed and redirect again the user to the thank you page.

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

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

Less More

- Posts: 11
- Thank you received: 1
-
-

4 years 3 months ago [\#343276](#343276) by [wschredl](/forum/user/27917-wschredl "View wschredl's Profile")  Replied by *[wschredl](/forum/user/27917-wschredl "View wschredl's Profile")* on topic *[Moneris Checkout (MCO) integration](/forum/29-payment-methods/904550-moneris-checkout-mco-integration#343276 "-- HikaShop version -- : HikaShop Business 2.6.0 -- Joomla version -- : 3.4 -- PHP version -- : 5.6  Hi Team, As you are aware Moneris is ending the Hosted pay page (HPP), so we need to link the hikashop to Moneris Checkout (MCO). I wanted to check if Hikashop(new version) has prebuilt integration with Hosted solution &quot;Moneris Checkout (MCO) ? If yes then please guide me. I am sure many of your customer may have asked this question before.  If no then also kindly guide if any of current plugin of hikashop (2.6.0) can be used (copied) and altered to work with MCO ? I mean to say if there is already existing plugin with similar functionality as MCO then I can use the same instead of writing the code from scratch.  Your inputs are highly appreciated.")*

Thanks Nicolas as with your inputs I am able to test the Moneris Checkout by creating a plugin MCO. I can save ticket, and then validate the same on payment notification. I have one more query. We have 2 moneris store(one for USD and another for CAD). I have created 2 versions of plugin (MCO) but I want to understand how hikashop will pick the USD version of plugin when order currency is USD and similarly CAD version of plugin when order currency is CAD ? Is this automatically done and if yes, then what conditions/fields the plugin must have to establish the auto selection of right payment store ?

I was reading an article here but could not figure out much.
[ www.hikashop.com/forum/payment-methods/8...orking.html?start=20](https://www.hikashop.com/forum/payment-methods/863839-moneris-eselect-plugin-not-working.html?start=20)

Thanks,

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

Less More

- Posts: 86315
- Thank you received: 14274
-
-

4 years 3 months ago [\#343279](#343279) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Moneris Checkout (MCO) integration](/forum/29-payment-methods/904550-moneris-checkout-mco-integration#343279 "-- HikaShop version -- : HikaShop Business 2.6.0 -- Joomla version -- : 3.4 -- PHP version -- : 5.6  Hi Team, As you are aware Moneris is ending the Hosted pay page (HPP), so we need to link the hikashop to Moneris Checkout (MCO). I wanted to check if Hikashop(new version) has prebuilt integration with Hosted solution &quot;Moneris Checkout (MCO) ? If yes then please guide me. I am sure many of your customer may have asked this question before.  If no then also kindly guide if any of current plugin of hikashop (2.6.0) can be used (copied) and altered to work with MCO ? I mean to say if there is already existing plugin with similar functionality as MCO then I can use the same instead of writing the code from scratch.  Your inputs are highly appreciated.")*

Hi,

At the beginning of the main class of your Hikashop payment plugin, you can add that attribute:
var $accepted_currencies = array( "EUR", "USD" );

HikaShop will automatically filter out the payment methods for which the $accepted_currencies array is not empty and doesn't contain the current currency.

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

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

[](#top)
