testAppPaymentGateway
Requires permission settings:integration:update.
Test a payment app's connection: ARC calls the app's signed test endpoint. A failure carries the app's own error.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation TestAppPaymentGateway($configId: ID!) {
testAppPaymentGateway(configId: $configId) {
id
environment
isEnabled
secretIssued
unavailableReason
updatedAt
verification {
keysCheckedAt
keysValid
needsReverification
testPaymentAt
webhookReachable
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation TestAppPaymentGateway($configId: ID!) {\n testAppPaymentGateway(configId: $configId) {\n id\n environment\n isEnabled\n secretIssued\n unavailableReason\n updatedAt\n verification {\n keysCheckedAt\n keysValid\n needsReverification\n testPaymentAt\n webhookReachable\n }\n }\n}",
"variables": {
"configId": "id"
}
}
EOF
Variables:
{
"configId": "id"
}
Response:
{
"data": {
"testAppPaymentGateway": {
"id": "id",
"environment": "LIVE",
"isEnabled": true,
"secretIssued": true,
"unavailableReason": "string",
"updatedAt": "2025-01-15T00:00:00Z",
"verification": {
"keysCheckedAt": "string",
"keysValid": true,
"needsReverification": true,
"testPaymentAt": "string",
"webhookReachable": true
}
}
}
}
testAppPaymentGateway(
configId: ID!
): AppPaymentGatewayConfigGql!
Arguments
testAppPaymentGateway.configId ● ID! non-null scalar
The payment app's configuration.
Type
AppPaymentGatewayConfigGql object
An installed payment app's gateway configuration. Its signing secret is never returned after it is issued.