> For the complete documentation index, see [llms.txt](https://developers.doku.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.doku.com/accept-payments/doku-checkout/collect-customer-information.md).

# Collect Customer Information

Enable your checkout page to collect additional customer information, such as Name, Phone numbers, or Address directly within the payment flow. Activated via the request body when creating a checkout session.&#x20;

***

### Overview

By default, the checkout page collects only the payment details required to complete a transaction. Merchants can extend this by enabling `collect_customer` in the creation request. When enabled, the configured fields appear as a form step inside the checkout flow before payment is processed.

### How to Enable Customer Data Collection

Pass the `collect_customer` object inside your Request Body to Checkout Page

```json
...
"collect_customer": {
    "name": true,
    "email" : true,
    "phone" : true,
    "address" : true
  }
...
```

<table><thead><tr><th>Body Parameter</th><th width="122">Type</th><th>Mandatory</th><th valign="bottom">Description</th></tr></thead><tbody><tr><td><code>collect_customer.name</code></td><td><code>boolean</code></td><td>Optional</td><td valign="bottom">When set to <code>true</code>, a name input field is displayed on the checkout page, prompting the customer to enter their full name before proceeding to payment.</td></tr><tr><td><code>collect_customer.email</code></td><td><code>boolean</code></td><td>Optional</td><td valign="bottom">When set to <code>true</code>, an email input field is displayed on the checkout page. The collected email can be used for payment confirmation and receipt delivery.</td></tr><tr><td><code>collect_customer.phone</code></td><td><code>boolean</code></td><td>Optional</td><td valign="bottom">When set to <code>true</code>, a phone number input field is displayed on the checkout page. Useful for merchants who require contact information for order updates or delivery coordination.</td></tr><tr><td><code>collect_customer.address</code></td><td><code>boolean</code></td><td>Optional</td><td valign="bottom">When set to <code>true</code>, an address input field is displayed on the checkout page. Recommended for merchants with physical goods delivery that need a shipping destination at the point of payment.</td></tr></tbody></table>

### How The Checkout Preview

{% columns %}
{% column width="50%" %}

### Before

<figure><img src="/files/9otp0gUF7MtVwc59sjOS" alt="" width="563"><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="50%" %}

### After

<figure><img src="/files/SNE4q7HnMHeEz4TWZWW1" alt="" width="563"><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.doku.com/accept-payments/doku-checkout/collect-customer-information.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
