Configure accepted payment methods
Client-Side
With Card Payment Brick it is possible to define which payment methods (debit and/or credit) will be accepted in a purchase. By default, both are enabled at the time of integration, however, it is also possible to offer only one of these options, limiting payment to debit or credit only.
In the table below you will find the details of the customization and the code necessary to carry out the configuration.
Brick | Card Payment Brick |
Customization moment | When rendering Brick. |
Property | customization.paymentMethods.types.excluded |
Type | string [] |
Notes | The values ââaccepted within the array are: credit_card , debit_card . |
settings = {
...,
customization: {
paymentMethods: {
types:{
excluded: ['debit_card']
}
}
}
}
const customization = {
paymentMethods: {
types: {
excluded: ['debit_card'],
},
},
};