Dashboard

Payment Confirmation is a functionality within the payment gateway integration that enables businesses to verify the status of initiated payments. This process utilizes the transaction reference to retrieve the specified payment's current status (e.g., success, failed, pending).

Businesses can seamlessly confirm the payment outcome through the payment gateway by using the transaction reference, enhancing transparency and facilitating efficient payment tracking.

Request

METHOD: POST

Endpoint: https://api.hydrogenpay.com/bepay/api/v1/Merchant/confirm-payment

Body parameters

MandatoryTypeNameComment
YesStringtransactionRefTransaction Ref that is returned on
callback

Missing Field Response

FieldTypeValue
statusCodeString400
successBooleanfalse
messageStringValidation Failed
errorObjectList of validation errors

Invalid Transaction ID

FieldTypeValue
statusCodeInteger10001
messageStringNo record found
dataObjectnull

Success Field Response

FieldTypeValue
statusCodeInteger90000
messageStringOperation Successful
dataObjectDetails of the transaction

Success Response

FieldTypeDescription
statusCodeStringStatus code of the API call, indicating success
messageStringMessage indicating the result of the API call
dataObjectContains details of the transaction
idStringUnique identifier for the transaction
amountDecimalTotal amount of the transaction
chargedAmountDecimalAmount charged for the transaction
currencyStringCurrency of the transaction
customerEmailStringEmail of the customer.
narrationStringAdditional notes or narration (if any)
statusStringCurrent status of the transaction. Possible values are: Pending, Failed, and Paid.
transactionRefStringReference code for the transaction, useful for tracking and identification.
processorResponseStringResponse from the payment processor.
createdAtDateTimeThe timestamp when the transaction was created.
paidAtDateTimeThe timestamp when the transaction was done.
ipStringThe IP address from which the transaction was initiated.
paymentTypeStringThe method of payment used for the transaction (e.g., Card or BankTransfer).
authorizationObjectObectContains details related to the authorization of the transaction.
feesDecimalFees associated with the transaction

Sample Request

{
  "transactionRef": "503002801229_6669939140"
}

Sample Response

{
    "statusCode": "90000",
    "message": "Operation Successful",
    "data": {
        "id": "a7450000-9356-eead-9167-08dcbe986d82",
        "amount": 70.00,
        "chargedAmount": 70.00,
        "currency": "NGN",
        "customerEmail": "[email protected]",
        "narration": "Demo test",
        "description": "Demo test",
        "status": "Paid",
        "transactionStatus": "Paid",
        "transactionRef": "30002699_152427cc15",
        "processorResponse": null,
        "createdAt": "2024-08-17T08:41:46.1347675",
        "paidAt": "2024-08-17T08:41:46.1347675",
        "ip": "102.88.83.108",
        "paymentType": "Card",
        "authorizationObject": null,
        "fees": 0.00,
        "vat": 0.00,
        "meta": "Test Modes",
        "recurringCardToken": "",
        "metadata": null
    }
}