SSH into the site and replace includes/tasks/class-wc-calypso-task-get-paid-with-square.php with the one included in this PR.
Go to WooCommerce -> Home and click on Get paid with Square task.
You can either sign up for Square or manually set wc_square_access_tokens option. I would recommend signing up a square account.
Once you're redirected back to the site from Square, the task should be marked as completed.
Other information:
[ ] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes, as applicable?
FOR PR REVIEWER ONLY:
[ ] I have reviewed that everything is sanitized/escaped appropriately for any SQL or XSS injection possibilities. I made sure Linting is not ignored or disabled.
Changes proposed in this Pull Request:
This PR implements
is_complete
function for the Square task.The logic is copied from Square plugin's is_connected function.
How to test the changes in this Pull Request:
includes/tasks/class-wc-calypso-task-get-paid-with-square.php
with the one included in this PR.WooCommerce -> Home
and click onGet paid with Square
task.wc_square_access_tokens
option. I would recommend signing up a square account.Other information:
FOR PR REVIEWER ONLY: