Add setting option to enable/disable name on card field

This commit is contained in:
Emili Castells Guasch 2024-05-01 15:33:23 +02:00
parent c76872d9d1
commit c80f58abcf
3 changed files with 20 additions and 3 deletions

View file

@ -639,10 +639,13 @@ class AxoManager {
}
cardComponentData() {
let fields = {};
if(this.axoConfig.name_on_card === '1') {
fields.cardholderName = {};
}
return {
fields: {
cardholderName: {} // optionally pass this to show the card holder name
},
fields: fields,
styles: this.remove_keys_with_empty_string(this.axoConfig.style_options)
}
}