const response = await fetch('https://service.pcibooking.net/api/paymentGateway');
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://service.pcibooking.net/api/paymentGateway')
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": true,
"ThreeDsSupportedBy": "PaymentProcessor",
"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');
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://service.pcibooking.net/api/paymentGateway')
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": true,
"ThreeDsSupportedBy": "PaymentProcessor",
"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. |
Parameters
Authentication
None. This is a public endpoint. Call it without an API key or a token.const response = await fetch('https://service.pcibooking.net/api/paymentGateway');
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://service.pcibooking.net/api/paymentGateway')
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": true,
"ThreeDsSupportedBy": "PaymentProcessor",
"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 | 3D Secure is available for this gateway through at least one PCI Booking product. Read it together with ThreeDsSupportedBy. |
ThreeDsSupportedBy | Who performs the authentication, and where it works. OurService: PCI Booking authenticates the card at capture, and the result is used with the Universal Payment Gateway and the Payments Library. PaymentProcessor: the gateway authenticates on its own page, in the Payments Library only. A Universal Payment Gateway charge carries no 3D Secure for these gateways. OurServiceOrPaymentProcessor: both. None: no 3D Secure. |
SupportsNetworkToken | The gateway accepts network tokens. |
SupportsGatewayToken | The gateway offers its own tokenization through UPG. |
SupportsPartialRefund | Partial refunds are accepted. |
Use
Supports3Ds and ThreeDsSupportedBy to answer “does gateway X support 3D Secure, and who performs it” without contacting support. If you charge through the Universal Payment Gateway, the value you need is ThreeDsSupportedBy = OurService or OurServiceOrPaymentProcessor. The example values above are illustrative; query the endpoint for the current data.
