Generate Hash
curl --request POST \
--url https://seerbitapi.com/api/v2/encrypt/hashs \
--header 'Content-Type: application/json' \
--data '
{
"publicKey": "SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u",
"amount": "10.00",
"currency": "NGN",
"country": "NG",
"paymentReference": "3791090233047WZ73QN",
"email": "mamadou.diouf@intouchgroup.net",
"productId": "15013",
"productDescription": "touch badge",
"callbackUrl": "https://gutouch.com"
}
'import requests
url = "https://seerbitapi.com/api/v2/encrypt/hashs"
payload = {
"publicKey": "SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u",
"amount": "10.00",
"currency": "NGN",
"country": "NG",
"paymentReference": "3791090233047WZ73QN",
"email": "mamadou.diouf@intouchgroup.net",
"productId": "15013",
"productDescription": "touch badge",
"callbackUrl": "https://gutouch.com"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
publicKey: 'SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u',
amount: '10.00',
currency: 'NGN',
country: 'NG',
paymentReference: '3791090233047WZ73QN',
email: 'mamadou.diouf@intouchgroup.net',
productId: '15013',
productDescription: 'touch badge',
callbackUrl: 'https://gutouch.com'
})
};
fetch('https://seerbitapi.com/api/v2/encrypt/hashs', 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/encrypt/hashs",
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_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u',
'amount' => '10.00',
'currency' => 'NGN',
'country' => 'NG',
'paymentReference' => '3791090233047WZ73QN',
'email' => 'mamadou.diouf@intouchgroup.net',
'productId' => '15013',
'productDescription' => 'touch badge',
'callbackUrl' => 'https://gutouch.com'
]),
CURLOPT_HTTPHEADER => [
"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/encrypt/hashs"
payload := strings.NewReader("{\n \"publicKey\": \"SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u\",\n \"amount\": \"10.00\",\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"paymentReference\": \"3791090233047WZ73QN\",\n \"email\": \"mamadou.diouf@intouchgroup.net\",\n \"productId\": \"15013\",\n \"productDescription\": \"touch badge\",\n \"callbackUrl\": \"https://gutouch.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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/encrypt/hashs")
.header("Content-Type", "application/json")
.body("{\n \"publicKey\": \"SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u\",\n \"amount\": \"10.00\",\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"paymentReference\": \"3791090233047WZ73QN\",\n \"email\": \"mamadou.diouf@intouchgroup.net\",\n \"productId\": \"15013\",\n \"productDescription\": \"touch badge\",\n \"callbackUrl\": \"https://gutouch.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://seerbitapi.com/api/v2/encrypt/hashs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"publicKey\": \"SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u\",\n \"amount\": \"10.00\",\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"paymentReference\": \"3791090233047WZ73QN\",\n \"email\": \"mamadou.diouf@intouchgroup.net\",\n \"productId\": \"15013\",\n \"productDescription\": \"touch badge\",\n \"callbackUrl\": \"https://gutouch.com\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"data": {
"code": "00",
"message": "Successful",
"hash": {
"hash": "ae18321b005df1b9f16ca8590425e213366da3ab1d8aa2fa30d78dfa6ab9850a"
}
}
}{
"message": "Bad Request",
"error": "There has been a problem with reading or understanding the request."
}{
"message": "Not Found",
"error": "The server can not find the requested resource"
}{
"message": "Internal Server Error",
"error": "PROCESSING"
}STANDARD CHECKOUT
Generate Hash
This is used to ensure the request payload has not been altered
POST
/
encrypt
/
hashs
Generate Hash
curl --request POST \
--url https://seerbitapi.com/api/v2/encrypt/hashs \
--header 'Content-Type: application/json' \
--data '
{
"publicKey": "SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u",
"amount": "10.00",
"currency": "NGN",
"country": "NG",
"paymentReference": "3791090233047WZ73QN",
"email": "mamadou.diouf@intouchgroup.net",
"productId": "15013",
"productDescription": "touch badge",
"callbackUrl": "https://gutouch.com"
}
'import requests
url = "https://seerbitapi.com/api/v2/encrypt/hashs"
payload = {
"publicKey": "SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u",
"amount": "10.00",
"currency": "NGN",
"country": "NG",
"paymentReference": "3791090233047WZ73QN",
"email": "mamadou.diouf@intouchgroup.net",
"productId": "15013",
"productDescription": "touch badge",
"callbackUrl": "https://gutouch.com"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
publicKey: 'SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u',
amount: '10.00',
currency: 'NGN',
country: 'NG',
paymentReference: '3791090233047WZ73QN',
email: 'mamadou.diouf@intouchgroup.net',
productId: '15013',
productDescription: 'touch badge',
callbackUrl: 'https://gutouch.com'
})
};
fetch('https://seerbitapi.com/api/v2/encrypt/hashs', 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/encrypt/hashs",
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_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u',
'amount' => '10.00',
'currency' => 'NGN',
'country' => 'NG',
'paymentReference' => '3791090233047WZ73QN',
'email' => 'mamadou.diouf@intouchgroup.net',
'productId' => '15013',
'productDescription' => 'touch badge',
'callbackUrl' => 'https://gutouch.com'
]),
CURLOPT_HTTPHEADER => [
"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/encrypt/hashs"
payload := strings.NewReader("{\n \"publicKey\": \"SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u\",\n \"amount\": \"10.00\",\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"paymentReference\": \"3791090233047WZ73QN\",\n \"email\": \"mamadou.diouf@intouchgroup.net\",\n \"productId\": \"15013\",\n \"productDescription\": \"touch badge\",\n \"callbackUrl\": \"https://gutouch.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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/encrypt/hashs")
.header("Content-Type", "application/json")
.body("{\n \"publicKey\": \"SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u\",\n \"amount\": \"10.00\",\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"paymentReference\": \"3791090233047WZ73QN\",\n \"email\": \"mamadou.diouf@intouchgroup.net\",\n \"productId\": \"15013\",\n \"productDescription\": \"touch badge\",\n \"callbackUrl\": \"https://gutouch.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://seerbitapi.com/api/v2/encrypt/hashs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"publicKey\": \"SBTESTPUBK_9sN3TuLgW6a9redEfY48cKKkUa09Pz2u\",\n \"amount\": \"10.00\",\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"paymentReference\": \"3791090233047WZ73QN\",\n \"email\": \"mamadou.diouf@intouchgroup.net\",\n \"productId\": \"15013\",\n \"productDescription\": \"touch badge\",\n \"callbackUrl\": \"https://gutouch.com\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"data": {
"code": "00",
"message": "Successful",
"hash": {
"hash": "ae18321b005df1b9f16ca8590425e213366da3ab1d8aa2fa30d78dfa6ab9850a"
}
}
}{
"message": "Bad Request",
"error": "There has been a problem with reading or understanding the request."
}{
"message": "Not Found",
"error": "The server can not find the requested resource"
}{
"message": "Internal Server Error",
"error": "PROCESSING"
}Body
application/json
This is the merchant public key.
This is the amount to be paid.
This is the currency the transaction is to be carried out in.
This is the country from which the transaction is been carried out from
This is the unique identifier for a transaction, to be generated by merchant.
This is the email of the customer.
This is the product id entered by the merchant.
This is the product description supplied by the merchant.
Response
The response is of type GenerateHashResponse · object.