:elements-options="elementsOptions"
:confirm-params="confirmParams"
<button @click="pay">Pay Now</button>
import { StripeElementPayment } from '@vue-stripe/vue-stripe';
pk: 'your-publishable-key',
appearance: {}, // appearance options
return_url: 'http://localhost:8080/success', // success url
this.generatePaymentIntent();
async generatePaymentIntent () {
const paymentIntent = await apiCallToGeneratePaymentIntent(); // this is just a dummy, create your own API call
this.elementsOptions.clientSecret = paymentIntent.client_secret;
this.$refs.paymentRef.submit();