The Simulate Bank Transfer endpoint is used to simulate a bank transfer transaction. This is useful for testing the bank transfer functionality during the development phase. Developers must select the bank transfer method on the payment checkout before making the API call to this endpoint.

Request

METHOD: POST

☑️

Test URL: https://qa-api.hydrogenpay.com/bepayment/api/v1/Payment/simulate-bank-transfer

Request Parameters

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

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.
merchantInfoStringMerchant information, if any.
currencyInfoStringCurrency information, if any.
canRetryBooleanIndicates if the transaction can be retried.
timeoutLeftIntegerTime left for the transaction to complete.
callBackUrlStringCallback URL for the transaction, if any.
otpOrBankTransferTimeoutLeftIntegerTimeout left for OTP or bank transfer.
isRecurringBooleanIndicates if the transaction is recurring.
billingMessageStringBilling message, if any.
frequencyStringFrequency of the recurring transaction, if any.
isRecurringActiveBooleanIndicates if the recurring transaction is active.
serviceFeesStringService fees applied to the transaction.
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.
bankDiscountValueStringValue of the bank discount, if any.
bankDiscountedAmountStringAmount after bank discount, if any.
vatFeeStringVAT fee applied to the transaction.
vatPercentageIntegerVAT percentage applied to the transaction.

Sample Request

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

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",
        "merchantInfo": null,
        "currencyInfo": null,
        "canRetry": null,
        "timeoutLeft": null,
        "callBackUrl": null,
        "otpOrBankTransferTimeoutLeft": null,
        "isRecurring": false,
        "billingMessage": null,
        "frequency": null,
        "isRecurringActive": null,
        "serviceFees": null,
        "totalAmount": null,
        "discountAmount": null,
        "paymentId": "success-success-success-HYDR171888257983564894",
        "currency": "NGN",
        "discountPercentage": 0,
        "isCardSpecificDiscount": false,
        "isBankDiscountEnabled": false,
        "bankDiscountValue": null,
        "bankDiscountedAmount": null,
        "vatFee": null,
        "vatPercentage": 0
    }
}