-
Notifications
You must be signed in to change notification settings - Fork 69
v8.0.2
Hector Lovo edited this page Aug 5, 2024
·
6 revisions
Ensure Proceed to Checkout
Redirects To The Merchant Checkout Page When The WooPayments Gateway Is Disabled
- As a merchant, navigate to Payments > Settings.
- Ensure the
WooPay
express checkout checkbox is checked. - Ensure the
Enable WooPayments
checkbox is unchecked. - Click the Save changes button.
- As a shopper, ensure you are logged in to WooPay.
- Navigate to the merchant shop, add an item to the cart, and navigate to the cart page.
- Click the Proceed to Checkout.
- Confirm you are navigated to the merchant checkout page.
Ensure Proceed to Checkout
Redirects To The WooPay Checkout Page When The WooPayments Gateway Is Enabled
- As a merchant, navigate to Payments > Settings.
- Ensure the
WooPay
express checkout checkbox is checked. - Ensure the
Enable WooPayments
checkbox is checked. - Click the Save changes button.
- As a shopper, ensure you are logged in to WooPay.
- Navigate to the merchant shop, add an item to the cart, and navigate to the cart page.
- Click the Proceed to Checkout.
- Confirm you are navigated to the WooPay checkout page.
- To test this you'll need to install the latest WooPayments dev tools plugin
- To enable/disable the default opt-in go to /wp-admin > WC Pay Dev, check the option
Force the pre_check_save_my_info flag (aka Default Opt-in) in the account cache to be
, then select either true or false depending on the type of test you are running - Remember to refresh the page after each test to make sure you are getting a clean state and running all start up code.
- For each test below start with a fresh guest customer logged out of WooPay and the merchant site
This is how the opt-in will look when pre_check_save_my_info
is set to false
This is how the opt-in will look when pre_check_save_my_info
is set to true
-
Add a product to your cart
-
Go to the checkout page.
-
Fill in the fields but leave the billing phone number empty
-
You'll need to run each of the following tests both in the blocks checkout and shortcode checkout pages
Default Opt-in off
- Don't check the opt in and place the order ( Must allow to place order button without errors )
- Check the opt in and then select another payment method. Like Klarna for example ( Must allow to place order without errors )
- Check the opt in and don't type any phone number ( Must show errors only after clicking the place order button )
- Check the opt in and click inside the phone number field then outside ( Must show error right away )
- Check the opt in and click inside the phone number field then outside. Then uncheck the opt-in ( Must allow to place order without errors )
Default Opt-in on
- Don't change the state of the opt in ( Must not show any errors )
- Don't type the phone number and try to place an order ( Must show errors )
- Click inside the phone number field then outside then try to place an order ( Must show errors )
- Un-check then check the opt-in, fill in the phone number, then place the order ( Must not show any errors )
- Use another payment method (eg: Klarna) without adding a phone number or changing the opt-in state ( Checkbox must hide after changing the payment method and it must allow to place order without errors )
- Change between payment methods back and forth and place the order( Expected results will depend on which payment method you selected last)