Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Sep 15, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
68 changes: 34 additions & 34 deletions 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",
Expand All @@ -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).
4 changes: 2 additions & 2 deletions docs/PayflowPro.md
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down