Forums / Addon Payment Modules / Need help with Virtual Merchant module

Need help with Virtual Merchant module

Views: 120,796

Results 141 to 160 of 357
13 Dec 2007, 7:08 PM
#141
jcfra420 avatar

jcfra420

New Zenner

Join Date:
Jun 2007
Posts:
14
Plugin Contributions:
0

Need help with Virtual Merchant module

I just installed the module for a store I am finishing up. I had a slight issue with the type of cURL that is being used, so I contacted the module developer. He was actually kind enough to contact me quickly, and gave plenty of info that allowed me to get it working perfectly.

Just to go over my issue, to help anyone else. I just had to run his php script (it is safe everyone) and it gave me the cURL info I needed. I then wen t to line #54 in the viaklix.php file:

 
 // Figure out which cURL we will be using - rtw819
      $this->VIAKLIX_NONPHP_CURL = ((MODULE_PAYMENT_VIAKLIX_USE_PHP_CURL == 'True') ? 0 : 1); // 1 = NOT using PHP based curl
      $this->MODULE_PAYMENT_VIAKLIX_CURL_BINARY=(MODULE_PAYMENT_VIAKLIX_CURL_BINARY == 'NONE' ? '' : MODULE_PAYMENT_VIAKLIX_CURL_BINARY);

and changed the USE_PHP_CURL == 'TRUE')? 0: 1);

to

USE_PHP_CURL == 'TRUE')? 0:0);

Thanks for the great commenting in the module it helps PHP newbs like myself to make sense of it.

14 Dec 2007, 3:32 AM
#142
rtw819 avatar

rtw819

New Zenner

Join Date:
Feb 2006
Location:
CMH
Posts:
94
Plugin Contributions:
3

Re: Need help with Virtual Merchant module

jcfra420:

I just installed the module for a store I am finishing up. I had a slight issue with the type of cURL that is being used, so I contacted the module developer. He was actually kind enough to contact me quickly, and gave plenty of info that allowed me to get it working perfectly.

Just to go over my issue, to help anyone else. I just had to run his php script (it is safe everyone) and it gave me the cURL info I needed. I then wen t to line #54 in the viaklix.php file:

// Figure out which cURL we will be using - rtw819
$this->VIAKLIX_NONPHP_CURL = ((MODULE_PAYMENT_VIAKLIX_USE_PHP_CURL == 'True') ? 0 : 1); // 1 = NOT using PHP based curl
$this->MODULE_PAYMENT_VIAKLIX_CURL_BINARY=(MODULE_PAYMENT_VIAKLIX_CURL_BINARY == 'NONE' ? '' : MODULE_PAYMENT_VIAKLIX_CURL_BINARY);

>  
> and changed the USE_PHP_CURL == 'TRUE')? 0: 1); 
>  
> to
>  
> USE_PHP_CURL == 'TRUE')? 0:0);
>  
> Thanks for the great commenting in the module it helps PHP newbs like myself to make sense of it.

Hello, and thanks for the kind words!  Always happy to help.  

Just a quick point of clarification - jc's message is in reference to the viaKLIX module, not the VM module.  (Even though they are very similar, they are distinctly different.)  The issue revolves around the selection for whether or not your web host has an available PHP-based cURL installation, and is similar for both modules - even though the code and variables are different.  The module config also gives you the option to choose a binary executable cURL (in case it may be newer, or a different version, or for any other reason of your choosing.)


I have made a few additional minor tweaks to the curl_version.php script and have attached it below for your consumption.  This little script will tell you if and which cURL options your web server has available.  It's slightly more useful than the previous versions.

Here's a quick HOW-TO for setting up cURL for the KLIX and VM modules:

So to break this issue down further, the selection option to A) use PHP with libcurl ("TRUE" option) or B) use a binary executable curl program ("FALSE" option) is a Database Flag which is set in the Admin ViaKLIX configuration section.  You must manually make the proper module configuration selections based on your web server's capabilities.  A code change (as jc described above) is NOT required to fix this. I would recommend using the process below:

1.) Determine WHICH version of cURL your web host has available (see curl_version.php below)  This is an important step which will determine which configuration options you will need to set in the Zen Admin panel.

