# Direct Pay

- [1. Generate Merchant Keys](https://kwpaydocs.casheer.com/direct-pay/1.-generate-merchant-keys.md): A merchant should have an RSA public key in order to integrate direct pay. The RSA key will be generated using this endpoint.
- [2. Validate Request](https://kwpaydocs.casheer.com/direct-pay/2.-validate-request.md)
- [3. Initiate Pay](https://kwpaydocs.casheer.com/direct-pay/3.-initiate-pay.md): Once the merchant request has been verified, this API is used to safely handle payment requests by encrypting card data using AES and RSA encryption.
- [4. Process Payment](https://kwpaydocs.casheer.com/direct-pay/4.-process-payment.md): Use the ProcessPayment request to initiate a payment process for a given ReferenceId.


---

# 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://kwpaydocs.casheer.com/direct-pay.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.
