Skip to content

Instantly share code, notes, and snippets.

@edwardhotchkiss
Created September 23, 2012 22:50
Show Gist options
  • Save edwardhotchkiss/3773332 to your computer and use it in GitHub Desktop.
Save edwardhotchkiss/3773332 to your computer and use it in GitHub Desktop.
kevin needs help
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