woocommerce / woocommerce-gateway-paypal-express-checkout

58 stars 65 forks source link

Fix Credit messaging placement on checkout page #820

Closed mattallan closed 3 years ago

mattallan commented 3 years ago

Description

When you have multiple payment options on the checkout and have selected a non PayPal Checkout method, the PayPal Credit Messaging shows up below the place order button:

Props @jorgeatorres for the fixes!

Steps to test:

  1. Enable a second payment method (stripe/square)
  2. Enable PayPal Credit Messaging on checkout
  3. Add a product to the cart and visit the checkout
  4. On trunk, select the non-PayPal Checkout gateway and you should see the Credit Messaging under the place order button
  5. On bnpl-ui-fix you shouldn't see the Credit Messaging until PayPal is selected.

Documentation

mattallan commented 3 years ago

Thanks again @jorgeatorres for this fix!

This looks good to me