Created
April 20, 2013 05:55
-
-
Save jcleblanc/5424928 to your computer and use it in GitHub Desktop.
request code from the Node.js PayPal SDK
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 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