Skip to content

Instantly share code, notes, and snippets.

@althaffe
Last active February 18, 2018 03:16
Show Gist options
  • Save althaffe/f9acd57f4cdc8e4a4d48f5eb910c188b to your computer and use it in GitHub Desktop.
Save althaffe/f9acd57f4cdc8e4a4d48f5eb910c188b to your computer and use it in GitHub Desktop.
Configuration for vue-stripe-checkout element.
import Vue from 'vue';
import VueStripeCheckout from 'vue-stripe-checkout';
const options = {
key: process.env.STRIPE_PUBLIC_KEY,
image: 'https://cosmicjs.com/images/logo.svg',
locale: 'auto',
currency: 'USD',
billingAddress: true,
panelLabel: 'Pay {{amount}}'
}
Vue.use(VueStripeCheckout, options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment