woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
232 stars 203 forks source link

Hide Multibanco on the checkout page when the Stripe account's country doesn't support it #3232

Closed Mayisha closed 2 months ago

Mayisha commented 3 months ago

Fixes #3227

This PR fixes the

Changes proposed in this Pull Request:

Testing instructions

  1. Create a Stripe account associated with a country that's not in this list, like India.
  2. Connect your store to this account.
  3. Select Euro as your store currency.
  4. Go to the Stripe settings page and confirm that Multibanco is not in the payment method list.
  5. Now connect to a US Stripe account and recheck the payment methods list.
  6. This time Multibanco should be present in the payment methods list.
  7. Enable Multibanco.
  8. As a shopper make a purchase with Multibanco. Confirm that the payment is successful and the order is placed.
james-allan commented 2 months ago

VERIFY BUG Confirmed that on develop, after connecting to an Indian based Stripe account that Multibanco is listed.

Screenshot 2024-07-16 at 1 56 05 PM

Confirmed that on develop if you attempt to make a purchase using this Indian based account, it will fail:

Screenshot 2024-07-16 at 1 59 19 PM


VERIFY FIX

Screenshot 2024-07-16 at 2 15 28 PM