Read a payment for a checkout page
GET
/payments/public/{paymentId}
const url = 'https://hub.stablezact.com/api/v1/payments/public/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://hub.stablezact.com/api/v1/payments/public/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0A deliberately narrow view, safe to expose to the payer’s browser. It carries what a checkout needs and nothing else: amount, status, network, token, the merchant’s business name and the settlement addresses.
metadata is restricted here to bookingId, orderId and source.
Anything else you attached is not returned by this endpoint.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”paymentId
required
string format: uuid
Responses
Section titled “Responses”The public view of the payment.
Media typeapplication/json
object
success
boolean
payment
object
Examplegenerated
{ "success": true, "payment": {}}The request was rejected. Read error and message.
Media typeapplication/json
object
success
boolean
error
required
Short machine-ish reason.
string
message
Longer explanation, when there is one.
string
Example
{ "success": false, "error": "Validation failed", "message": "Unsupported currency: GBP"}