Skip to content

Instantly share code, notes, and snippets.

@mtermoul
Created May 16, 2019 21:58
Show Gist options
  • Save mtermoul/e20ee070d2d49673e60af22be432e48b to your computer and use it in GitHub Desktop.
Save mtermoul/e20ee070d2d49673e60af22be432e48b to your computer and use it in GitHub Desktop.
crowd-pitch/public/js/Stripe.js
// 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