# Direct Pay

- [1. Generate Merchant Keys](https://checkoutdocs.oneglobal.com/direct-pay/1.-generate-merchant-keys.md): For direct pay integration merchant should have RSA public key. this endpoint to be used to generate the RSA key.
- [2. Validate Request](https://checkoutdocs.oneglobal.com/direct-pay/2.-validate-request.md)
- [3. Initiate Pay](https://checkoutdocs.oneglobal.com/direct-pay/3.-initiate-pay.md): After validating the merchant request, This API is used to process payment requests securely by encrypting card data using AES and RSA encryption.
- [4. Process Payment](https://checkoutdocs.oneglobal.com/direct-pay/4.-process-payment.md): The ProcessPayment request is used 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://checkoutdocs.oneglobal.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.
