Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

show how to properly require modules with use for 'authorizenet' and 'payflowpro' #11

Merged
merged 2 commits into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 36 additions and 36 deletions.
  1. +34 −34 docs/AuthorizeNet.md
  2. +2 −2 docs/PayflowPro.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).
+
+
+
View
4 docs/PayflowPro.md
@@ -46,7 +46,7 @@ See https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer
### DoDirectPayment
Process a payment
- var payflow = require('paynode').payflowProGateway
+ var payflow = require('paynode').use('payflowpro');
var client = payflow.createClient({level:payflow.levels.sandbox
, user:'username'
@@ -86,7 +86,7 @@ Process a payment
### GetBalance
Get the balances of your account
- var payflow = require('paynode').payflowProGateway
+ var payflow = require('paynode').use('payflowpro');
var client = payflow.createClient({level:payflow.levels.sandbox
, user:'username'
Something went wrong with that request. Please try again.