:success-url="successURL"
@loading="v => loading = v"
<button @click="submit">Subscribe!</button>
import { StripeCheckout } from '@vue-stripe/vue-stripe';
this.publishableKey = process.env.STRIPE_PUBLISHABLE_KEY;
price: 'some-price-id', // The id of the recurring price you created in your Stripe dashboard
successURL: 'your-success-url',
cancelURL: 'your-cancel-url',
// You will be redirected to Stripe's secure checkout page
this.$refs.checkoutRef.redirectToCheckout();