saucal / woocommerce-gateway-amazon-pay

Amazon Pay Gateway
0 stars 1 forks source link

Fix fe provided allowed currencies, if multi currency disabled #191

Closed dpanta94 closed 1 year ago

dpanta94 commented 1 year ago

All Submissions:

Changes proposed in this Pull Request:

FE provided allowed currencies to blocks should take into consideration if there is a multi currency plugin enabled. Also altered PHP to return false instead of an empty array when there should be the selected currency available when no multi currency plugin is present.

How to test the changes in this Pull Request:

  1. Amazon Pay Express should be enabled when no compatible multicurrency plugin is present when using blocks.
  2. If a mutli currency compatible plugin is disabled, FE allowed currencies should be just like if that plugin was never part of the installation when using blocks.
  3. If a disallowed currency is selected amazon pay Express should be unavailable when using blocks.

Other information:

Changelog entry

FIX -

dpanta94 commented 1 year ago

PR opened in woo repo pull#242