Square Payments + POS Sync
Edition: CS-Cart & Multi-Vendor · Latest version: 1.0.0 · Compatible with: CS-Cart & Multi-Vendor 4.17.2 – 4.22.x, PHP 7.4 – 8.3 · Changelog: view
Take cards, Apple Pay and Google Pay at checkout with your own Square account, capture and refund from the order, and keep stock in step with your Square point of sale.
What it does
Section titled “What it does”- Payments. Square is offered as a payment method. The customer pays on a secure page that uses the Square Web Payments SDK: card form, Apple Pay and Google Pay (each shown only where it is available). Card details go straight to Square; the shop only receives a one-time token.
- Strong customer authentication. The buyer’s details are sent with the card token so Square can run a 3-D Secure challenge where the card or the region needs one.
- Safe by design. The payment is created on the server with an idempotency key that is saved first. If the answer is lost the payment is found again by its reference instead of being charged twice. Every payment is read back from Square before an order is marked paid; webhooks only trigger that check.
- Sale or authorize. Charge at once, or authorize and capture or void from the order page.
- Refunds. Full or partial from the order page, or automatically when an order reaches a status you choose. Refunds made in the Square Dashboard show up on the order.
- POS sync. Products are linked with the items in your Square location by SKU. Stock changes on both sides are merged (a sale at the counter and a sale online both count), optionally with CS-Cart prices pushed to Square.
- POS orders. Optionally import completed Square orders as CS-Cart orders, so counter sales appear in your order list without decreasing stock twice.
- Connection. Your own Square account: a personal access token or “Connect with Square” (OAuth with your own Square application); test (sandbox) and live mode; credentials stored encrypted.
- A job queue with automatic retries and rate-limit handling, a log with filters and CSV export, webhooks with signature verification.
- Multi-Vendor: the marketplace owner’s Square account takes the payments by default (owner mode); with owner mode off each vendor connects their own Square account, which is also how the POS sync works in Multi-Vendor.
Built and tested against Square’s documented API (see Developer notes for every endpoint and field with its source). It has not been run against a live Square account.
Compatibility
Section titled “Compatibility”- CS-Cart and Multi-Vendor 4.17.2 to 4.21.x, all four editions (CS-Cart, CS-Cart Ultimate, Multi-Vendor, Multi-Vendor Ultimate).
- PHP 7.4 to 8.3, depending on your CS-Cart version.
- The queue needs a cron job (a command line or a secret web address; see Configuration).
- Square accounts in the countries where Square takes online card payments; Apple Pay needs Safari on a verified HTTPS domain.
Next steps
Section titled “Next steps”Square is a trademark of Block, Inc. This add-on is independent software that works with Square’s public API; it is not affiliated with, endorsed by or sponsored by Square.