saucal / woocommerce-gateway-amazon-pay

Amazon Pay Gateway
0 stars 1 forks source link

fixes is_available and checks availability for all button placements #151

Closed dpanta94 closed 2 years ago

dpanta94 commented 2 years ago

All Submissions:

Changes proposed in this Pull Request:

Setting the $is_available to true when is_checkout_pay_page() was true was a bug. The $is_available variable should only be altered to false without checking prior rules.

Also introduces the is_available method for all the available button placements.

Other information:

Changelog entry

Fix - is_available method would return true even when region would not support currency. Fix - Passes all the button placement through the is_available gateway method.