# Detect a payment

Request payments can be detected easily, thanks to the integration of The Graph.

Our [payment-subgraphs](https://github.com/RequestNetwork/payments-subgraph) indexes Request's proxy smart contracts and allow you to query payment data easily.

Other methods are available to detect a payment by simply watching the Proxy Smart Contract used for payment. Payment transactions include a `paymentReference` that links them to the request.


---

# 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://legacy.docs.request.network/advanced/request-network-sdk/sdk-guides/payment/detect-a-payment.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.
