Skip to content

Release testing instructions for WC Payments 3.4.0

Hector Lovo edited this page Nov 16, 2021 · 7 revisions

Allow UI customizations below checkout payment fields, using WCPay

Expected outcome

Below the checkout payment fields, there should be some green text that reads: "Thank you for your purchase".

Testing instructions

  1. From the admin perspective (wp-admin), click on the WCPay Dev menu item.
  2. Make sure Enable UPE checkout is not checked.
  3. Go to Snippets (requires Code Snippets plugin) and click Add New.
  4. Enter any title and paste the following code snippet in the Code section:
add_action('wcpay_payment_fields_wcpay', function ($id) {
  echo "<div style='color: green;'>Thank you for your purchase</div>";
});
  1. Click Save Changes.
  2. From the customer perspective, go to the Shop, add some product to your cart, and go to Checkout.
  3. Observe the Expected outcome.

Allow UI customizations below checkout payment fields, using UPE

Expected outcome

Below the checkout payment fields, there should be some purple text that reads: "Thank you for your purchase".

Testing instructions

  1. From the admin perspective (wp-admin), click on the WCPay Dev menu item.
  2. Make sure Enable UPE checkout is checked.
  3. Go to Snippets (requires Code Snippets plugin) and click Add New.
  4. Enter any title and paste the following code snippet in the Code section:
add_action('wcpay_payment_fields_upe', function ($id) {
  echo "<div style='color: purple;'>Thank you for your purchase</div>";
});
  1. Click Save Changes.
  2. From the customer perspective, go to the Shop, add some product to your cart, and go to Checkout.
  3. Observe the Expected outcome.
Clone this wiki locally