Transfer

This payment method allows your customers to make payments through bank transfer.

Before you begin

Ensure you have your public key. You can find this on the SeerBit Merchant dashboard under accounts > api keys. If you don’t have an account with us yet, you can create a test account now

Initialising a transfer Payment

For the full specification, see our API Reference
Request Sample
The code snippet below shows an example request for generating a bank account number to complete a payment
1curl --location 'https://seerbitapi.com/api/v2/payments/initiates' \
2--header 'Content-Type: application/json' \
3--header 'Authorization: Bearer YOUR_ENCRYPTION_KEY' \
4--data-raw '{
5    "publicKey":"YOUR_PUBLIC KEY",
6    "amount":"100",
7    "fullName": "Jane Doe",
8    "mobileNumber": "0887522256",
9    "email":"youremail@domain.com",
10    "currency": "NGN",
11    "country": "NG",
12    "paymentReference": "dsffererer",
13    "callbackUrl": "http://checkout-seerbit.surge.sh",
14    "redirectUrl": "http://checkout-seerbit.surge.sh",
15    "paymentType": "TRANSFER"
16}'
1var request = require('request');
2var options = {
3  'method': 'POST',
4  'url': 'https://seerbitapi.com/api/v2/payments/initiates',
5  'headers': {
6    'Content-Type': 'application/json',
7    'Authorization': 'Bearer YOUR_ENCRYPTION_KEY'
8  },
9  body: JSON.stringify({
10    "publicKey": "YOUR_PUBLIC KEY",
11    "amount": "100",
12    "fullName": "Jane Doe",
13    "mobileNumber": "0887522256",
14    "email": "youremail@domain.com",
15    "currency": "NGN",
16    "country": "NG",
17    "paymentReference": "dsffererer",
18    "callbackUrl": "http://checkout-seerbit.surge.sh",
19    "redirectUrl": "http://checkout-seerbit.surge.sh",
20    "paymentType": "TRANSFER"
21  })
22
23};
24request(options, function (error, response) {
25  if (error) throw new Error(error);
26  console.log(response.body);
27});
1<?php
2
3$curl = curl_init();
4
5curl_setopt_array($curl, array(
6  CURLOPT_URL => 'https://seerbitapi.com/api/v2/payments/initiates',
7  CURLOPT_RETURNTRANSFER => true,
8  CURLOPT_ENCODING => '',
9  CURLOPT_MAXREDIRS => 10,
10  CURLOPT_TIMEOUT => 0,
11  CURLOPT_FOLLOWLOCATION => true,
12  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13  CURLOPT_CUSTOMREQUEST => 'POST',
14  CURLOPT_POSTFIELDS =>'{
15    "publicKey":"YOUR_PUBLIC KEY",
16    "amount":"100",
17    "fullName": "Jane Doe",
18    "mobileNumber": "0887522256",
19    "email":"youremail@domain.com",
20    "currency": "NGN",
21    "country": "NG",
22    "paymentReference": "dsffererer",
23    "callbackUrl": "http://checkout-seerbit.surge.sh",
24    "redirectUrl": "http://checkout-seerbit.surge.sh",
25    "paymentType": "TRANSFER"
26    
27    }',
28  CURLOPT_HTTPHEADER => array(
29    'Content-Type: application/json',
30    'Authorization: Bearer YOUR_ENCRYPTION_KEY'
31  ),
32));
33
34$response = curl_exec($curl);
35
36curl_close($curl);
37echo $response;
Response Sample
The code snippet below shows an example response showing bank account details
1{
2    "status": "SUCCESS",
3    "data": {
4        "code": "00",
5        "payments": {
6            "paymentReference": "dsfr55266tyt5554y166",
7            "walletName": "SEERBIT(Merchant Name)",
8            "wallet": "9979878249",
9            "bankName": "Providus Bank",
10            "accountNumber": "9979878249"
11        },
12        "message": "ACCOUNT OPENED SUCCESSFULLY"
13    }
14}
Need something else?
If you have any questions or need general help, visit our support page
Signup for developer update
You can unsubscribe at any time. Read our privacy policy.