Difference between revisions of "Configuring Authorize.NET"
LeonTorres (talk | contribs) (→Test Mode using Test Account) |
LeonTorres (talk | contribs) |
||
Line 1: | Line 1: | ||
− | == Testing Setup == | + | == Testing Your Setup == |
− | Authorize.NET has | + | Authorize.NET has a live server and a testing server. Both servers behave in exactly the same way with the exception that the testing server does not perform any real financial transactions. Hence, the testing server should be used to do development work and to trial run Opentaps features such as order fulfillment to see how they behave. |
− | + | The testing server requires a testing account, which is distinct from a real account. A testing account can be obtained from, | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
http://developer.authorize.net/testaccount/ | http://developer.authorize.net/testaccount/ | ||
− | + | Next, you will need to configure payment.properties for testing. The following setup is recommended, | |
− | + | <pre> | |
+ | payment.authorizedotnet.url=https://test.authorize.net/gateway/transact.dll | ||
+ | payment.authorizedotnet.trankey= Transaction key of the testing account | ||
+ | payment.authorizedotnet.test=FALSE | ||
+ | payment.authorizedotnet.logging=TRUE | ||
+ | payment.authorizedotnet.login= API Login key of the testing account | ||
+ | </pre> | ||
− | + | The test parameter should always be set to FALSE except for testing special things that will be described below. | |
− | + | === Testing Specific Gateway Failures === | |
− | + | Suppose you wish to see what happens when there is an AVS address verification failure (code 27) that results in an authorization being declined. We can trigger the test server to return this by using a special VISA credit card number 4222222222222 and an authorization amount equal to the error code ($27.00). Because of the validation code, you'll have to create this CreditCard record by hand and a PaymentMethod for it. |
Revision as of 00:30, 13 December 2007
Testing Your Setup
Authorize.NET has a live server and a testing server. Both servers behave in exactly the same way with the exception that the testing server does not perform any real financial transactions. Hence, the testing server should be used to do development work and to trial run Opentaps features such as order fulfillment to see how they behave.
The testing server requires a testing account, which is distinct from a real account. A testing account can be obtained from,
http://developer.authorize.net/testaccount/
Next, you will need to configure payment.properties for testing. The following setup is recommended,
payment.authorizedotnet.url=https://test.authorize.net/gateway/transact.dll payment.authorizedotnet.trankey= Transaction key of the testing account payment.authorizedotnet.test=FALSE payment.authorizedotnet.logging=TRUE payment.authorizedotnet.login= API Login key of the testing account
The test parameter should always be set to FALSE except for testing special things that will be described below.
Testing Specific Gateway Failures
Suppose you wish to see what happens when there is an AVS address verification failure (code 27) that results in an authorization being declined. We can trigger the test server to return this by using a special VISA credit card number 4222222222222 and an authorization amount equal to the error code ($27.00). Because of the validation code, you'll have to create this CreditCard record by hand and a PaymentMethod for it.