Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Express Checkout - WC Checkout page adjustment with EC address setting. #796
In our Express Checkout settings we have the option to "Set billing address in WooCommerce using the address returned by PayPal." This is intended for use with Express Checkout Shortcut, where the WC checkout page is skipped, and we would not have any actual "billing" details since PayPal only returns a shipping address.
When the WC checkout page is used this option is causing a conflict right now. If I have it enabled it's replacing the billing address with the PayPal shipping address (as technically expected) but this is not logically correct because the WC checkout page had an actual billing address entered and that address should be kept.
For example, I ran a test order with Smith LLC as the company name for billing, and Doe LLC as the company name for shipping on the WC checkout page. When the order completes, the WC order details shows Doe LLC (and the full shipping address) for billing even though a separate billing address was entered during checkout.
So....what we need to do is ignore our option to set billing to the same as shipping in cases where the WC checkout page is used, and instead go ahead and use the billing info as entered by the user on the WC checkout page.