Page 1 of 3 123 LastLast
Results 1 to 10 of 357

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Location
    oregon
    Posts
    12
    Plugin Contributions
    0

    Default Need help with Virtual Merchant module

    apparently Virtual Merchant is the next genesis of the whole viaklix thing.

    I needed to set up a connection to them, so i took the viaklix module available at http://www.modyourzencart.com/free-o...ayment-modules and attempted to modify it to work with Virtual Merchant.

    The results have not been quite satisfactory, as i can't get it to work :)

    Here's what i have so far: http://www.frozenplanet.com/bestnatu...alMerchant.zip

    I've made changes for the new url and name changes of some of the payment fields. However, i don't seem to be able to get it to work. Nothing is showing up in the Virtual Merchant transaction log, but if i build an html file by hand that sends the query, it works.

    wireshark shows that data is being sent to www.myvirtualmerchant.com on port 443, but i'm not clever enough to decipher what is being sent.

    i'm assuming this has something to do with my lack of curl knowlege, as i can see that the variables are all being assigned properly.

    here's part of the html that sends things properly:

    <form action="https://www.myvirtualmerchant.com/VirtualMerchant/process.do" method="POST">
    <input type="hidden" name="ssl_merchant_id" value="xxxxxx">
    <input type="hidden" name="ssl_user_id" value="xxxxxxxx">
    <input type="hidden" name="ssl_pin" value="xxxxxx">
    <input type="hidden" name="ssl_transaction_type" value="ccsale">
    <input type="hidden" name="ssl_card_number" value="5424000000000015">
    <input type="hidden" name="ssl_exp_date" value="1008">
    <input type="hidden" name="ssl_amount" value="1.55">
    <input type="hidden" name="ssl_show_form" value="false">
    <input type="hidden" name="ssl_cvv2" value="present"> <!--CVV2 Indicator -->
    <input type="hidden" name="ssl_cvv2cvc2" value="123"> <!--CVV2 Data -->


    that works fine.

    here's the curl statement to send the data to the server. all i know about curl i learned today, but i'm not sure that it is sending the data in the proper format. here's what i think is the relevant snippet:

    for ($i = 0; $i <= sizeof($post['key'])-1; $i++) {$string .= $post['key'][$i].'='.$post['value'][$i].'&';}//build post vars



    $string = substr($string, 0, -1); // not needed



    $ch = curl_init();//init curl options

    curl_setopt ($ch, CURLOPT_URL, $this->url);

    curl_setopt ($ch, CURLOPT_FRESH_CONNECT, 1); //no cache connection

    curl_setopt ($ch, CURLOPT_POST, 1); //enable the post of vars

    curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);

    curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);

    curl_setopt ($ch, CURLOPT_TIMEOUT, 8 ); // seconds to wait for timeout

    curl_setopt ($ch, CURLOPT_HEADER, 1);

    curl_setopt ($ch, CURLOPT_POSTFIELDS, $string );//posted vars in fromat key1=value1&key2=value2&

    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); //enable return response

    $content = parse_response(curl_exec($ch));




    anyway, sorry for the novel, but if someone can give me a hand here, i'd be happy to package this up for the next sucker who is stuck dealing with Virtual Merchant.

    thanks,

    d.
    Last edited by urbanx; 29 Aug 2007 at 05:01 AM.

  2. #2
    Join Date
    Sep 2006
    Posts
    281
    Plugin Contributions
    0

    Default Re: Need help with Virtual Merchant module

    I am currently working on this, well for Klix, but once Klix is done I'll also have VM as well
    [FONT="Georgia"]Samuel Turnmire[/FONT]
    [FONT="Century Gothic"]co-Founder[/FONT]
    [FONT="Book Antiqua"]geekFoundry[/FONT]

  3. #3
    Join Date
    Aug 2007
    Location
    oregon
    Posts
    12
    Plugin Contributions
    0

    Default Re: Need help with Virtual Merchant module

    i noticed in the viaklix thread that you were running into some difficulties. now that i've spent way too much time on this, perhaps we can be of assistance to one another?

    d.

  4. #4
    Join Date
    Sep 2006
    Posts
    281
    Plugin Contributions
    0

    Default Re: Need help with Virtual Merchant module

    I found some PHP errors that had to be changed. My problem now is the redirect back to Zen; I'm not at a location where I can post my files thus far.

    What do you know about the leg back to Zen? I can get it to Klix and get an approval; it's just getting it back to the right place.
    [FONT="Georgia"]Samuel Turnmire[/FONT]
    [FONT="Century Gothic"]co-Founder[/FONT]
    [FONT="Book Antiqua"]geekFoundry[/FONT]

  5. #5
    Join Date
    Aug 2007
    Location
    oregon
    Posts
    12
    Plugin Contributions
    0

    Default Re: Need help with Virtual Merchant module

    are you referring to something like this? http://www.zen-cart.com/forum/showpo...2&postcount=35

    or are you wanting info on the klix fields and/or php/curl stuff to make it happen? i haven't gotten that far in mine, so i can only surmise what must be done.

  6. #6
    Join Date
    Sep 2006
    Posts
    281
    Plugin Contributions
    0

    Default Re: Need help with Virtual Merchant module

    Quote Originally Posted by urbanx View Post
    are you referring to something like this? http://www.zen-cart.com/forum/showpo...2&postcount=35

    or are you wanting info on the klix fields and/or php/curl stuff to make it happen? i haven't gotten that far in mine, so i can only surmise what must be done.
    yea that is what i was referring too; let me try that and see what I end up with
    [FONT="Georgia"]Samuel Turnmire[/FONT]
    [FONT="Century Gothic"]co-Founder[/FONT]
    [FONT="Book Antiqua"]geekFoundry[/FONT]

  7. #7
    Join Date
    Sep 2007
    Posts
    2
    Plugin Contributions
    0

    help question Re: Need help with Virtual Merchant module

    I also found these items that needed changing after referencing VirtualMerchant's dev specs.

    ssl_transaction_type should be set to "CCSALE"

    ssl_cvv2 should actually be labelled ssl_cvv2cvc2_indicator

    ssl_ship_to_address should be ssl_ship_to_address1

    the if(MODULE_PAYMENT_VIAKLIX_TESTMODE == 'Test') should set ssl_test_mode to "TRUE" if true, not "TEST"

    That's all I can find, but I still can't get boo back from VM. I set up several queries to try to return the results I'm getting from them, and not one singe GET or POST comes back from them that I can see.

    I'll try working with the VM tech support folks to see if I can get anywhere with their help.

    Godspeed.

  8. #8
    Join Date
    Sep 2006
    Posts
    281
    Plugin Contributions
    0

    Default Re: Need help with Virtual Merchant module

    Alright all . . .

    The changes are too many to list. Here is where we are so far.

    Fixed PHP error
    Fixed Validation error
    Fixed . . .

    Well, to get to the point, we're done with the exception of getting the data to ZenCart; if anyone out there in ZenLand can tell me where we're supposed to send our results then we might be in business. Right now we got it showing us the Klix \ VM receipt page. Obviously this is not what we want; but it does point to our new ability to change the code to a point of getting said receipt where before we never got a receipt only the error with Zen.

    So, if anyone can tell me where our ssl_result should be pushed too then we might have this thing licked.

    And Pablo; you're probably not going to get much help, matter of fact I know you won't. They are a great team of support but they are bound to only assist with static HTML. There are 2 people there that know PHP and other scripting languages but they are not allowed to do any coding. By all means check, but I have a unique perspective on this
    [FONT="Georgia"]Samuel Turnmire[/FONT]
    [FONT="Century Gothic"]co-Founder[/FONT]
    [FONT="Book Antiqua"]geekFoundry[/FONT]

  9. #9
    Join Date
    Sep 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: Need help with Virtual Merchant module

    I was told Friday by a rep at Nova (who set the client up with the VM account) that VM is not compatible with ZenCart... Whatever that means, since with enough work, anything is compatible.

    Anywho, sounds like I'm done with this one, they've decided to switch the client over to Authorize.net instead. Hopefully that will go painlessly.

    Good luck with your efforts, though! I feel your pain.

  10. #10
    Join Date
    Sep 2006
    Posts
    281
    Plugin Contributions
    0

    Default Re: Need help with Virtual Merchant module

    Quote Originally Posted by pablo1881 View Post
    I was told Friday by a rep at Nova (who set the client up with the VM account) that VM is not compatible with ZenCart... Whatever that means, since with enough work, anything is compatible.

    Anywho, sounds like I'm done with this one, they've decided to switch the client over to Authorize.net instead. Hopefully that will go painlessly.

    Good luck with your efforts, though! I feel your pain.
    If you could get me a name of who told them that I would like to know. They always give their first name when the answer the phone.

    Auth.net should work great, like I said earlier, I'm a reseller for them if you need any assist!
    [FONT="Georgia"]Samuel Turnmire[/FONT]
    [FONT="Century Gothic"]co-Founder[/FONT]
    [FONT="Book Antiqua"]geekFoundry[/FONT]

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Need help with New Google Merchant Feeder
    By wonderbread101 in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 28 Dec 2012, 09:15 PM
  2. Replies: 3
    Last Post: 20 Aug 2012, 09:23 PM
  3. Component For Virtual Merchant . Please Help
    By kshap448 in forum Basic Configuration
    Replies: 1
    Last Post: 22 Jul 2009, 04:57 PM
  4. I need help linking my Zen Cart with Intuit merchant
    By MULISH in forum Addon Payment Modules
    Replies: 4
    Last Post: 9 May 2009, 07:26 PM
  5. Can zen cart be used with virtual merchant
    By amonte in forum General Questions
    Replies: 1
    Last Post: 26 Jun 2008, 07:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR