Search⌘ K
AI Features

Cancel or Complete Payments

Understand the workflow of Square payments including approved, completed, canceled, and failed statuses. Learn to create payments with manual approval, then cancel or complete those payments using their payment ID or idempotency key. This lesson guides you through managing the payment lifecycle effectively with Square API.

The possible statuses of payments are APPROVED, COMPLETED, CANCELED, or FAILED. Let’s try to understand the workflow of Square payments:

  • COMPLETED: If the autocomplete field is set to true in the CreatePayment request, the payment is processed immediately, and the resulting Payment object has the status field set to COMPLETED. This is also the default behavior. It means that if the ...