Charge Card
curl --request POST \
--url https://seerbitapi.com/api/v2/payments/charge \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"publicKey": "SBTESTPUBK_dhrpzbRpR34l6VmqkCFOKA94L5E1jSTu",
"amount": "10.00",
"fullName": "Diei Okechukwu Peter",
"mobileNumber": 8030540611,
"currency": "NGN",
"country": "NG",
"paymentReference": "NGN0000037Q35",
"email": "okechukwu.diei2@gmail.com",
"productId": "Foods",
"productDescription": "RASPBERRY",
"cardNumber": "5123450000000008",
"expiryMonth": "05",
"expiryYear": "21"
}
'import requests
url = "https://seerbitapi.com/api/v2/payments/charge"
payload = {
"publicKey": "SBTESTPUBK_dhrpzbRpR34l6VmqkCFOKA94L5E1jSTu",
"amount": "10.00",
"fullName": "Diei Okechukwu Peter",
"mobileNumber": 8030540611,
"currency": "NGN",
"country": "NG",
"paymentReference": "NGN0000037Q35",
"email": "okechukwu.diei2@gmail.com",
"productId": "Foods",
"productDescription": "RASPBERRY",
"cardNumber": "5123450000000008",
"expiryMonth": "05",
"expiryYear": "21"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
publicKey: 'SBTESTPUBK_dhrpzbRpR34l6VmqkCFOKA94L5E1jSTu',
amount: '10.00',
fullName: 'Diei Okechukwu Peter',
mobileNumber: 8030540611,
currency: 'NGN',
country: 'NG',
paymentReference: 'NGN0000037Q35',
email: 'okechukwu.diei2@gmail.com',
productId: 'Foods',
productDescription: 'RASPBERRY',
cardNumber: '5123450000000008',
expiryMonth: '05',
expiryYear: '21'
})
};
fetch('https://seerbitapi.com/api/v2/payments/charge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://seerbitapi.com/api/v2/payments/charge",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'publicKey' => 'SBTESTPUBK_dhrpzbRpR34l6VmqkCFOKA94L5E1jSTu',
'amount' => '10.00',
'fullName' => 'Diei Okechukwu Peter',
'mobileNumber' => 8030540611,
'currency' => 'NGN',
'country' => 'NG',
'paymentReference' => 'NGN0000037Q35',
'email' => 'okechukwu.diei2@gmail.com',
'productId' => 'Foods',
'productDescription' => 'RASPBERRY',
'cardNumber' => '5123450000000008',
'expiryMonth' => '05',
'expiryYear' => '21'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://seerbitapi.com/api/v2/payments/charge"
payload := strings.NewReader("{\n \"publicKey\": \"SBTESTPUBK_dhrpzbRpR34l6VmqkCFOKA94L5E1jSTu\",\n \"amount\": \"10.00\",\n \"fullName\": \"Diei Okechukwu Peter\",\n \"mobileNumber\": 8030540611,\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"paymentReference\": \"NGN0000037Q35\",\n \"email\": \"okechukwu.diei2@gmail.com\",\n \"productId\": \"Foods\",\n \"productDescription\": \"RASPBERRY\",\n \"cardNumber\": \"5123450000000008\",\n \"expiryMonth\": \"05\",\n \"expiryYear\": \"21\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://seerbitapi.com/api/v2/payments/charge")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"publicKey\": \"SBTESTPUBK_dhrpzbRpR34l6VmqkCFOKA94L5E1jSTu\",\n \"amount\": \"10.00\",\n \"fullName\": \"Diei Okechukwu Peter\",\n \"mobileNumber\": 8030540611,\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"paymentReference\": \"NGN0000037Q35\",\n \"email\": \"okechukwu.diei2@gmail.com\",\n \"productId\": \"Foods\",\n \"productDescription\": \"RASPBERRY\",\n \"cardNumber\": \"5123450000000008\",\n \"expiryMonth\": \"05\",\n \"expiryYear\": \"21\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://seerbitapi.com/api/v2/payments/charge")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"publicKey\": \"SBTESTPUBK_dhrpzbRpR34l6VmqkCFOKA94L5E1jSTu\",\n \"amount\": \"10.00\",\n \"fullName\": \"Diei Okechukwu Peter\",\n \"mobileNumber\": 8030540611,\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"paymentReference\": \"NGN0000037Q35\",\n \"email\": \"okechukwu.diei2@gmail.com\",\n \"productId\": \"Foods\",\n \"productDescription\": \"RASPBERRY\",\n \"cardNumber\": \"5123450000000008\",\n \"expiryMonth\": \"05\",\n \"expiryYear\": \"21\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"data": {
"code": "00",
"payments": {
"paymentReference": "NGN0100067Q35",
"linkingReference": "SEERBIT146140441602959589412",
"status": "CAPTURED"
},
"card": {
"bin": "512345",
"last4": "0008",
"token": "tk_edcac221-63e5-4baf-8846-4922af4a10e6"
},
"message": "APPROVED"
}
}NON 3DS PAYMENT
Charge Card
This payment option is used to charge non 3d transactions
POST
/
payments
/
charge
Charge Card
curl --request POST \
--url https://seerbitapi.com/api/v2/payments/charge \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"publicKey": "SBTESTPUBK_dhrpzbRpR34l6VmqkCFOKA94L5E1jSTu",
"amount": "10.00",
"fullName": "Diei Okechukwu Peter",
"mobileNumber": 8030540611,
"currency": "NGN",
"country": "NG",
"paymentReference": "NGN0000037Q35",
"email": "okechukwu.diei2@gmail.com",
"productId": "Foods",
"productDescription": "RASPBERRY",
"cardNumber": "5123450000000008",
"expiryMonth": "05",
"expiryYear": "21"
}
'import requests
url = "https://seerbitapi.com/api/v2/payments/charge"
payload = {
"publicKey": "SBTESTPUBK_dhrpzbRpR34l6VmqkCFOKA94L5E1jSTu",
"amount": "10.00",
"fullName": "Diei Okechukwu Peter",
"mobileNumber": 8030540611,
"currency": "NGN",
"country": "NG",
"paymentReference": "NGN0000037Q35",
"email": "okechukwu.diei2@gmail.com",
"productId": "Foods",
"productDescription": "RASPBERRY",
"cardNumber": "5123450000000008",
"expiryMonth": "05",
"expiryYear": "21"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
publicKey: 'SBTESTPUBK_dhrpzbRpR34l6VmqkCFOKA94L5E1jSTu',
amount: '10.00',
fullName: 'Diei Okechukwu Peter',
mobileNumber: 8030540611,
currency: 'NGN',
country: 'NG',
paymentReference: 'NGN0000037Q35',
email: 'okechukwu.diei2@gmail.com',
productId: 'Foods',
productDescription: 'RASPBERRY',
cardNumber: '5123450000000008',
expiryMonth: '05',
expiryYear: '21'
})
};
fetch('https://seerbitapi.com/api/v2/payments/charge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://seerbitapi.com/api/v2/payments/charge",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'publicKey' => 'SBTESTPUBK_dhrpzbRpR34l6VmqkCFOKA94L5E1jSTu',
'amount' => '10.00',
'fullName' => 'Diei Okechukwu Peter',
'mobileNumber' => 8030540611,
'currency' => 'NGN',
'country' => 'NG',
'paymentReference' => 'NGN0000037Q35',
'email' => 'okechukwu.diei2@gmail.com',
'productId' => 'Foods',
'productDescription' => 'RASPBERRY',
'cardNumber' => '5123450000000008',
'expiryMonth' => '05',
'expiryYear' => '21'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://seerbitapi.com/api/v2/payments/charge"
payload := strings.NewReader("{\n \"publicKey\": \"SBTESTPUBK_dhrpzbRpR34l6VmqkCFOKA94L5E1jSTu\",\n \"amount\": \"10.00\",\n \"fullName\": \"Diei Okechukwu Peter\",\n \"mobileNumber\": 8030540611,\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"paymentReference\": \"NGN0000037Q35\",\n \"email\": \"okechukwu.diei2@gmail.com\",\n \"productId\": \"Foods\",\n \"productDescription\": \"RASPBERRY\",\n \"cardNumber\": \"5123450000000008\",\n \"expiryMonth\": \"05\",\n \"expiryYear\": \"21\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://seerbitapi.com/api/v2/payments/charge")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"publicKey\": \"SBTESTPUBK_dhrpzbRpR34l6VmqkCFOKA94L5E1jSTu\",\n \"amount\": \"10.00\",\n \"fullName\": \"Diei Okechukwu Peter\",\n \"mobileNumber\": 8030540611,\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"paymentReference\": \"NGN0000037Q35\",\n \"email\": \"okechukwu.diei2@gmail.com\",\n \"productId\": \"Foods\",\n \"productDescription\": \"RASPBERRY\",\n \"cardNumber\": \"5123450000000008\",\n \"expiryMonth\": \"05\",\n \"expiryYear\": \"21\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://seerbitapi.com/api/v2/payments/charge")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"publicKey\": \"SBTESTPUBK_dhrpzbRpR34l6VmqkCFOKA94L5E1jSTu\",\n \"amount\": \"10.00\",\n \"fullName\": \"Diei Okechukwu Peter\",\n \"mobileNumber\": 8030540611,\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"paymentReference\": \"NGN0000037Q35\",\n \"email\": \"okechukwu.diei2@gmail.com\",\n \"productId\": \"Foods\",\n \"productDescription\": \"RASPBERRY\",\n \"cardNumber\": \"5123450000000008\",\n \"expiryMonth\": \"05\",\n \"expiryYear\": \"21\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"data": {
"code": "00",
"payments": {
"paymentReference": "NGN0100067Q35",
"linkingReference": "SEERBIT146140441602959589412",
"status": "CAPTURED"
},
"card": {
"bin": "512345",
"last4": "0008",
"token": "tk_edcac221-63e5-4baf-8846-4922af4a10e6"
},
"message": "APPROVED"
}
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
application/json
The body is of type object.
Response
The response is of type object.