Skip to content

Sandbox Transaction Simulation

Pyng provides an API to settle or decline transaction without having Pyng App. URL path - /checkout/sandbox-simulator/{siteId}/transaction-status

Method - POST

Request Headers

Header Name Header Value Notes
Content-Type application/json
Authorization Bearer access_token Access token must have an appropriate scope to access resource

Path Parameters

Parameter Key Parameter Data Type Notes
siteId string Unique site id assigned to the Partner's site by Pyng

Body Parameters

Parameter Key Parameter Data Type Required Notes
paymentIntentId string Y Unique id of the payment intent
status string Y Desired transaction status: Settled or Declined

Response

Status Code - 204 No Content

Examples

Request

POST /checkout/sandbox-simulator/{siteId}/transaction-status HTTP/1.1
Host: sample.pyng.com.au
Authorization: Bearer access_token
Content-Type: application/json

{
  "status": "Settled",
  "paymentIntentId": "57688c4d-bf47-4cd0-a4db-b9d3e77a0269"
}

Response

HTTP/1.1 204 No Content