> For the complete documentation index, see [llms.txt](https://docs.p-link.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.p-link.io/payment-status/payment-status.md).

# Payment Status

## Checking payment status

### Status verification

After payment, the user is redirected to your URL with added parameter:

```
?idPayment=[numeroDeTransaction]
```

You can then query the URL:

```
https://p-link.io/api/trxState/<paymentID>
```

This URL will return the information about this payment in the form of a json structure

```json
{
"result": 2,
"trx": "39M3...V8jt",
"amount": 9.99,
"sourcePayment": "4n9a...h77v",
"receiverPayment": "FPnf...P6p4"
}
```

### Possible values of `result` :

* `0` : Payment not started
* `1` : Failure
* `2` : Success
