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.
Send a payment link
- Open WooCommerce → Orders and edit an unpaid order.
- Under billing details, use:
- Email payment link to customer — sends via WordPress mail
- Copy payment link — share manually
- You can also use Order actions → Email Square payment link to customer.
Customer experience
- Customer opens the secure order-pay link.
- They click Pay and complete payment on Square.
- They return to your site when done.
- 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/statusPOST /wp-json/shc4wc/v1/orders/{id}/send-payment-link
Developer hook: shc4wc_pay_for_order_email_sent