# Payment

> Source: https://developers.cloud66.com/v3/webhooks/payment/

## Payment Done

URL: https://developers.cloud66.com/v3/webhooks/payment/#payment-done
Event type: payment.done

This webhook is sent when a payment is successfully processed for an account. The payload includes the timestamp, event type, and the amount that was charged.

### Payload

```json
{
  "timestamp": 1640995200,
  "event_type": "payment.done",
  "charged_amount": "$29.00"
}
```

---

## Payment Failed

URL: https://developers.cloud66.com/v3/webhooks/payment/#payment-fail
Event type: payment.fail

This webhook is sent when a payment fails to process. The payload includes the timestamp, event type, the amount that failed to be charged, and the reason for the failure.

### Payload

```json
{
  "timestamp": 1640995200,
  "event_type": "payment.fail",
  "charged_amount": "$9.00",
  "reason": "Your credit card company is not accessible"
}
```
