> For the complete documentation index, see [llms.txt](https://kwpaydocs.casheer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kwpaydocs.casheer.com/direct-pay.md).

# 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.
