{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "TransactionResult",
"type": "object",
"properties": {
"merchantId": {
"name": "merchantId",
"in": "formData",
"description": "Merchant identification number",
"type": "integer"
},
"posId": {
"name": "posId",
"in": "formData",
"description": "Shop identification number (defaults to merchant ID)",
"type": "integer"
},
"sessionId": {
"name": "sessionId",
"in": "formData",
"description": "Unique identifier from merchant's system",
"type": "string",
"maxLength": 100
},
"amount": {
"name": "amount",
"in": "formData",
"description": "Amount of paid transaction expressed in lowest currency unit, e.g. 1.23 PLN = 123",
"type": "integer"
},
"originAmount": {
"name": "originAmount",
"in": "formData",
"description": "Amount of the transaction when registered the token expressed in lowest currency unit, e.g. 1.23 PLN = 123",
"type": "integer"
},
"currency": {
"name": "currency",
"in": "formData",
"description": "Currency compatible with ISO, e.g. PLN",
"type": "string",
"maxLength": 3,
"default": "PLN"
},
"orderId": {
"name": "orderId",
"in": "formData",
"description": "Transaction number assigned by P24",
"type": "integer",
"format": "int64"
},
"methodId": {
"name": "methodId",
"in": "formData",
"description": "Payment method used by customer",
"type": "integer"
},
"statement": {
"name": "statement",
"in": "formData",
"description": "Payment title",
"type": "string"
},
"sign": {
"name": "sign",
"in": "formData",
"description": "
Checksum of parameters:
{\"merchantId\":int,\"posId\":int,\"sessionId\":\"string\",\"amount\":int,\"originAmount\":int,\"currency\":\"string\", \"orderId\":int,\"methodId\":int,\"statement\":\"string\",\"crc\":\"string\"}
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"
}
}
}