Cancel or Complete Payments
Learn to complete and cancel payment using payment ID and idempotency key.
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 theautocompletefield is not set, the payment is set to complete immediately after they are created.
- 
APPROVED: If the ...
 Ask