woocommerce / woocommerce-gateway-amazon-pay

Amazon Pay Gateway
20 stars 23 forks source link

Hotfix/phone required only when physical products #189

Closed dpanta94 closed 2 years ago

dpanta94 commented 2 years ago

All Submissions:

Changes proposed in this Pull Request:

When amazon classic is used with physical products, a phone number is required to be provided. When the cart contains only virtual products the phone should not be required.

Closes #187.

How to test the changes in this Pull Request:

  1. Create an order containing only physical products and one containing only virtual products.
  2. In the first case, you shouldn't be able to complete checkout without providing a phone number.
  3. In the second you should.

Other information:

Changelog entry

Fix - Phone number should not be required when no physical products are present in cart.