v1
latestOpenAPI 3.1.02026-07-262343124.1 KBGateway
Confirm a payment
This endpoint confirms a payment and submits it to the blockchain for processing.
post/v1/gateway/payment/{id}/confirm
Path parameters
idstring required
Payment ID
Example:pay_7fa2ecc101ARZ3NDEKTSV4RRFFQ69G5FAV
Payment ID
Query parameters
maxPollMsinteger nullable
Maximum time to long-poll for payment status, in milliseconds.
Headers
Api-Keystring nullable
App-Idstring nullable
Client-Idstring nullable
WCP-Versionstring nullable
Sdk-Namestring nullable
Sdk-Versionstring nullable
Sdk-Platformstring nullable
Request body
Example request
{
"collectedData": {
"fields": [
{
"id": "fullName",
"value": "John Smith"
},
{
"id": "dob",
"value": "1990-01-01"
},
{
"id": "tosConfirmed",
"value": "true"
},
{
"id": "pobCountry",
"value": "US"
},
{
"id": "pobAddress",
"value": "New York, NY"
}
]
},
"excludeFromRelayer": null,
"optionId": "opt_123",
"results": [
{
"data": [
"0x123"
],
"type": "walletRpc"
}
]
}Response
Payment confirmed successfully
Example response
{
"info": null,
"isFinal": true,
"pollInMs": null,
"status": "succeeded"
}