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