Answer the question
In order to leave comments, you need to log in
api privat encoding error?
I connect to the site Payment by installments from a private bank. Here is the documentation: link
$url = 'https://payparts2.privatbank.ua/ipp/v2/payment/create';
$params = array(
'storeId' => '36E137A157014AC297DD',
'orderId' => '123456789',
'amount' => '1000',
'partsCount' => '1',
'merchantType' => 'pp',
'scheme' => 'pp',
'products' => array(
'name' => 'televizor',
'count' => 1,
'price' => 1000
),
'signature' => 'b47f80a7fbb34db084bb35527f84ed4a'
);
$result = file_get_contents($url, false, stream_context_create(array(
'http' => array(
'method' => 'POST',
'header' => 'Accept:application/json;Accept-Encoding:UTF-8;Content-Type:application/json',
'content' => json_encode($params)
)
)));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question