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 theautocompletefield is set totruein the CreatePayment request, the payment is processed immediately, and the resulting Payment object has thestatusfield set toCOMPLETED. This is also the default behavior. It means that if the ...