{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "TransactionVerificationBody",
"properties": {
"merchantId": {
"description": "Merchant ID",
"type": "integer"
},
"posId": {
"description": "Shop identification number (defaults to merchant ID)",
"type": "integer"
},
"sessionId": {
"description": "Unique identifier from merchant's system",
"type": "string",
"maxLength": 100
},
"amount": {
"description": "Transaction amount which format is presented as amount in lowest currency unit, e.g. 1.23 PLN = 123",
"type": "integer"
},
"currency": {
"description": "Currency",
"type": "string",
"maxLength": 3,
"default": "PLN"
},
"orderId": {
"description": "Id of an order assigned by P24",
"type": "integer",
"format": "int64"
},
"sign": {
"description": "Checksum of parameters:
{\"sessionId\":\"str\",\"orderId\":int,\"amount\":int,\"currency\":\"str\",\"crc\":\"str\"}
calculated with the use of sha384
IMPORTANT!:
in case json_encode function is used, the following attributes should be added
\"JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES\"",
"type": "string"
}
},
"required": [
"posId",
"sessionId",
"amount",
"currency",
"orderId",
"sign",
"merchantId"
]
}