Skip to content
Merged
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 @@ -589,6 +589,9 @@ public function store_payment_response( $data ) {
* @return array
*/
public function set_customer_taxable_address( $address ) {
if ( ! WC()->customer ) {
return $address;
}

// set to the shipping address provided by Google Pay if:
// 1. billing is not available
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,9 @@ public function clear_payment_data() {
* @return array
*/
public function set_customer_taxable_address( $address ) {
if ( ! WC()->customer ) {
return $address;
}

$billing_country = WC()->customer->get_billing_country();

Expand Down
Loading