3DS Authorise
curl --request POST \
--url https://seerbitapi.com/api/v2/payments/authorise3ds \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"paymentReference": "30451B789S987643108hgfdsfP6W",
"publicKey": "SBPUBK_OMX6ZNRZPLIHQ9Y0ZG6FCNR0EAYIGIAT",
"cardNumber": "5242820813772165",
"cvv": "865",
"expiryMonth": "02",
"expiryYear": "22",
"currency": "NGN",
"country": "NG",
"productDescription": "preauth test capture",
"amount": "1.00",
"email": "johndoe@gmail.com",
"fullName": "john doe",
"callbackUrl": "https://google.com"
}
'import requests
url = "https://seerbitapi.com/api/v2/payments/authorise3ds"
payload = {
"paymentReference": "30451B789S987643108hgfdsfP6W",
"publicKey": "SBPUBK_OMX6ZNRZPLIHQ9Y0ZG6FCNR0EAYIGIAT",
"cardNumber": "5242820813772165",
"cvv": "865",
"expiryMonth": "02",
"expiryYear": "22",
"currency": "NGN",
"country": "NG",
"productDescription": "preauth test capture",
"amount": "1.00",
"email": "johndoe@gmail.com",
"fullName": "john doe",
"callbackUrl": "https://google.com"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
paymentReference: '30451B789S987643108hgfdsfP6W',
publicKey: 'SBPUBK_OMX6ZNRZPLIHQ9Y0ZG6FCNR0EAYIGIAT',
cardNumber: '5242820813772165',
cvv: '865',
expiryMonth: '02',
expiryYear: '22',
currency: 'NGN',
country: 'NG',
productDescription: 'preauth test capture',
amount: '1.00',
email: 'johndoe@gmail.com',
fullName: 'john doe',
callbackUrl: 'https://google.com'
})
};
fetch('https://seerbitapi.com/api/v2/payments/authorise3ds', 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/authorise3ds",
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([
'paymentReference' => '30451B789S987643108hgfdsfP6W',
'publicKey' => 'SBPUBK_OMX6ZNRZPLIHQ9Y0ZG6FCNR0EAYIGIAT',
'cardNumber' => '5242820813772165',
'cvv' => '865',
'expiryMonth' => '02',
'expiryYear' => '22',
'currency' => 'NGN',
'country' => 'NG',
'productDescription' => 'preauth test capture',
'amount' => '1.00',
'email' => 'johndoe@gmail.com',
'fullName' => 'john doe',
'callbackUrl' => 'https://google.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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/authorise3ds"
payload := strings.NewReader("{\n \"paymentReference\": \"30451B789S987643108hgfdsfP6W\",\n \"publicKey\": \"SBPUBK_OMX6ZNRZPLIHQ9Y0ZG6FCNR0EAYIGIAT\",\n \"cardNumber\": \"5242820813772165\",\n \"cvv\": \"865\",\n \"expiryMonth\": \"02\",\n \"expiryYear\": \"22\",\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"productDescription\": \"preauth test capture\",\n \"amount\": \"1.00\",\n \"email\": \"johndoe@gmail.com\",\n \"fullName\": \"john doe\",\n \"callbackUrl\": \"https://google.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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/authorise3ds")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"paymentReference\": \"30451B789S987643108hgfdsfP6W\",\n \"publicKey\": \"SBPUBK_OMX6ZNRZPLIHQ9Y0ZG6FCNR0EAYIGIAT\",\n \"cardNumber\": \"5242820813772165\",\n \"cvv\": \"865\",\n \"expiryMonth\": \"02\",\n \"expiryYear\": \"22\",\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"productDescription\": \"preauth test capture\",\n \"amount\": \"1.00\",\n \"email\": \"johndoe@gmail.com\",\n \"fullName\": \"john doe\",\n \"callbackUrl\": \"https://google.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://seerbitapi.com/api/v2/payments/authorise3ds")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"paymentReference\": \"30451B789S987643108hgfdsfP6W\",\n \"publicKey\": \"SBPUBK_OMX6ZNRZPLIHQ9Y0ZG6FCNR0EAYIGIAT\",\n \"cardNumber\": \"5242820813772165\",\n \"cvv\": \"865\",\n \"expiryMonth\": \"02\",\n \"expiryYear\": \"22\",\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"productDescription\": \"preauth test capture\",\n \"amount\": \"1.00\",\n \"email\": \"johndoe@gmail.com\",\n \"fullName\": \"john doe\",\n \"callbackUrl\": \"https://google.com\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"data": {
"code": "00",
"payments": {
"paymentReference": "30451A789S987643128hgfdsfP6W",
"redirectLink": "https://seerbitapigateway.com/seerbit/card-dispatch?sredref=F535459411601493328771",
"linkingReference": "F535459411601493328771",
"status": "AUTHORISATION PENDING"
},
"message": "Transaction is pending"
}
}AUTHORISE
3DS Authorise
PIN and CVV are not Required to complete Transaction. Authorization is completed on 3DS.
POST
/
payments
/
authorise3ds
3DS Authorise
curl --request POST \
--url https://seerbitapi.com/api/v2/payments/authorise3ds \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"paymentReference": "30451B789S987643108hgfdsfP6W",
"publicKey": "SBPUBK_OMX6ZNRZPLIHQ9Y0ZG6FCNR0EAYIGIAT",
"cardNumber": "5242820813772165",
"cvv": "865",
"expiryMonth": "02",
"expiryYear": "22",
"currency": "NGN",
"country": "NG",
"productDescription": "preauth test capture",
"amount": "1.00",
"email": "johndoe@gmail.com",
"fullName": "john doe",
"callbackUrl": "https://google.com"
}
'import requests
url = "https://seerbitapi.com/api/v2/payments/authorise3ds"
payload = {
"paymentReference": "30451B789S987643108hgfdsfP6W",
"publicKey": "SBPUBK_OMX6ZNRZPLIHQ9Y0ZG6FCNR0EAYIGIAT",
"cardNumber": "5242820813772165",
"cvv": "865",
"expiryMonth": "02",
"expiryYear": "22",
"currency": "NGN",
"country": "NG",
"productDescription": "preauth test capture",
"amount": "1.00",
"email": "johndoe@gmail.com",
"fullName": "john doe",
"callbackUrl": "https://google.com"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
paymentReference: '30451B789S987643108hgfdsfP6W',
publicKey: 'SBPUBK_OMX6ZNRZPLIHQ9Y0ZG6FCNR0EAYIGIAT',
cardNumber: '5242820813772165',
cvv: '865',
expiryMonth: '02',
expiryYear: '22',
currency: 'NGN',
country: 'NG',
productDescription: 'preauth test capture',
amount: '1.00',
email: 'johndoe@gmail.com',
fullName: 'john doe',
callbackUrl: 'https://google.com'
})
};
fetch('https://seerbitapi.com/api/v2/payments/authorise3ds', 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/authorise3ds",
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([
'paymentReference' => '30451B789S987643108hgfdsfP6W',
'publicKey' => 'SBPUBK_OMX6ZNRZPLIHQ9Y0ZG6FCNR0EAYIGIAT',
'cardNumber' => '5242820813772165',
'cvv' => '865',
'expiryMonth' => '02',
'expiryYear' => '22',
'currency' => 'NGN',
'country' => 'NG',
'productDescription' => 'preauth test capture',
'amount' => '1.00',
'email' => 'johndoe@gmail.com',
'fullName' => 'john doe',
'callbackUrl' => 'https://google.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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/authorise3ds"
payload := strings.NewReader("{\n \"paymentReference\": \"30451B789S987643108hgfdsfP6W\",\n \"publicKey\": \"SBPUBK_OMX6ZNRZPLIHQ9Y0ZG6FCNR0EAYIGIAT\",\n \"cardNumber\": \"5242820813772165\",\n \"cvv\": \"865\",\n \"expiryMonth\": \"02\",\n \"expiryYear\": \"22\",\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"productDescription\": \"preauth test capture\",\n \"amount\": \"1.00\",\n \"email\": \"johndoe@gmail.com\",\n \"fullName\": \"john doe\",\n \"callbackUrl\": \"https://google.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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/authorise3ds")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"paymentReference\": \"30451B789S987643108hgfdsfP6W\",\n \"publicKey\": \"SBPUBK_OMX6ZNRZPLIHQ9Y0ZG6FCNR0EAYIGIAT\",\n \"cardNumber\": \"5242820813772165\",\n \"cvv\": \"865\",\n \"expiryMonth\": \"02\",\n \"expiryYear\": \"22\",\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"productDescription\": \"preauth test capture\",\n \"amount\": \"1.00\",\n \"email\": \"johndoe@gmail.com\",\n \"fullName\": \"john doe\",\n \"callbackUrl\": \"https://google.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://seerbitapi.com/api/v2/payments/authorise3ds")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"paymentReference\": \"30451B789S987643108hgfdsfP6W\",\n \"publicKey\": \"SBPUBK_OMX6ZNRZPLIHQ9Y0ZG6FCNR0EAYIGIAT\",\n \"cardNumber\": \"5242820813772165\",\n \"cvv\": \"865\",\n \"expiryMonth\": \"02\",\n \"expiryYear\": \"22\",\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"productDescription\": \"preauth test capture\",\n \"amount\": \"1.00\",\n \"email\": \"johndoe@gmail.com\",\n \"fullName\": \"john doe\",\n \"callbackUrl\": \"https://google.com\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"data": {
"code": "00",
"payments": {
"paymentReference": "30451A789S987643128hgfdsfP6W",
"redirectLink": "https://seerbitapigateway.com/seerbit/card-dispatch?sredref=F535459411601493328771",
"linkingReference": "F535459411601493328771",
"status": "AUTHORISATION PENDING"
},
"message": "Transaction is pending"
}
}Authorizations
Body
application/json
The body is of type object.
Response
The response is of type object.