Payments API and Refunds API Webhooks
The Payments API and Refunds API support a set of webhooks. You can subscribe to these webhook events to get notified when there are changes. For a list of supported webhooks, see Subscribe to Events. Note the following about these webhooks:
Payment.created event notification is sent when:
A card payment is taken by a seller through other means, such as the POS application and invoices.
payment.updated event is generated when the state of a card payment changes. For example, in a delayed capture
scenario, the payment is only authorized. Later, when you call CompletePayment (or CancelPayment), the payment state changes. In addition, if an authorized payment is not completed (or canceled) within the time limit, the payment automatically gets voided (Square cancels the payment) and you get the
payment.updated event notification.
When you refund a payment (using the RefundPayment endpoint), you get the following event notifications:
Refund.createdinitially indicates that the task is pending. Later, you get the
refund.updatedevent after the refund completed or failed.
payment.updatedevent notification. The
Paymentobject in the notification includes the refund ID.
refund.updated event is sent any time a refund state changes.