Square Order Checkout

Applies to: Checkout API | Orders API

Learn how to create a checkout for a Square order.

Link to section

Overview

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. 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