Voucher confirmers
Confirm a PaymentIntent with a cash voucher: Boleto (Brazil), Konbini (Japan) and OXXO (Mexico). By default Stripe.js displays the voucher to the customer (pass { handleActions: false } to render it yourself from paymentIntent.next_action). The PaymentIntent stays requires_action until the customer pays, so confirm the payment from your webhook.
Each composable returns the Stripe.js method under its own name plus loading and error; see Method confirmers for the shared behavior. Call it in a component inside VueStripeProvider. What each method needs lists the Intent currency and the data each method requires, and Test your integration what each method does in test mode.
When to use
The Payment Element collects the details each voucher needs; confirm it with usePaymentIntent. Use these confirmers with your own form.
Example
<!-- PayWithOxxo.vue: rendered inside <VueStripeProvider> -->
<script setup lang="ts">
import { ref } from 'vue'
import { useConfirmOxxoPayment } from '@vue-stripe/vue-stripe'
const props = defineProps<{ clientSecret: string }>()
const name = ref('')
const email = ref('')
const { confirmOxxoPayment, loading, error } = useConfirmOxxoPayment()
const pay = () =>
confirmOxxoPayment(props.clientSecret, {
payment_method: { billing_details: { name: name.value, email: email.value } }
})
</script>
<template>
<input v-model="name" placeholder="Full name" />
<input v-model="email" type="email" placeholder="Email" />
<button :disabled="loading" @click="pay">Get OXXO voucher</button>
<p v-if="error">{{ error }}</p>
</template>Composables
useConfirmBoletoPayment
Wraps stripe.confirmBoletoPayment(). Use stripe.confirmBoletoPayment in the Boleto Payment with Payment Methods flow when the customer submits your payment form. When called, it will confirm the PaymentIntent with data you provide.
const { confirmBoletoPayment, loading, error } = useConfirmBoletoPayment()
// Stripe.js signature
confirmBoletoPayment(
clientSecret: string,
data?: ConfirmBoletoPaymentData,
options?: ConfirmBoletoPaymentOptions
): Promise<PaymentIntentResult>useConfirmKonbiniPayment
Wraps stripe.confirmKonbiniPayment(). Use stripe.confirmKonbiniPayment in the Konbini payment flow when the customer submits your payment form. When called, it will confirm the PaymentIntent with data you provide.
const { confirmKonbiniPayment, loading, error } = useConfirmKonbiniPayment()
// Stripe.js signature
confirmKonbiniPayment(
clientSecret: string,
data?: ConfirmKonbiniPaymentData,
options?: ConfirmKonbiniPaymentOptions
): Promise<PaymentIntentResult>useConfirmOxxoPayment
Wraps stripe.confirmOxxoPayment(). Use stripe.confirmOxxoPayment in the OXXO Payment with Payment Methods flow when the customer submits your payment form. When called, it will confirm the PaymentIntent with data you provide.
const { confirmOxxoPayment, loading, error } = useConfirmOxxoPayment()
// Stripe.js signature
confirmOxxoPayment(
clientSecret: string,
data?: ConfirmOxxoPaymentData,
options?: ConfirmOxxoPaymentOptions
): Promise<PaymentIntentResult>See Also
- Method confirmers - The shared return value
- Payment methods that settle later
