Skip to content

Instantly share code, notes, and snippets.

@jcleblanc
Created April 20, 2013 05:55
Show Gist options
  • Save jcleblanc/5424928 to your computer and use it in GitHub Desktop.
Save jcleblanc/5424928 to your computer and use it in GitHub Desktop.
request code from the Node.js PayPal SDK
var card_data = {
"type": "visa",
"number": "4417119669820331",
"expire_month": "11",
"expire_year": "2018",
"cvv2": "123",
"first_name": "Joe",
"last_name": "Shopper"
};
paypal_sdk.credit_card.create(card_data, config_options, function(err , res){
if (err){
console.log(err);
throw err;
}
if (res){
console.log("Create Credit-Card Response");
console.log(res);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment