Create a Payment

Overview

Whenever we buy something, we need to make a payment. We can make the payment via different channels depending upon the nature of the purchase. For example,

  • Online payment: The buyer visits the seller’s web or mobile application and makes payment within that application.
  • In-person payment: The buyer pays at the seller’s physical location using the seller’s POS device, for example, an iPad.

The Square Payments API provides the CreatePayment endpoint which can be used to either direct Square to take payments or record payments processed outside of Square. In either case, a create_payment call results in the creation of a Payment object and returns it in the response. The parameters that the create_payment method accepts are listed below:

Get hands-on with 1400+ tech skills courses.