saucal / woocommerce-gateway-amazon-pay

Amazon Pay Gateway
0 stars 1 forks source link

phonerequired only whenphysical products in cart #173

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 woo#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.

dpanta94 commented 2 years ago

@lauramelos fixed one more issue that it was identified by QA

dpanta94 commented 2 years ago

Pull accepted in woo repo pull#189