Automattic / wc-calypso-bridge

20 stars 4 forks source link

Implement is_complete for the square task #1486

Closed moon0326 closed 4 months ago

moon0326 commented 4 months ago

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:

  1. Create a new Square PAO site.
  2. SSH into the site and replace includes/tasks/class-wc-calypso-task-get-paid-with-square.php with the one included in this PR.
  3. Go to WooCommerce -> Home and click on Get paid with Square task.
  4. You can either sign up for Square or manually set wc_square_access_tokens option. I would recommend signing up a square account.
  5. Once you're redirected back to the site from Square, the task should be marked as completed.

Other information:

FOR PR REVIEWER ONLY:

github-actions[bot] commented 4 months ago

Size Change: 0 B

Total Size: 201 kB

ℹ️ View Unchanged | Filename | Size | | :--- | :---: | | `./build/53.js` | 1.08 kB | | `./build/index.css` | 878 B | | `./build/index.js` | 126 kB | | `./build/marketing.js` | 58.3 kB | | `./build/payment-gateway-suggestions.css` | 1.24 kB | | `./build/payment-gateway-suggestions.js` | 6.57 kB | | `./build/plugins.js` | 3.93 kB | | `./build/style-index.css` | 2.15 kB | | `./build/style-marketing.css` | 800 B |

compressed-size-action