# How to integrate

Use these query parameters to pre-fill and customize the Pretium Checkout when using the iframe.

**Required parameters**

| Parameter      | Type   | Description                                          | Example       |
| -------------- | ------ | ---------------------------------------------------- | ------------- |
| amount         | Number | Amount in fiat/local currency                        | 1000          |
| currency\_code | String | 3-letter ISO 4217 fiat currency code                 | KES, MWK, GHS |
| checkout\_ref  | String | Your unique checkout reference                       | chk\_01hxyz   |
| order\_id      | String | Your internal order ID (will be returned in webhook) | ORD-2025-123  |

**Quick Start (Copy-Paste Integration)**

Retrieve the checkout key from your merchant dashboard and pass it as your checkout\_ref.

<figure><img src="/files/PGTffSZNpap00wHHKoUt" alt=""><figcaption></figcaption></figure>

Add this single tag to your checkout or payment page:

```html
<iframe
  src="https://checkout.pretium.africa?amount=30&currency_code=KES&checkout_ref=jdhdyeere&order_id=123"
  width="100%"
  height="600px"
  frameborder="0"
  >
</iframe>
```

Full Example URL:

```

  https://checkout.pretium.africa?amount=30&currency_code=KES&checkout_ref=kwe2213w&order_id=123

```

**Webhook / Callback (Recommended)**

```*
callback-url?order_id=your_order_id
```

Use this to:

* Mark the order as paid
* Send receipt email


---

# Agent Instructions: 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://docs.checkout.pretium.africa/integration/how-to-integrate.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.
