βœ…Status

Good to know: Before you begin, make sure you have obtained the login and password from the administrator. These credentials are required to authenticate and successfully execute the API requests.

Get payment status

After making a payment, you must request the status of the status of this payment every 10 seconds, until you receive a Reject or Charge.

To retrieve the payment status based on the order number, you need to call the endpoint https://{url}.finipay.kg/api/v1.1.0/status.

{
    "orderNumber":"89832199",
    "language":"en"
}

Returns status of transaction

GET https://{url}.finipay.kg/api/v1.1.0/status

Request Body

Name
Type
Description

orderNumber*

string

Order number generated by EPG after the registration of the order (the same as the token parameter).

language

string

Language code in the ISO 639-1 format. If unspecified, SmartVista E-commerce Payment Gateway uses the default language from the settings of the user used to process the merchant's payments. Error messages are returned in this language.

{
    "code": "200",
    "message": "PAYMENT_SUCCESS",
    "data": {
        "orderNumber": "Fp00000116261320",
        "amount": 500.00,
        "status": "CHARGE",
        "currency": "EUR"
    }
}

Code samples

Here are the code snippets for making a POST request to the specified endpoint using different programming languages. Please make sure to replace 'your_username' and 'your_password' with your actual credentials.

<?php

$endpoint = 'https://{url}.finipay.kg/api/payment';
$username = 'your_username';
$password = 'your_password';

$data = [
    'orderId' => '8983219622',
    'language' => 'en'
];

$options = [
    'http' => [
        'header' => "Content-type: application/json\r\n",
        'method' => 'POST',
        'content' => json_encode($data),
        'header' => "Authorization: Basic " . base64_encode($username . ":" . $password) . "\r\n"
    ]
];

$context = stream_context_create($options);
$response = file_get_contents($endpoint, false, $context);

if ($response === false) {
    echo 'Error occurred while making the request.';
} else {
    echo $response;
}

?>

Last updated