woocommerce / woocommerce-square

Square POS and Payments Integration
https://woo.com/products/square
Other
10 stars 4 forks source link
transact

Square for WooCommerce

Getting Started

  1. Make sure you have git, node, npm installed..
  2. Clone this repository locally within the plugins directory of WordPress.
  3. Run nvm use from the root directory of the repository to install the correct version of Node JS.
  4. Run npm install from the root directory of the repository to install dependencies.
  5. Execute npm run build from the root directory of the repository.
  6. Now go to the local installation, and activate this plugin.
  7. Signup for a Square sandbox account and input your App ID and Access Token
  8. From the dropdown box for location, choose a location(The default value is Default Test Account).
  9. Save.
  10. The Square Merchant Account's country should match the WooCommerce store's country and currency for this to work.
  11. Now, you can create items on Square and push them to WooCommerce or ViceVersa.
  12. Enable Square as a payment gateway from the Woocommerce->Settings->Payments page.
  13. Now, you can use the test cards here for testing Square credit card payments.

More documentation.

API

The documentation for the API endpoints can be found here

You can also explore the Square API from here

Repository

Deployment

A "deployment" in our sense means:

Branches

Coding Standards

This project is moving towards WooCommerce coding standards, though currently, it is not strictly enforced. Please respect these standards and if possible run appropriate IDE/editor plugins to help you enforce these rules.

Testing

We are striving to subject this extension to tests at various levels. They are works in progress. The following will be updated as there is progress. Do check with us if you want to contribute in some way towards these. TBD - Travis Integration TBD - Unit Testing TBD - E2E Testing

Compatibility

This extension is compatible with:

Contribution

Contribution can be done in many ways. We appreciate it.