Skip to content

Pay for Order

Send customers a payment link for unpaid WooCommerce orders. They pay on Square Hosted Checkout — no card form on your order-pay page.

  1. Open WooCommerce → Orders and edit an unpaid order.
  2. Under billing details, use:
  3. Email payment link to customer — sends via WordPress mail
  4. Copy payment link — share manually
  5. You can also use Order actions → Email Square payment link to customer.

Customer experience

  1. Customer opens the secure order-pay link.
  2. They click Pay and complete payment on Square.
  3. They return to your site when done.
  4. Order status updates to Processing after Square confirms payment.

!!! note This flow avoids common on-site Square errors (e.g. EMPTY_VALUE on order-pay pages) because there is no embedded card form.

REST API / automation

Admins can automate payment links via the REST API namespace shc4wc/v1:

  • GET /wp-json/shc4wc/v1/status
  • POST /wp-json/shc4wc/v1/orders/{id}/send-payment-link

Developer hook: shc4wc_pay_for_order_email_sent