woocommerce / woocommerce-gateway-paypal-express-checkout

58 stars 65 forks source link

Add BLIK and MercadoPago as funding methods #870

Closed jorgeatorres closed 3 years ago

jorgeatorres commented 3 years ago

Issue: #796


Description

From the current list of alternative payment methods, we were missing both "BLIK" and "MercadoPago". This PR adds both options as funding methods and also sorts the dropdown options alphabetically, leaving only PayPal Credit and Debit/Credit Card at the top, as those are the ones more commonly used.

Steps to test:

  1. Check out trunk.
  2. Add an item to the cart and go to the checkout page.
  3. Use the following snippet to temporarily change your site to PLN and your buyer country to Poland:

    add_filter( 'woocommerce_paypal_express_checkout_sdk_script_args', function( $args ) {
       $args['buyer-country'] = 'PL';
       return $args;
    } );
    
    add_filter( 'woocommerce_currency', function( $currency ) {
       return 'PLN';
    } );
  4. Confirm that BLIK and P24 are available as payment options: Screen Shot 2021-05-27 at 10 27 23
  5. Go to WC > Settings > Payments > PayPal Checkout > Hide Funding Method(s) and confirm that BLIK is not an option.
  6. Check out this branch (issue/796) and see an option for "BLIK" above. Choose to hide the funding method.
  7. Refresh the checkout page and confirm that BLIK is no longer an option: Screen Shot 2021-05-27 at 10 25 14

Changelog entry

Closes #796.

chickenn00dle commented 3 years ago

LGTM. Merging.