-
Notifications
You must be signed in to change notification settings - Fork 69
Release testing instructions for WC Payments 3.4.0
Malith Senaweera edited this page Nov 19, 2021
·
7 revisions
Below the checkout payment fields, there should be some green text that reads: "Thank you for your purchase".
- From the admin perspective (
wp-admin
), click on theWCPay Dev
menu item. - Make sure
Enable UPE checkout
is not checked. - Go to
Snippets
(requiresCode Snippets
plugin) and clickAdd New
. - 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>";
});
- Click
Save Changes
. - From the customer perspective, go to the
Shop
, add some product to your cart, and go toCheckout
. - Observe the Expected outcome.
Below the checkout payment fields, there should be some purple text that reads: "Thank you for your purchase".
- From the admin perspective (
wp-admin
), click on theWCPay Dev
menu item. - Make sure
Enable UPE checkout
is checked. - Go to
Snippets
(requiresCode Snippets
plugin) and clickAdd New
. - 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>";
});
- Click
Save Changes
. - From the customer perspective, go to the
Shop
, add some product to your cart, and go toCheckout
. - Observe the Expected outcome.
Price shown on the payment request button for zero decimal currencies like Japanese Yen should match the actual amount of the product
- Add Japanese yen to the list of currencies in WooCommerce -> Settings -> Multi-currency
- Enable express checkout from Payments -> Settings -> Enable express checkouts
- As a customer, under My Account > Account Details, switch the currency to JPY and save. (Or use currency switcher widget)
- Go to a product page
- Click the payment request button
- Ensure that the prices shown matches the correct amount for the product