-
-
Save briancollins/9ce1a97c0453581044bb to your computer and use it in GitHub Desktop.
Create token using the old API
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
$.ajax({ | |
type: "POST", | |
url: "https://api.stripe.com/v1", | |
data: { | |
"card[number]": "4111111111111111", | |
"card[exp_month]": "12", | |
"card[exp_year]": "2013", | |
"card[cvc]": "123", | |
"key": "pk_dl4LcpeAxUEPHN3FxzuAQQmhCGmx5", | |
"method": "create_token" | |
} | |
}).done(function( msg ) { | |
console.log(msg); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment