Created
September 23, 2012 22:50
-
-
Save edwardhotchkiss/3773332 to your computer and use it in GitHub Desktop.
kevin needs help
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var kevin = function(error, result) { | |
if (error) { | |
console.error(error); | |
} else { | |
console.log(result); | |
}; | |
}; | |
var kevinNeedsHelp = client.performAimTransaction({ | |
"x_type": "AUTH_CAPTURE", | |
"x_method": "CC", | |
"x_card_num": "4111111111111111", | |
"x_exp_date": "0115", | |
"x_amount": "19.99", | |
"x_description": "Sample Transaction", | |
"x_first_name": "John", | |
"x_last_name": "Doe", | |
"x_address": "1234 Street", | |
"x_state": "WA", | |
"x_zip": "98004" | |
}); | |
kevinNeedsHelp.on('success', function(error, result){ | |
kevin(error, result); | |
}); | |
kevinNeedsHelp.on('failure', function(error, result){ | |
kevin(error, result); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment