Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var AddressHelper = {
city: address.city || '',
region: address.stateCode || '',
postcode: address.postalCode || '',
country: address.countryCode ? address.countryCode.toString().toUpperCase() : '',
country: address.countryCode ? address.countryCode.value.toString().toUpperCase() : '',
phone: address.phone || ''
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ var PaymentsHelper = {
city: billingAddress.city,
region: billingAddress.stateCode,
postcode: billingAddress.postalCode,
country: billingAddress.getCountryCode() ? billingAddress.getCountryCode().toString().toUpperCase() : '',
country: billingAddress.getCountryCode() ? billingAddress.getCountryCode().getValue().toString().toUpperCase() : '',
phone: billingAddress.phone || ''
};
} else if (defaultCustomerAddress) {
Expand All @@ -95,7 +95,7 @@ var PaymentsHelper = {
city: defaultCustomerAddress.city,
region: defaultCustomerAddress.stateCode,
postcode: defaultCustomerAddress.postalCode,
country: defaultCustomerAddress.getCountryCode() ? defaultCustomerAddress.getCountryCode().toString().toUpperCase() : '',
country: defaultCustomerAddress.getCountryCode() ? defaultCustomerAddress.getCountryCode().getValue().toString().toUpperCase() : '',
phone: defaultCustomerAddress.phone || ''
};
} else {
Expand Down