mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Enable name on card and hide it from settings
This commit is contained in:
parent
c1e51cb8a3
commit
2a20df9b6f
2 changed files with 6 additions and 5 deletions
|
@ -642,10 +642,11 @@ class AxoManager {
|
|||
}
|
||||
|
||||
cardComponentData() {
|
||||
let fields = {};
|
||||
if(this.axoConfig.name_on_card === '1') {
|
||||
fields.cardholderName = {};
|
||||
}
|
||||
const fields = {
|
||||
cardholderName: {
|
||||
enabled: true
|
||||
}
|
||||
};
|
||||
|
||||
return {
|
||||
fields: fields,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue