Transaction Status Check

Use this API to check the status of initialized transaction

GET https://checkout.finzen.money/api/v1/payment/transaction/{transaction_id}/status

Headers

Name
Type
Description

MerchantId*

String

Merchant ID, Can be found under Accounts in User Menu

AccessToken*

String

API Token, Can be generated from dashboard, See the Authentication page for more information

Request Body

Name
Type
Description

transaction_id*

String

Transaction ID that was received in response to Initialize Transaction Set this as path parameter in URL

{
    "status": true,
    "message": "Transaction retrieved successfully",
    "data": {
        "payment_id": "<payment_id>",
        "merchant_email": "<merchant_email>",
        "merchant_id": "<merchant_id>",
        "status": "Success", // Can be Initialized, Success, Failed Or Dropped
        "status_flag": 1, // 1 in case of Success otherwise 0
        "payment_mode": "<payment_method_used>",
        "rrn": "<bank_rrn_no>",
        "order": {
            "order_id": "<order_id>",
            "product_name": "<product_name>",
            "gross_amount": 10,
            "gateway_fee": 0.2,
            "currency": "INR",
            "tax": 0.036
        },
        "customer": {
            "name": "<customer_name>",
            "email_id": "<customer_email>",
            "mobile_no": "<customer_mobile>"
        },
        "shipping": {
            "address": null,
            "city": null,
            "state": null,
            "country": null,
            "pincode": null
        },
        "billing": {
            "address": null,
            "city": null,
            "state": null,
            "country": null,
            "pincode": null
        },
        "custom_field_1": "<custom_field_1>",
        "custom_field_2": "<custom_field_2>",
        "custom_field_3": "<custom_field_3>",
        "custom_field_4": "<custom_field_4>",
        "custom_field_5": "<custom_field_5>",
        "date": "<txn_date>",
        "signature": "<signature_value>"
    }
}

Signature Generation

Initialize dataString as an empty string

Remove the 'signature' key from requestBody if available

Define function getArrayValues(requestBody, dataString):
    For each key-value pair in requestBody:
        If value is an array:
            Call getArrayValues(value, dataString)
        Else:
            Append value + '|' to dataString
    Return dataString

Call getArrayValues(requestBody, dataString)
Append '#' to dataString

Generate signature as HMAC-SHA512 hash of dataString using apiSecret as the key

API Secret is generated along with API Token, See Authentication page for more information

Last updated