Get payment details

This endpoint retrieves the details of a specific payment by providing the payment ID in the endpoint URL.

GET: /v1/payment/:payment_reference

Params

Name
Type
Description

payment_reference

String

The payment reference that was generated when initializing payment

Headers

Name
Type
Description

public-key

String

Your Redstone public key

secret-key

String

Your Redstone secret key

Response

The response will be in JSON format and will have the following schema:

```json
{
    "status": "success",
    "code": 200,
    "message": "success",
    "data": {
        "id": "",
        "amount": 143,
        "type": "payment",
        "method": "mobilemoney",
        "status": "pending",
        "currency": "ZMW",
        "reference": "",
        "business_id": "",
        "created_at": "2024-11-06T10:14:31.888324Z",
        "environment": "test",
        "redirect_url": "http://www.google.com",
        "email": "[email protected]",
        "customer_first_name": "",
        "customer_last_name": "",
        "phone_number": ""
    }
}
```

Last updated