2a.) In the event PHP CURL was found:
     - Go to your store's Admin page, select Payment Modules, Click to select the viaKLIX/VM module, click the Edit Button, and then Select the "Use PHP Curl?" radio button to indicate TRUE instead of FALSE.  Leave the "cURL Executable Path" set to "NONE".  Then, click the Update button at the bottom of the column, and viola, you are set to use your web host's PHP-based cURL.  The module is set up to use PHP-based curl by default, and warns you if it is not found.  Action will be required if this is the case.

2b.) In the event PHP CURL was NOT found and a binary curl version was found:
     - If PHP cURL is NOT found, you will need to change your viaKLIX/VM Admin configs accordingly, and you will also need to know the LOCATION of the binary executable curl program in this case ( such as /usr/bin/curl )
     - Go to your store's Admin page, select Payment Modules, Click to select the viaKLIX/VM module, click the Edit Button, and then Select the "Use PHP Curl?" radio button to indicate FALSE instead of the default.  Enter the binary executable found under the "cURL Executable Path" fill-in option (originally set to "NONE").  Then click the Update button at the bottom of the column, and viola, you are set to use command-line binary Non-PHP-based cURL.

3.) If NO cURL versions were found, contact your web hosting provider or systems administrator and ask them to install a curl package on your web host.

4.) If your cURL configuration options are selected and entered correctly in the viaKLIX/VM Admin panel, and the module still is not able to communicate with the payment gateway server, it is possible that your web server/host may need to have Proxy Settings configured for outbound web access from the webserver.  Contact your web hosting provider or systems administrator to find out if your webserver needs outbound proxy server settings to access the internet, and what those settings may need to be.


Hope this helps!
20 Dec 2007, 9:19 PM
#143
deepsouthfishing avatar

deepsouthfishing

New Zenner

Join Date:
Dec 2007
Posts:
13
Plugin Contributions:
0

Re: Need help with Virtual Merchant module

Ive been working at this for about 4 hours now. Ive checked, rechecked and then double checked and now my brain is doubled over.
I keep getting this error........

4002 - HTTP Trans Not Allowed

What simplistic thing am I missing here.
Ive double checked curl, passwords, user and virtual user id's phpcurl as well as binary, still the same error.

Going Bald
Bill

21 Dec 2007, 12:59 AM
#144
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: Need help with Virtual Merchant module

DeepSouthFishing:

Ive been working at this for about 4 hours now. Ive checked, rechecked and then double checked and now my brain is doubled over.
I keep getting this error........

4002 - HTTP Trans Not Allowed

> Ive double checked curl, passwords, user and virtual user id's phpcurl as well as binary, still the same error.
> 
> Going Bald
> Bill

Log in to VM, at the top mouse over Terminal, then Advanced, then System Setup.  Click 'Enable HTTP Trans'

Page 37 of their user guide (not the dev guide)
<https://www.myvirtualmerchant.com/VirtualMerchant/download/userGuide.pdf>

Voila!

Samuel Turnmire
co-Founder
geekFoundry

21 Dec 2007, 5:32 AM
#145
rtw819 avatar

rtw819

New Zenner

Join Date:
Feb 2006
Location:
CMH
Posts:
94
Plugin Contributions:
3

Re: Need help with Virtual Merchant module

Hello All!

I just posted a new version (v1.2) of the VM module with a few minor fixes, and some further additional debugging for extreme cases. It should be available soon.

I've updated the documentation and installation instructions included in the Readme.txt file to hopefully eliminate some confusion. This should be useful for everyone. I've also bundled an updated curl_version.php script with this new release for cURL related troubleshooting purposes.

So all in all, just a few minor feature updates, very minor fixes, and the "super" debug mode, nothing that can't wait until you have some down time available.

Happy Holidays!!

Todd

21 Dec 2007, 1:10 PM
#146
deepsouthfishing avatar

deepsouthfishing

New Zenner

Join Date:
Dec 2007
Posts:
13
Plugin Contributions:
0

Re: Need help with Virtual Merchant module

ThePatch.....
Awesome help and many thousand thanks. That was exactly the issue putting the correct referrer in.
Im not sure how I had missed that unless I was just overly frusterated in finding answers.
Thousands of thanks, and if you happen to live in the southeast US give me a shout and I can hook you up with some fishing rodeo tickets or event passes.

Thanks
Bill

21 Dec 2007, 1:52 PM
#147
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: Need help with Virtual Merchant module

