Square Order Checkout

Applies to: Checkout API | Orders API

Learn how to create a checkout for a Square order.

Link to section


An application can generate a checkout page by specifying an order in a CreatePaymentLink request (see Checkout API). The following example request specifies an Order object. For simplicity, the example specifies four ad hoc line items.

You can also use catalog items. Note that the catalog_object_id refers to the CatalogItemVariation ID that’s associated with a particular line item in a transaction. For more information, see Create Orders.

Create payment link

After receiving the requests, Square creates an order, creates a checkout page, and returns the order_id and URL to the checkout page in the response. The following is an example response:

Applications can use the order ID to access the order details using the Orders API (RetrieveOrder endpoint).

The application can send the payment link to the buyer. The buyer experience is identical to what is described in Quick Pay Checkout.

Link to section

See also

On this page