Automattic/woocommerce-subscriptions-core

Incorrect Billing City Set to Postcode in WooCommerce Subscriptions When Changing Payment Gateway

Opened this issue · 0 comments

In the WooCommerce Subscriptions core file class-wc-subscriptions-change-payment-gateway.php, located in woocommerce-subscriptions-core/includes, there is an error on line 297. The billing city is incorrectly being set to the postcode value when changing the payment gateway for a subscription. The line reads:

$subscription_billing_city = $subscription->get_billing_postcode();

It should be:

$subscription_billing_city = $subscription->get_billing_city();

Regards,