DeepSouthFishing:

ThePatch.....
Awesome help and many thousand thanks. That was exactly the issue putting the correct referrer in.
Im not sure how I had missed that unless I was just overly frusterated in finding answers.
Thousands of thanks, and if you happen to live in the southeast US give me a shout and I can hook you up with some fishing rodeo tickets or event passes.

Thanks
Bill

:laugh:

Well I do live in the SE, Knoxville, TN to be exact. You know living hear you can't help but be into \ know about fishing & rodeos . . . but I don't know that I've ever heard of a Fishing Rodeo? However the visions it places in my head are quite funny!

Glad to be of help!

Samuel Turnmire
co-Founder
geekFoundry

24 Dec 2007, 2:50 AM
#148
deepsouthfishing avatar

deepsouthfishing

New Zenner

Join Date:
Dec 2007
Posts:
13
Plugin Contributions:
0

Re: Need help with Virtual Merchant module

Never heard of a Fishing Rodeo..........NOW thats funny. They have been around for decades and decades. Its actually mucho grande bucks along the GulfCoast here.
Ours will have over $30k in cash plus prizes, entertainment, kids rodeo, offshor, nearshore, bank only, and a freshwater tournament along with over a dozen Jackpots.
DeepSouth Fishing Rodeo
be sure to check out the store while at the site and let me know what you think.
Bill

24 Dec 2007, 3:10 AM
#149
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: Need help with Virtual Merchant module

DeepSouthFishing:

Never heard of a Fishing Rodeo..........NOW thats funny. They have been around for decades and decades. Its actually mucho grande bucks along the GulfCoast here.
Ours will have over $30k in cash plus prizes, entertainment, kids rodeo, offshor, nearshore, bank only, and a freshwater tournament along with over a dozen Jackpots.
DeepSouth Fishing Rodeo
be sure to check out the store while at the site and let me know what you think.
Bill

Ahh . . . I've always called those tournaments. I have been awoken many a mornin while camping at Douglass Lake in Sevier County to the tune of some 30-50 boats taking off from the slip.

Samuel Turnmire
co-Founder
geekFoundry

24 Dec 2007, 3:16 AM
#150
deepsouthfishing avatar

deepsouthfishing

New Zenner

Join Date:
Dec 2007
Posts:
13
Plugin Contributions:
0

Re: Need help with Virtual Merchant module

Yea same basis. Fishing Rodeo's have multiple tournaments within the main event.

24 Dec 2007, 6:24 PM
#151
admcompa avatar

admcompa

New Zenner

Join Date:
Mar 2007
Posts:
44
Plugin Contributions:
0

Re: Need help with Virtual Merchant module

4003 - HTTP Referrer Invalid

I keep getting this error. Thanks

24 Dec 2007, 6:30 PM
#152
deepsouthfishing avatar

deepsouthfishing

New Zenner

Join Date:
Dec 2007
Posts:
13
Plugin Contributions:
0

Re: Need help with Virtual Merchant module

Almost identicle problem I had. Here is a reply given by "ThePatch" and it should correct your problem as well.

"Log in to VM, at the top mouse over Terminal, then Advanced, then System Setup. Click 'Enable HTTP Trans'

Page 37 of their user guide (not the dev guide)
https://www.myvirtualmerchant.com/Vi.../userGuide.pdf"

I think a lot of people using this have the same issue popup as Virtual Merchants guides arent layed out to well.
You may need to add in more than one page into the acceptable refferes list. We had to put 3; The main site url, the checkout page url and the return page url.
I would just start with the main site url first though, and then check to see if its working and then only adding one at a time and rechecking.

BillH
DeepSouth Fishing Rodeo,Shirts,Gear & More

24 Dec 2007, 6:33 PM
#153
admcompa avatar

admcompa

New Zenner

Join Date:
Mar 2007
Posts:
44
Plugin Contributions:
0

Re: Need help with Virtual Merchant module

I will try that now. THANKS!!

27 Jan 2008, 2:06 AM
#154
toboldlygo avatar

toboldlygo

New Zenner

Join Date:
May 2007
Posts:
48
Plugin Contributions:
0

Re: Need help with Virtual Merchant module

Hi,
I am trying to get the VM mod working. I keep getting this message:

