Results 1 to 6 of 6

Using a test account with Authorize.net

This is a discussion on Using a test account with Authorize.net within the Authorize.net forums, part of the Payment Modules category; Hi, I signed up for a test account with authorize.net has anyone used a test account in OSCMax to test ...

      
  1. #1
    Member
    Join Date
    Mar 2008
    Posts
    34
    Rep Power
    0


    Default Using a test account with Authorize.net

    Hi,

    I signed up for a test account with authorize.net has anyone used a test account in OSCMax to test out the store? I have not gotten it to work yet. Every time I go through payment and confirm order, it sends me back to the payment page.



    Thanks to all,

    J

  2. #2
    Member
    Join Date
    Mar 2008
    Posts
    34
    Rep Power
    0


    Default Re: Using a test account with Authorize.net

    Ok, what I have found out so far: The test account has to send POST data to https://test.authorize.net/gateway/transact.dll in file authorizenet_direct.php

    I tried Authorize.net 's sample php code and (after inputting my test account ID etc.) got it to work splendidly with AIM....what that indicates is that the server settings are fine, curl is properly compiled etc. But....the oscmax authorize.net module still does not work. I did change settings a billion times in the admin, trying all combinations of settings in the Authorize.net module.

    The only thing that I got to change is the error I was getting. Instead of "There is a card error" it says. "There was and unspecified card error" . So, we have gone from card errors to unspecified card errors.

    Anybody with more clues on this?

    My next step: Compare code of the oscmax authorize.net module and the code that Authorize.net gives on its website.

    Bam-bam-bam-baaaa...

    The adventure continues!

    J

  3. #3
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,500
    Rep Power
    567


    Default Re: Using a test account with Authorize.net

    I do not believe the included Anet module will work with a test account. You need to use a real account set to test mode. I have no experience with a test account, so I cannot be any help.

    The authorizenet module works fine for me every time. That unspecified error usually means there is a problem with curl or how the module is accessing curl. Check your test code and modify the curl settings in the osCMax module to match.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  4. #4
    Member
    Join Date
    Mar 2008
    Posts
    34
    Rep Power
    0


    Default Re: Using a test account with Authorize.net

    Thanks michael_s,

    OK here is the unofficial hack to use a Authorize.net developers test account with the authorize.net module in OSCMax!


    I did not have an account with authorize.net, so I signed up for a developers account. They usually give you your account data by the next day and it is free.

    I checked the Curl stuff faithfully and still did not work, etc, etc....

    I just did this in the file authorizenet_direct.php around line 87:
    PHP Code:
    //$form_data['x_Card_Code'] = "$x_Card_Code"; 
    And it worked. Remember on line 154 to use

    PHP Code:
     $url'https://test.authorize.net/gateway/transact.dll' 
    Basically there are "test" CC numbers like

    Visa: 4242424242424242
    Exp: any date after the present day

    that you can use for a test (the was after signing up for a test account with authorize.net).

    The problem is that oscmax requires the CVV number and to my knowledge there is no "test" CVV number. By disabling the POST of the CVV number, the test works.

    You can then sign into you developers account at https://test.authorize.net/ and go to search->transactions and do a search on whatever name you used, whatever date the transaction was, etc. and find the transaction in authorize.net's database. Be aware that the database contains all the transactions of everyone using these test accounts, so these test transactions will be viewable by other people. Only use test cc# , don't use personal data etc.


    Be sure to uncomment the CVV x_card_code POST and change the url back to "secure.authorize.net/gateway/transact.dll" when you use a live account. (Or restore from the backup that you should have made of the original file ).

    JG

  5. #5
    Lurker
    Join Date
    Jan 2009
    Posts
    3
    Rep Power
    0


    Default Re: Using a test account with Authorize.net

    Hi Jack Strit,

    Please, how could I deactivate sending the x_code post?

    Many thanks,

  6. #6
    Lurker
    Join Date
    Jan 2009
    Posts
    3
    Rep Power
    0


    Default Re: Using a test account with Authorize.net

    Oh nevermind. It was lines above. I did it in an oscommerce with cvv module but it fails to work with the test account. I am getting this error:

    There has been an error processing your credit card. Please try again.

    How can I discover what it is?

    Thanks,


Similar Threads

  1. Authorize.net error:This account has not been given....
    By TangledTech in forum osCMax v1.7 Installation
    Replies: 1
    Last Post: 07-31-2006, 11:40 PM
  2. Authorize.net Problems
    By lem in forum osCMax v2 Features Discussion
    Replies: 18
    Last Post: 11-01-2005, 11:07 AM
  3. Authorize.net Error
    By seandon01 in forum osCMax v1.7 General Mods Discussion
    Replies: 14
    Last Post: 03-29-2005, 02:57 PM
  4. Authorize.net Module - help!
    By tbabasade2 in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 12-28-2004, 07:28 AM
  5. Authorize.net Test w/o test mode?
    By dewed in forum osCMax v1.7 General Mods Discussion
    Replies: 6
    Last Post: 06-17-2004, 11:09 AM

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
  •