mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Refactor AXO form submission
This commit is contained in:
parent
7a5d61bf2b
commit
0cb26c4457
6 changed files with 55 additions and 28 deletions
|
@ -51,11 +51,11 @@ class BillingView {
|
|||
},
|
||||
firstName: {
|
||||
'selector': '#billing_first_name_field',
|
||||
'valuePath': 'billing.name.firstName',
|
||||
'valuePath': null
|
||||
},
|
||||
lastName: {
|
||||
'selector': '#billing_last_name_field',
|
||||
'valuePath': 'billing.name.lastName',
|
||||
'valuePath': null
|
||||
},
|
||||
street1: {
|
||||
'selector': '#billing_address_1_field',
|
||||
|
@ -117,8 +117,8 @@ class BillingView {
|
|||
return `${this.inputValue('firstName')} ${this.inputValue('lastName')}`.trim();
|
||||
}
|
||||
|
||||
copyDataToForm() {
|
||||
return this.group.copyDataToForm();
|
||||
toSubmitData(data) {
|
||||
return this.group.toSubmitData(data);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue