/bff/payment-gateway/test-connection
Tests the connection to a payment gateway with provided credentials. If a gateway code is provided, missing credentials will be loaded from the database, allowing you to test new credentials alongside existing ones.
Payment GatewaypostBffPayment-gatewayTest-connection
Parameters
7 body
Body · 7
codestringGateway code - if provided, missing credentials are loaded from DB.
providerstring | string | stringRequiredPayment provider type.
environmentstring | string | stringEnvironment: "p" = Production, "s" = Sandbox, "t" = Test.
publicKeystringPublic API key.
secretKeystringSecret API key.
merchantIdstringMerchant ID.
secureKeystringSecure key.
Request
POST /bff/payment-gateway/test-connection
curl -X POST "https://api.bizkithub.com/bff/payment-gateway/test-connection" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"code": "gopay-production",
"publicKey": "example_publicKey",
"secretKey": "example_secretKey",
"merchantId": "example_merchantId",
"secureKey": "example_secureKey"
}'Response
Connection test result.
{
"success": false,
"errorMessage": "example_errorMessage"
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.