Pay Order
curl --request POST \
--url https://checkout-api-service.epayclub.com/checkout/order/pay \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"data": "<string>"
}
'import requests
url = "https://checkout-api-service.epayclub.com/checkout/order/pay"
payload = { "data": "<string>" }
headers = {
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({data: '<string>'})
};
fetch('https://checkout-api-service.epayclub.com/checkout/order/pay', 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://checkout-api-service.epayclub.com/checkout/order/pay",
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([
'data' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api-key: <api-key>"
],
]);
$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://checkout-api-service.epayclub.com/checkout/order/pay"
payload := strings.NewReader("{\n \"data\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<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://checkout-api-service.epayclub.com/checkout/order/pay")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"data\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://checkout-api-service.epayclub.com/checkout/order/pay")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"paymentDetail": {
"redirectUrl": "https://core.devepayclub.com/blktk-kpay/api/v1/card/initiatetransaction?tx1=NUJHIK51459855174059672277413231740596722774&t2=fd83e64b11ed12225bf69655d40dc3b55b28dfca784bcd8c3d46af0078e8eaa2",
"recipientAccount": null,
"paymentReference": "CP370D7116-5DDA-4BDE-81E3-5155DBB0AB48"
},
"bankTransferDetails": null,
"orderPayment": {
"orderId": 29,
"orderPaymentReference": "PGW-PAYREF-3B315861F627474FA83852DBDD6CE71A",
"currency": "USD",
"statusId": 2,
"orderPaymentResponseCode": "02",
"orderPaymentResponseMessage": "pending-authenticaion",
"orderPaymentInstrument": null,
"remarks": "Order payment initiated",
"totalAmount": 106,
"fee": 6
}
},
"status": "success",
"statusCode": "02",
"message": "pending-authenticaion"
}
{
"status": "failed",
"status_code": "13",
"message": "Order not found at the moment"
}
Orders
Pay Order
Initiate payment for an existing order.
POST
/
checkout
/
order
/
pay
Pay Order
curl --request POST \
--url https://checkout-api-service.epayclub.com/checkout/order/pay \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"data": "<string>"
}
'import requests
url = "https://checkout-api-service.epayclub.com/checkout/order/pay"
payload = { "data": "<string>" }
headers = {
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({data: '<string>'})
};
fetch('https://checkout-api-service.epayclub.com/checkout/order/pay', 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://checkout-api-service.epayclub.com/checkout/order/pay",
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([
'data' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api-key: <api-key>"
],
]);
$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://checkout-api-service.epayclub.com/checkout/order/pay"
payload := strings.NewReader("{\n \"data\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<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://checkout-api-service.epayclub.com/checkout/order/pay")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"data\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://checkout-api-service.epayclub.com/checkout/order/pay")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"paymentDetail": {
"redirectUrl": "https://core.devepayclub.com/blktk-kpay/api/v1/card/initiatetransaction?tx1=NUJHIK51459855174059672277413231740596722774&t2=fd83e64b11ed12225bf69655d40dc3b55b28dfca784bcd8c3d46af0078e8eaa2",
"recipientAccount": null,
"paymentReference": "CP370D7116-5DDA-4BDE-81E3-5155DBB0AB48"
},
"bankTransferDetails": null,
"orderPayment": {
"orderId": 29,
"orderPaymentReference": "PGW-PAYREF-3B315861F627474FA83852DBDD6CE71A",
"currency": "USD",
"statusId": 2,
"orderPaymentResponseCode": "02",
"orderPaymentResponseMessage": "pending-authenticaion",
"orderPaymentInstrument": null,
"remarks": "Order payment initiated",
"totalAmount": 106,
"fee": 6
}
},
"status": "success",
"statusCode": "02",
"message": "pending-authenticaion"
}
{
"status": "failed",
"status_code": "13",
"message": "Order not found at the moment"
}
This endpoint accepts only encrypted requests. Learn more about our encryption here.
{
"data": {
"paymentDetail": {
"redirectUrl": "https://core.devepayclub.com/blktk-kpay/api/v1/card/initiatetransaction?tx1=NUJHIK51459855174059672277413231740596722774&t2=fd83e64b11ed12225bf69655d40dc3b55b28dfca784bcd8c3d46af0078e8eaa2",
"recipientAccount": null,
"paymentReference": "CP370D7116-5DDA-4BDE-81E3-5155DBB0AB48"
},
"bankTransferDetails": null,
"orderPayment": {
"orderId": 29,
"orderPaymentReference": "PGW-PAYREF-3B315861F627474FA83852DBDD6CE71A",
"currency": "USD",
"statusId": 2,
"orderPaymentResponseCode": "02",
"orderPaymentResponseMessage": "pending-authenticaion",
"orderPaymentInstrument": null,
"remarks": "Order payment initiated",
"totalAmount": 106,
"fee": 6
}
},
"status": "success",
"statusCode": "02",
"message": "pending-authenticaion"
}
{
"status": "failed",
"status_code": "13",
"message": "Order not found at the moment"
}
⌘I

