# Configuration
The component is fully configurable.
Prop | Description | Type | Default |
---|---|---|---|
authorization | The client token generated from the server | String | required |
paypal | Configure PayPal | Object | |
paypalCredit | Configure PayPal Credit | Object | |
venmo | Configure Venmo | Object | |
applePay | Configure Apple Pay | Object | |
googlePay | Configure Google Pay | Object | |
locale | The desired locale (available locales) | String | en_US |
translations | Custom translations. See the default translations for a full list of translation strings. | Object | |
btnText | The button text | String | 'Pay' |
btnClass | The button class | String | 'btn btn-primary' |
card | You can collect the cardholder name as part of the credit card form by settings the card configuration | Object | null |
vaultManager | If you authorize Drop-in using client tokens generated with customer_ids, you can also enable customers to remove saved payment methods from their Vault records. | Boolean | false |
threeDSecure | To enable 3DS. You must generate a client token if you want to use 3D Secure (3DS). Tokenization keys can't be used to verify 3D Secure enabled cards.. | Boolean | false |
threeDSecureParameters | The client informations when 3DS is enabled. | Object | null |
# Collect cardholder name
You can collect the cardholder name as part of the credit card form.
<v-braintree
authorization="xxxxxxxxxxxxxxxxxxxxxx"
:card="{
cardholderName: {
required: true
}
}"
@success="onSuccess"
@error="onError"
></v-braintree>
# Enable 3D Secure
Enable threeDSecure on the component and add the required parameters.
WARNING
You must generate a client token if you want to use 3D Secure (3DS). Tokenization keys can't be used to verify 3D Secure enabled cards.
<v-braintree
authorization="xxxxxxxxxxxxxxxxxx"
:three-d-secure="true"
:three-d-secure-parameters="{
amount: 100,
email: 'francois@witify.io',
billingAddress: {
givenName: 'John',
surname: 'Doe',
phoneNumber: '515 515 1234',
streetAddress: '485 boul. dagenais E',
extendedAddress: '1',
locality: 'Laval',
region: 'QC',
postalCode: 'h7m5z5',
countryCodeAlpha2: 'CA'
}
}"
>
</v-braintree>
# Replace the button
The submit button is in a scoped slot, so you can replace it with any other component as necessary. For example, using a Vuetify button:
<v-braintree authorization="xxxxxxxxxxxxxxxxxx">
<template v-slot:button="slotProps">
<v-btn @click="slotProps.submit" color="success">Fancy button</v-btn>
</template>
</v-braintree>