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

# add_payment_info Event

> Track when a customer enters payment details during checkout

Fires when a customer enters payment details during checkout. This is the last step before purchase and indicates very high purchase intent.

<Note>
  **Shopify:** Automatically tracked when customers complete the payment step in checkout.
</Note>

## JavaScript

```javascript theme={null}
window._upstack('track', 'add_payment_info', {
  items: [
    { id: 'SKU_12345', name: 'Classic Cotton Tee', price: 34.99, quantity: 2 }
  ],
  value: 84.97,
  currency: 'USD',
  paymentType: 'credit_card'
});
```

## Properties

| Property    | Type   | Required | Description                                                      |
| ----------- | ------ | -------- | ---------------------------------------------------------------- |
| items       | array  | No       | Products in checkout                                             |
| value       | number | No       | Cart value at payment step                                       |
| currency    | string | No       | ISO 4217 currency code                                           |
| paymentType | string | No       | Payment method (e.g., `'credit_card'`, `'paypal'`, `'shop_pay'`) |

## When to Fire

* Payment form completion
* Payment method selection
* Before final order submission

## Related Events

* [add\_shipping\_info](/pixel/events/add-shipping-info) — Previous checkout step
* [purchase](/pixel/events/purchase) — When order is completed
