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

#   VirtualMerchant payment plugin debug for "An error occured"

##

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

Less More

- Posts: 4
- Thank you received: 0
-
-

5 years 2 months ago -  5 years 2 months ago [\#335606](#335606) by [HickHackerz](/forum/user/62197-hickhackerz "View HickHackerz's Profile")  *[VirtualMerchant payment plugin debug for "An error occured"](/forum/29-payment-methods/903178-virtualmerchant-payment-plugin-debug-for-an-error-occured#335606 "-- url of the page with the problem -- :   simcoecurlingclub.ca/online-proshop/checkout  -- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.10.1 -- PHP version -- : 7.4.11 -- Browser(s) name and version -- : Chrome 93.0.4577.63 -- Error-message(debug-mod must be tuned on) -- : An error occurred.  Using the HikaShop VirtualMerchant payment plugin. The Merchant ID, User ID and pin were copied and pasted, check for spaces before and after.  Site already has a custom payment using this merchant ID, with user ID ad pin. Also has an event registration that has a virtualmerchant payment plugin with this exact same info set for Live and it has been tested and working.  I have access to Converge to see any transactions, or access the accounts with pin and so far no transaction attempts.  Turned debug on joomla, system debug plugin so can see the debug console as well. Debug turned on in the VirtualMerchant payment plugin settings. Nothing is displayed other than once the credit card info is entered the info is accepted and then after processing the &quot;An error occured&quot; is at the top of the checkout.")* was created by *[HickHackerz](/forum/user/62197-hickhackerz "View HickHackerz's Profile")*

-- url of the page with the problem -- : [ simcoecurlingclub.ca/online-proshop/checkout](https://simcoecurlingclub.ca/online-proshop/checkout)
-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.10.1
-- PHP version -- : 7.4.11
-- Browser(s) name and version -- : Chrome 93.0.4577.63
-- Error-message(debug-mod must be tuned on) -- : An error occurred.

Using the HikaShop VirtualMerchant payment plugin. The Merchant ID, User ID and pin were copied and pasted, check for spaces before and after.

Site already has a custom payment using this merchant ID, with user ID ad pin. Also has an event registration that has a virtualmerchant payment plugin with this exact same info set for Live and it has been tested and working.

I have access to Converge to see any transactions, or access the accounts with pin and so far no transaction attempts.

Turned debug on joomla, system debug plugin so can see the debug console as well. Debug turned on in the VirtualMerchant payment plugin settings. Nothing is displayed other than once the credit card info is entered the info is accepted and then after processing the "An error occured" is at the top of the checkout.

- [ ![Payment.png](/forum/attachment/53529) ](/forum/attachment/53529 "Payment.png") [ ](/forum/attachment/53529?download=1 "Payment.png")
- [ ![paymenterror.png](/forum/attachment/53531) ](/forum/attachment/53531 "paymenterror.png") [ ](/forum/attachment/53531?download=1 "paymenterror.png")

Last edit: 5 years 2 months ago by [HickHackerz](/forum/user/62197-hickhackerz "View HickHackerz's Profile").

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

5 years 2 months ago [\#335616](#335616) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[VirtualMerchant payment plugin debug for "An error occured"](/forum/29-payment-methods/903178-virtualmerchant-payment-plugin-debug-for-an-error-occured#335616 "-- url of the page with the problem -- :   simcoecurlingclub.ca/online-proshop/checkout  -- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.10.1 -- PHP version -- : 7.4.11 -- Browser(s) name and version -- : Chrome 93.0.4577.63 -- Error-message(debug-mod must be tuned on) -- : An error occurred.  Using the HikaShop VirtualMerchant payment plugin. The Merchant ID, User ID and pin were copied and pasted, check for spaces before and after.  Site already has a custom payment using this merchant ID, with user ID ad pin. Also has an event registration that has a virtualmerchant payment plugin with this exact same info set for Live and it has been tested and working.  I have access to Converge to see any transactions, or access the accounts with pin and so far no transaction attempts.  Turned debug on joomla, system debug plugin so can see the debug console as well. Debug turned on in the VirtualMerchant payment plugin settings. Nothing is displayed other than once the credit card info is entered the info is accepted and then after processing the &quot;An error occured&quot; is at the top of the checkout.")*

Hi,

This error message indicates that the payment server returned an invalid answer when the payment plugin contacted it.
This could happen if the payment server is not available, or outgoing connections are blocked by the hosting, or any other kind of connection issue between the website and the payment server.
Please try again after activating the "debug" setting of the payment method.
You should see debug information on the communication between the payment plugin and the payment server with what the server returned. That will help us better understand what's going on.

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

5 years 2 months ago [\#335618](#335618) by [HickHackerz](/forum/user/62197-hickhackerz "View HickHackerz's Profile")  Replied by *[HickHackerz](/forum/user/62197-hickhackerz "View HickHackerz's Profile")* on topic *[VirtualMerchant payment plugin debug for "An error occured"](/forum/29-payment-methods/903178-virtualmerchant-payment-plugin-debug-for-an-error-occured#335618 "-- url of the page with the problem -- :   simcoecurlingclub.ca/online-proshop/checkout  -- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.10.1 -- PHP version -- : 7.4.11 -- Browser(s) name and version -- : Chrome 93.0.4577.63 -- Error-message(debug-mod must be tuned on) -- : An error occurred.  Using the HikaShop VirtualMerchant payment plugin. The Merchant ID, User ID and pin were copied and pasted, check for spaces before and after.  Site already has a custom payment using this merchant ID, with user ID ad pin. Also has an event registration that has a virtualmerchant payment plugin with this exact same info set for Live and it has been tested and working.  I have access to Converge to see any transactions, or access the accounts with pin and so far no transaction attempts.  Turned debug on joomla, system debug plugin so can see the debug console as well. Debug turned on in the VirtualMerchant payment plugin settings. Nothing is displayed other than once the credit card info is entered the info is accepted and then after processing the &quot;An error occured&quot; is at the top of the checkout.")*

I have tried with the "debug" setting of the payment methold. Toggled on or off makes no difference.
As for connections, the same site has VirtualMerchant processing 2 other payment plugins, for membership and one for event registration. They use the same merchant ID, username and pin and have been tested working.

And any debug settings show no communcation information, just the friendly error. Debug console in Joomla shows nothing of interest either.

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

5 years 2 months ago -  5 years 2 months ago [\#335623](#335623) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[VirtualMerchant payment plugin debug for "An error occured"](/forum/29-payment-methods/903178-virtualmerchant-payment-plugin-debug-for-an-error-occured#335623 "-- url of the page with the problem -- :   simcoecurlingclub.ca/online-proshop/checkout  -- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.10.1 -- PHP version -- : 7.4.11 -- Browser(s) name and version -- : Chrome 93.0.4577.63 -- Error-message(debug-mod must be tuned on) -- : An error occurred.  Using the HikaShop VirtualMerchant payment plugin. The Merchant ID, User ID and pin were copied and pasted, check for spaces before and after.  Site already has a custom payment using this merchant ID, with user ID ad pin. Also has an event registration that has a virtualmerchant payment plugin with this exact same info set for Live and it has been tested and working.  I have access to Converge to see any transactions, or access the accounts with pin and so far no transaction attempts.  Turned debug on joomla, system debug plugin so can see the debug console as well. Debug turned on in the VirtualMerchant payment plugin settings. Nothing is displayed other than once the credit card info is entered the info is accepted and then after processing the &quot;An error occured&quot; is at the top of the checkout.")*

Hello,

Maybe there are a misunderstood, if you have already done so then sorry for asking this question but have you look the **payment log** ?
**Note :** In order to learn more about the payment log file look of this **[ documentation](https://www.hikashop.com/support/2-uncategorised/295-go-to-the-payment-log.html)**.
As a precision, you **have to** process a test order to fill information and clues about your website servers and payment platform servers in the log file.

Hope this will help us to progress on your subject.
Regards

Last edit: 5 years 2 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

5 years 2 months ago [\#335636](#335636) by [HickHackerz](/forum/user/62197-hickhackerz "View HickHackerz's Profile")  Replied by *[HickHackerz](/forum/user/62197-hickhackerz "View HickHackerz's Profile")* on topic *[VirtualMerchant payment plugin debug for "An error occured"](/forum/29-payment-methods/903178-virtualmerchant-payment-plugin-debug-for-an-error-occured#335636 "-- url of the page with the problem -- :   simcoecurlingclub.ca/online-proshop/checkout  -- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.10.1 -- PHP version -- : 7.4.11 -- Browser(s) name and version -- : Chrome 93.0.4577.63 -- Error-message(debug-mod must be tuned on) -- : An error occurred.  Using the HikaShop VirtualMerchant payment plugin. The Merchant ID, User ID and pin were copied and pasted, check for spaces before and after.  Site already has a custom payment using this merchant ID, with user ID ad pin. Also has an event registration that has a virtualmerchant payment plugin with this exact same info set for Live and it has been tested and working.  I have access to Converge to see any transactions, or access the accounts with pin and so far no transaction attempts.  Turned debug on joomla, system debug plugin so can see the debug console as well. Debug turned on in the VirtualMerchant payment plugin settings. Nothing is displayed other than once the credit card info is entered the info is accepted and then after processing the &quot;An error occured&quot; is at the top of the checkout.")*

Thanks for that info! That is what I was looking for is a log to help.

Unfortunately the log is not populated.

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

5 years 2 months ago [\#335637](#335637) by [HickHackerz](/forum/user/62197-hickhackerz "View HickHackerz's Profile")  Replied by *[HickHackerz](/forum/user/62197-hickhackerz "View HickHackerz's Profile")* on topic *[VirtualMerchant payment plugin debug for "An error occured"](/forum/29-payment-methods/903178-virtualmerchant-payment-plugin-debug-for-an-error-occured#335637 "-- url of the page with the problem -- :   simcoecurlingclub.ca/online-proshop/checkout  -- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.10.1 -- PHP version -- : 7.4.11 -- Browser(s) name and version -- : Chrome 93.0.4577.63 -- Error-message(debug-mod must be tuned on) -- : An error occurred.  Using the HikaShop VirtualMerchant payment plugin. The Merchant ID, User ID and pin were copied and pasted, check for spaces before and after.  Site already has a custom payment using this merchant ID, with user ID ad pin. Also has an event registration that has a virtualmerchant payment plugin with this exact same info set for Live and it has been tested and working.  I have access to Converge to see any transactions, or access the accounts with pin and so far no transaction attempts.  Turned debug on joomla, system debug plugin so can see the debug console as well. Debug turned on in the VirtualMerchant payment plugin settings. Nothing is displayed other than once the credit card info is entered the info is accepted and then after processing the &quot;An error occured&quot; is at the top of the checkout.")*

UPDATE

I happened to read more with this virtualmerchant plugin and the debug doesn't really show much. I found out that I needed to exit out of the processing to see what was being received.

> Don't you have other debug message on the page since you have the debug option turned on ?
> Normally, it should display more things.
> If not, change the line:
> echo print\_r($ret, true)."\\n\\n\\n";
> to:
> echo print\_r($ret, true)."\\n\\n\\n";exit;
>
> in plugins/hikashoppayment/virtualmerchant/virtualmerchant.php and that will display the return data from the payment gateway on a blank page and that should include the error message epxlaining what's wrong.

This worked great! I found out right away that it was failing on address submitted. I did not realize that hikashop even though the login is from CB would not pull anything. I just assume the point of login was to share profile data and not just the authentication.

Once I added the address option to checkout, I could see it works. Flipside I could remove the requirement for address from the merchant, but having that billing info might be good and it effects the other plugins that do submit the address.

The test came back valid so I will process a payment tomorrow and then can have a working shop! Appreciate the replies as they helped keep me researching the problem

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

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