-
-
Save mtermoul/e20ee070d2d49673e60af22be432e48b to your computer and use it in GitHub Desktop.
crowd-pitch/public/js/Stripe.js
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
// Create a Stripe client. | |
var stripe = Stripe('your-stripe-api-key'); | |
// Create an instance of Elements. | |
var elements = stripe.elements(); | |
// Create an instance of the card Element. | |
var card = elements.create('card', { | |
hidePostalCode: true, | |
style: style}); | |
// Add an instance of the card Element into the `card-element` | |
card.mount('#card-element'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment