Cards API
$merchantId = {{paybox_merchant_id}};
$secretKey = {{paybox_merchant_secret}};
$array = [
'cardholder_name' => 'IVANOV IVAN IVANOVICH',
'phone'=> 79651234567,
'product_code' => 1,
'card_id' => 555,
];
$requestBody = json_encode($array);
$sign = hash('sha256', $requestBody . $secretKey);
curl --location --request GET 'some_url.com' \
--header 'Request-Id: 5aac88a2-d16d-4e01-927c-8b02bf44375c' \
--header 'Auth-Id: 12345' \
--header 'Sign: 4f6d4bc08ceac4ffdbd6eec810dce91928132ea9c63b52a3b23f74be98b766b4' \
--header 'Content-Type: application/json' \
--data-raw '{
"cardholder_name": "IVANOV IVAN IVANOVICH",
"phone": 79651234567,
"product_code": 1,
"card_id": 555
}'