square api webhook payment.updated code example Example: square webhook payment.update types APPROVED, COMPLETED, CANCELED, or FAILED.