Dashboard

The Simulate Bank Transfer endpoint is used to simulate a bank transfer transaction. It allows developers to test the bank transfer functionality during the development phase of integrating the Payment Gateway. Developers are required to select the bank transfer method at the payment checkout stage before making the request to this endpoint.

Request

METHOD: POST

☑️

Endpoint: https://api.hydrogenpay.com/bepay/api/v1/Payment/simulate-bank-transfer

Request Parameters

In the table below, the required parameters for the request body are listed:

ParameterTypeDescription
clientTransactionRefStringA unique reference for the client’s transaction.
currencyStringThe currency in which the transaction is being made.
amountStringThe amount to be transferred.

Headers

HeaderValue
Mode19289182

Sample Request

{
  "clientTransactionRef": "30002699_842650ef22",
  "currency": "NGN",
  "amount": "71000"
}

Response Parameters

FieldTypeDescription
statusCodeStringThe status code of the operation.
messageStringA message describing the result of the operation.
dataObjectAn object containing details of the transaction.
orderIdStringThe unique order identifier.
merchantRefStringThe merchant reference number.
transactionIdStringThe unique identifier for the transaction.
amountStringThe transaction amount.
customerEmailStringThe email address of the customer.
descriptionStringDescription of the transaction.
callBackUrlStringCallback URL for the transaction, if any.
otpOrBankTransferTimeoutLeftIntegerTimeout left for OTP or bank transfer.
isRecurringBooleanIndicates if the transaction is recurring.
totalAmountStringTotal amount of the transaction.
discountAmountStringDiscount amount applied to the transaction.
paymentIdStringPayment identifier.
currencyStringCurrency of the transaction.
discountPercentageIntegerDiscount percentage applied.
isCardSpecificDiscountBooleanIndicates if a card-specific discount is applied.
isBankDiscountEnabledBooleanIndicates if a bank discount is enabled.
vatFeeStringVAT fee applied to the transaction.
vatPercentageIntegerVAT percentage applied to the transaction.

Sample Response

{
    "statusCode": "90000",
    "message": "Operation Successful",
    "data": {
        "orderId": "30002699_842650ef22",
        "merchantRef": "30002699",
        "transactionId": "71680000-744b-e63a-3013-08dc911b3bff",
        "amount": "71,000.00",
        "customerEmail": "[email protected]",
        "description": "test desc",
        "isRecurring": false,
        "totalAmount": null,
        "discountAmount": null,
        "paymentId": "success-success-success-HYDR171888257983564894",
        "currency": "NGN",
        "discountPercentage": 0,
        "isCardSpecificDiscount": false,
        "isBankDiscountEnabled": false,
        "vatFee": null,
        "vatPercentage": 0
    }
}

Notes:

  • The Mode header is required and must be set to 19289182.
  • This endpoint is intended for testing purposes only during the development phase.
  • The response provides essential information about the simulated bank transfer, including transaction details, status, and any applicable fees or discounts.