Pay for Orders

Follow step-by-step instructions to pay for orders using the Payments and Orders APIs.

The Orders API not only provides the functionality to create and retrieve orders, but it also provides us with methods to pay for orders. The following PayOrder endpoint can be used to pay for orders:

https://connect.squareupsandbox.com/v2/orders/<order-id>/pay

Pay for an order using multiple payments

We can use the PayOrder endpoint to pay for an order using multiple payments. These multiple payments are made using the CreatePayment endpoint.

We begin by creating an order first. After the order has been created, we need to make multiple payments totaling the order amount. Finally, we'll use the PayOrder endpoint to pay for the order by recording those payments.

Request parameters

Let's have a look at the request parameters that this endpoint accepts: ... ...