woocommerce / woocommerce-paypal-payments

https://wordpress.org/plugins/woocommerce-paypal-payments/
GNU General Public License v2.0
62 stars 47 forks source link

Disable Pay Upon Invoice if billing/shipping country not set (737) #2281

Closed burdulixda closed 4 months ago

burdulixda commented 4 months ago

Description

PUI was only being disabled if the user selected billing/shipping country was anything other than Germany. However, the PUI was not being disabled if the billing/shipping country was not set at all.

Steps to Test

  1. Set default customer location to 'No location by default' (WooCommerce -> Settings -> General);
  2. Use incognito tab (logged out) to add product to cart;
  3. Navigate to checkout page;
  4. Notice the absence of PUI method if billing/shipping country is not set, or is set to any other country except Germany.