> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xpaycheckout.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Success

> This event indicates that the payment intent has been successfully processed and the payment is complete.

<ResponseExample>
  ```json theme={null}
  {
    "eventId": "whe_fooD944t4VUKkaDT",
    "eventType": "intent.success",
    "eventTime": 1729608043615,
    "intentId": "in_fooBOwYsaK50AEfK",
    "receiptId": "recp_123311",
    "status": "SUCCESS",
    "amount": 100,
    "currency": "USD",
    "paymentMethod": "CARD",
    "customerDetails": {
      "name": "John Doe",
      "email": "john@doe.com",
      "contactNumber": "+919123456789",
      "customerAddress": {
        "addressLine1": "123 Main St",
        "addressLine2": "Apt 1",
        "city": "New York",
        "state": "NY",
        "country": "US",
        "postalCode": "10001"
      }
    },
    "card": {
      "brand": "visa",
      "country": "US",
      "lastFourDigit": "4242",
      "expiryMonth": 4,
      "expiryYear": 2044,
      "cardType": "CREDIT"
    },
    "metadata": {
      "orderId": "12345",
      "customerNote": "Deliver after 5 PM"
    }
  }
  ```
</ResponseExample>

<ResponseField name="eventId" type="string">
  A unique identifier for this specific event. This ensures that each event can
  be tracked and processed individually.
</ResponseField>

<ResponseField name="eventType" type="string">
  Describes the type of event. In this case, it signifies that a payment intent
  is successful.
</ResponseField>

<ResponseField name="eventTime" type="integer">
  The timestamp when the event was generated, typically in milliseconds since
  the Unix epoch (January 1, 1970). This value can be used to track when the
  event occurred.
</ResponseField>

<ResponseField name="intentId" type="string">
  A unique identifier for the specific payment intent. This ID ties the event
  back to a particular transaction or payment process that triggered the event.
</ResponseField>

<ResponseField name="receiptId" type="string">
  Your identifier of the order.
</ResponseField>

<ResponseField name="status" type="string">
  Represents the current status of the payment intent. For this event, the
  status will be `SUCCESS`.
</ResponseField>

<ResponseField name="amount" type="integer">
  The amount involved in the transaction, typically expressed in the smallest
  unit of the currency. Here, 100 represents 1.00 USD (because USD typically
  uses two decimal places).
</ResponseField>

<ResponseField name="currency" type="string">
  The currency used for the transaction. In this case, it is United States
  Dollars (USD).
</ResponseField>

<ResponseField name="paymentMethod" type="string">
  The payment method used for the transaction. [supported payment
  methods](/get-started/payment-methods-supported#payment-method-enums)
</ResponseField>

<ResponseField name="customerDetails" type="object">
  Contains information about the customer who made the payment:

  * **name**: The full name of the customer
  * **email**: The email address of the customer
  * **contactNumber**: The contact phone number of the customer, in [E.164 format](https://en.wikipedia.org/wiki/E.164)
  * **customerAddress**: The customer's address, containing:
    * **addressLine1**: Line 1 of the customer's address
    * **addressLine2**: Line 2 of the customer's address
    * **city**: City of the customer's address
    * **state**: State of the customer's address
    * **country**: Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))
    * **postalCode**: Postal code
</ResponseField>

<ResponseField name="card" type="object">
  Contains details about the card used for the transaction:

  * **brand**: The brand of the card (e.g., `amex`, `diners`, `discover`, `jcb`, `mastercard`, `unionpay`, `visa`, `rupay`), among others.
  * **country**: The issuing country of the card.
  * **lastFourDigit**: The last four digits of the card number.
  * **expiryMonth**: The expiration month of the card.
  * **expiryYear**: The expiration year of the card.
  * **cardType**: The type of card funding (`CREDIT`, `DEBIT`, `PREPAID`, or `UNKWOWN`).
</ResponseField>

<ResponseField name="metadata" type="object">
  A collection of key-value pairs that were provided when the object was
  created. These metadata values are echoed back in the response, allowing you
  to store and retrieve custom information such as context-specific attributes,
  references, or tags. This can be useful for correlating records in your system
  or attaching meaningful context to transactions.
</ResponseField>
