osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion > Payment Modules > Authorize.net

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack (1) Thread Tools
  1 links from elsewhere to this Post. Click to view. #1  
Old 05-21-2008, 10:27 AM
Member
 
Join Date: Mar 2008
Posts: 34
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
jack_strit is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 05-23-2008, 08:35 AM
Member
 
Join Date: Mar 2008
Posts: 34
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
jack_strit is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 05-23-2008, 03:40 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,961
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 05-23-2008, 05:51 PM
Member
 
Join Date: Mar 2008
Posts: 34
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
jack_strit is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to jack_strit For This Useful Post:
michael_s (05-24-2008)
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.oscmax.com/forums/authorize-net/14044-using-test-account-authorize-net.html

Posted By For Type Date
CRE Share > > Forums Topic List > > Chain Reaction Ecommerce Inc. - CRE Loaded 6.2.xx > > Payment Processing & Gateways > > Authorize.net Developers Test Account This thread Refback 09-23-2008 12:40 PM

Similar Threads

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


All times are GMT -8. The time now is 03:21 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax