const response = await fetch('https://service.pcibooking.net/api/paymentGateway', {
headers: {
'Authorization': 'APIKEY your-api-key'
}
});
const data = await response.json();
console.log(data);
import requests
response = requests.get(
'https://service.pcibooking.net/api/paymentGateway',
headers={
'Authorization': 'APIKEY your-api-key'
}
)
print(response.json())
[
{
"Name": "Paystack",
"DisplayName": "Paystack",
"Description": "Paystack payment gateway",
"CredentialsNames": ["SecretKey"],
"SupportedCurrencies": ["NGN", "USD", "GHS", "ZAR", "KES"],
"PaymentGatewayUrl": "https://api.paystack.co",
"SupportsNetworkToken": false,
"SupportsGatewayToken": true,
"Supports3Ds": false,
"ThreeDsSupportedBy": "None",
"SupportsPartialRefund": true
},
{...}
]
{
"code": -160,
"message": "Uri not found",
"moreInfo": "Payment gateway not found",
"errorList": null
}
Additional Functions
Get Payment Gateways
Retrieve a list of supported payment gateways and their credential descriptions.
GET
/
api
/
paymentGateway
const response = await fetch('https://service.pcibooking.net/api/paymentGateway', {
headers: {
'Authorization': 'APIKEY your-api-key'
}
});
const data = await response.json();
console.log(data);
import requests
response = requests.get(
'https://service.pcibooking.net/api/paymentGateway',
headers={
'Authorization': 'APIKEY your-api-key'
}
)
print(response.json())
[
{
"Name": "Paystack",
"DisplayName": "Paystack",
"Description": "Paystack payment gateway",
"CredentialsNames": ["SecretKey"],
"SupportedCurrencies": ["NGN", "USD", "GHS", "ZAR", "KES"],
"PaymentGatewayUrl": "https://api.paystack.co",
"SupportsNetworkToken": false,
"SupportsGatewayToken": true,
"Supports3Ds": false,
"ThreeDsSupportedBy": "None",
"SupportsPartialRefund": true
},
{...}
]
{
"code": -160,
"message": "Uri not found",
"moreInfo": "Payment gateway not found",
"errorList": null
}
Universal Payment Gateway Guide
Route payments through any supported gateway
For a human-readable, always-current list of supported gateways without calling the API, see the Universal Payment Gateway page. If a gateway isn’t listed there, it isn’t currently supported.
Error Responses
| Code | HTTP Status | Condition |
|---|---|---|
-160 | 404 | A specific gateway name was requested but does not exist. |
This is a public endpoint. No authentication is required.
Parameters
const response = await fetch('https://service.pcibooking.net/api/paymentGateway', {
headers: {
'Authorization': 'APIKEY your-api-key'
}
});
const data = await response.json();
console.log(data);
import requests
response = requests.get(
'https://service.pcibooking.net/api/paymentGateway',
headers={
'Authorization': 'APIKEY your-api-key'
}
)
print(response.json())
Response
[
{
"Name": "Paystack",
"DisplayName": "Paystack",
"Description": "Paystack payment gateway",
"CredentialsNames": ["SecretKey"],
"SupportedCurrencies": ["NGN", "USD", "GHS", "ZAR", "KES"],
"PaymentGatewayUrl": "https://api.paystack.co",
"SupportsNetworkToken": false,
"SupportsGatewayToken": true,
"Supports3Ds": false,
"ThreeDsSupportedBy": "None",
"SupportsPartialRefund": true
},
{...}
]
{
"code": -160,
"message": "Uri not found",
"moreInfo": "Payment gateway not found",
"errorList": null
}
Response Fields
| Field | Meaning |
|---|---|
Name, DisplayName, Description | Gateway identifier to use in UPG requests, public name, and description. |
CredentialsNames | The credential fields this gateway requires. See PSP Credentials. |
SupportedCurrencies | ISO 4217 codes the gateway accepts. |
PaymentGatewayUrl | The gateway’s own API endpoint. |
Supports3Ds | Whether 3D Secure is available at all for this gateway. |
ThreeDsSupportedBy | Who performs the authentication. None: no 3DS support. PaymentProcessor: the gateway performs 3DS itself. OurService: PCI Booking performs 3DS at card capture and passes the result to the gateway. OurServiceOrPaymentProcessor: either. |
SupportsNetworkToken | The gateway accepts network tokens. |
SupportsGatewayToken | The gateway offers its own tokenization through UPG. |
SupportsPartialRefund | Partial refunds are accepted. |
This endpoint needs no authentication. Use
Supports3Ds and ThreeDsSupportedBy to answer “does gateway X support 3D Secure, and who performs it” without contacting support. The example values above are illustrative; query the endpoint for the current data.
