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.

Automatic payment reminders

Automatically email customers who have not paid yet. Each reminder includes the same Square Hosted Checkout payment link as manual Pay for Order.

WooCommerce gateway settings — Payment reminders toggle and reminder intervals (24, 72, 168 hours)

Enable reminders

  1. Go to WooCommerce → Settings → Payments → Payments Square Connect.
  2. Under Payment reminders, check Send payment reminder emails for unpaid orders.
  3. Set how many hours to wait before each reminder:
  4. First reminder — default 24 hours after the order (or after the last reminder)
  5. Second reminder — default 72 hours after the first; set 0 to disable
  6. Third reminder — default 168 hours (7 days) after the second; set 0 to disable
  7. Click Save changes.

Reminders run on an hourly schedule. Each sent reminder is logged on the order notes.

Which orders get reminders?

  • Status Pending or On hold, still needing payment
  • Billing email present
  • Payment method Payments Square Connect, or a payment link was already emailed from the order screen

Developer hook: shc4wc_payment_reminder_sent

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