Credit Card Processing Error: 4003 - HTTP Referrer Invalid

I have enabled HTTP Transaction, HTTP Referrers, and put in my website URL, as well as the checkout_confirmation and checkout_process pages as was suggested here but still get the error. Does anyone have any suggestions as to what I can try?

Thanks

27 Jan 2008, 2:24 AM
#155
toboldlygo avatar

toboldlygo

New Zenner

Join Date:
May 2007
Posts:
48
Plugin Contributions:
0

Re: Need help with Virtual Merchant module

Hi again,
Disregard the previous post. I managed to get it working. I had put the referrer in as:
https://www.mywebsite.com/mystore

I changed this to:
https://www.mywebsite.com

It worked after I did that. I didn't need to add any other referrer URLs. Just one made it work.

28 Jan 2008, 5:45 AM
#156
rtw819 avatar

rtw819

New Zenner

Join Date:
Feb 2006
Location:
CMH
Posts:
94
Plugin Contributions:
3

Re: Need help with Virtual Merchant module

Hi Toboldly,

Glad you figured it out without too much hassle. The VM payment module sends just the base website SSL URL (domain name without cart path) as the referrer, which, as you correctly surmised, should also be in most cases "https://yoursite.com" This should also match the entry you place in your referrer section within the VM config.

I had hoped keeping it simple might have caused less confusion. :) It isn't really explained in the documentation what you need to do here, so I have added those details in the docs for the next release.

Best of luck!

29 Jan 2008, 4:23 AM
#157
toboldlygo avatar

toboldlygo

New Zenner

Join Date:
May 2007
Posts:
48
Plugin Contributions:
0

Re: Need help with Virtual Merchant module

Hi,
Does the VM mod send the billing address, shipping address, and CVV number to the gateway? I set up my Virtual Merchant to check the CVV number and also to do address verification. I also created a business rule that checks whether the billing address postal code equals the shipping address postal code. I just wanted to make sure all the necessary info. was being sent.

Also, if there is an error generated, for example, mismatched CVV number or address, does it send the customer back to the checkout_payment page and display the VM error code with error message in the red alert box? If I make some custom error messages in my Virtual Merchant, is that what will appear in the red alert box on the payment page?

Thanks

2 Feb 2008, 7:55 AM
#158
rtw819 avatar

rtw819

New Zenner

Join Date:
Feb 2006
Location:
CMH
Posts:
94
Plugin Contributions:
3

Re: Need help with Virtual Merchant module

Yes, the module sends both billing and shipping (full address) information through the API to Virtual Merchant, along with the CVV number, invoice number, and customer comments. As much information is available in the Zen database which lines up with fields in the API is sent to the VM gateway.

I'm not sure how the custom error codes are utilized through the API. There is not much explanation of that functionality in the documentation, therefore it is not implemented at this point in time. Also, I'm unsure of how the specific business rules set in the VM config will affect the API interface. Again, not much info there either.

If the payment gateway returns an error code (processing, funds availability, etc.), the user is presented with both a generic error category (ie. User Errors - Declined, Internal Error - Processing Problem, Connectivity issues, etc.) along with the specific error codes/message as provided by the VM payment gateway. Any failures are reported in the "red box" and the customer is returned to the checkout page.

The debug logging is your best source of information for determining what happens with the transactions if there are problems.

My best suggestion, in addition to the logging, is to try a few forced failed transactions for yourself and see some of the responses, and/or check out the API documentation for the various return codes and messages returned by VM.

You can do some testing either in Test or Production mode. If you "test" in Production mode and leave your transactions set to pending, you can remove any transactions you don't want to process.

Hope this helps some.

2 Feb 2008, 9:41 PM
#159
toboldlygo avatar

toboldlygo

New Zenner

Join Date:
May 2007
Posts:
48
Plugin Contributions:
0

Re: Need help with Virtual Merchant module

Hi rtw819,
Thanks for the info. I will do some tests and see what error messages pop up.

Thanks

12 Feb 2008, 3:46 PM
#160
jbfromca avatar

jbfromca

New Zenner

Join Date:
Jun 2006
Posts:
2
Plugin Contributions:
0

Re: Need help with Virtual Merchant module

Question to the group, Nova is trying to sell us "Virtual Merchant software" Is this needed for this module to work? I thought all you need is the Virtual Merchant Account

JB