mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Add setting option to enable/disable name on card field
This commit is contained in:
parent
c76872d9d1
commit
c80f58abcf
3 changed files with 20 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue