Create a dynamic virtual account
Learn how to create a dynamic virtual account.
Bank Transfer
This API is used to create a dynamic virtual account. It’s important to verify all transactions before updating your customer about the status of their payment to ensure accurate and timely information.
Request parameter
To get started with the Bank Transfer API, initialize a transaction using the example request described above.
You are required to pass several parameters as part of the request. Required parameters include amount, transactionRef, currency, and customerEmail.
In the sandbox environment, the virtual account returned is static and will always respond with Bank Transfer Succeeded and a 200 status code.
In the production environment, a unique virtual account is generated for the customer to transfer funds into. If the payment has not yet been confirmed by the processor, calling the endpoint confirm-status?transactionRef=exampleRef will return a pending status.
To confirm bank transfer on sandbox, use this endpoint
https://adapter.cepta.co/api/v1/pay/simulate-notification?transactionRef=exampleRef. Use the confirm transaction in production.
Below is a list of request parameters accepted for the purchase API.
Unique reference for the transaction.
Email of the customer making the purchase.
Amount to be charged
Currency of the transaction (“NGN”).
Ensure secure handling of md (merchant data) and token to maintain transaction integrity.
Confirm transfer API Response
A sample response of what to expect when a call is made to confirm API status
Handling successful API response.
When a transaction has been initiated successfully, the API returns response data that can be used to update the customer about the current stage of their transaction.
Below is the list of responses you can expect and their usage:
Indicates if the request was successful.
Descriptive message about the result.
Contains detailed transaction status.