Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Edited docs/AuthorizeNet.md via GitHub

  • Loading branch information...
commit c897a7846dad2c3b07b214b732f0f62df9df648e 1 parent 2502a29
@andrewjstone andrewjstone authored
Showing with 34 additions and 34 deletions.
  1. +34 −34 docs/AuthorizeNet.md
View
68 docs/AuthorizeNet.md
@@ -1,24 +1,24 @@
-#Authorizenet
-
-This client provides functionality for interacting with Authorize.net. Certificate based authentication is not yet supported.
-
-## Suported Methods
- * AIM
-
-
-## Usage
-
-Here's an example using the minimal fields needed to process a payment.
-
- var authorizenet = require('paynode').authorizeNetGateway;
-
- var client = authorizenet.createClient({
- level:authorizenet.levels.sandbox
- ,login:'<yourlogin>'
- ,tran_key:'<yourtran_key>'
- })
-
- client.performAimTransaction({
+#Authorizenet
+
+This client provides functionality for interacting with Authorize.net. Certificate based authentication is not yet supported.
+
+## Suported Methods
+ * AIM
+
+
+## Usage
+
+Here's an example using the minimal fields needed to process a payment.
+
+ var authorizenet = require('paynode').use('authorizenet');
+
+ var client = authorizenet.createClient({
+ level:authorizenet.levels.sandbox
+ ,login:'<yourlogin>'
+ ,tran_key:'<yourtran_key>'
+ })
+
+ client.performAimTransaction({
"x_type": "AUTH_CAPTURE",
"x_method": "CC",
"x_card_num": "4111111111111111",
@@ -31,16 +31,16 @@ Here's an example using the minimal fields needed to process a payment.
"x_last_name": "Doe",
"x_address": "1234 Street",
"x_state": "WA",
- "x_zip": "98004"})
- .on('success', function(err, result){
- // do something to handle a successful transaction
- })
- .on('failure', function(err, result){
- // do something to handle a failed transaction
- })
-
-## Notes
-Currently the callbacks for these methods use function(err, result). However, this format will be reverted and a new event named 'exception' will be fired when an exceptional case is reached (DNS resolution failure, 500 error from host, etc).
-
-
-
+ "x_zip": "98004"})
+ .on('success', function(err, result){
+ // do something to handle a successful transaction
+ })
+ .on('failure', function(err, result){
+ // do something to handle a failed transaction
+ })
+
+## Notes
+Currently the callbacks for these methods use function(err, result). However, this format will be reverted and a new event named 'exception' will be fired when an exceptional case is reached (DNS resolution failure, 500 error from host, etc).
+
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.