AM
Size: a a a
AM
AM
S
S
{% for test in gallery.tests %}после передачи в паршал этой переменной, она будет доступна и внутри паршала просто используешь(partials/list/tests.htm):
{% partial 'list/tests' test=test %}
{% endfor %}
{{ test }}
AM
S
S
ДВ
AM
AM
S
{% for test in gallery.tests %}после передачи в паршал этой переменной, она будет доступна и внутри паршала просто используешь(partials/list/tests.htm):
{% partial 'list/tests' test=test %}
{% endfor %}
{{ test }}
S
АС
DI
DI
AM
{% for test in gallery.tests %}после передачи в паршал этой переменной, она будет доступна и внутри паршала просто используешь(partials/list/tests.htm):
{% partial 'list/tests' test=test %}
{% endfor %}
{{ test }}
A
DI
EB
protected function sendPurchaseData()
{
$obRequestResult = Http::post('https://payparts2.privatbank.ua/ipp/v2/payment/create', function ($http) {
$http->header([
'Content-Type' => 'application/json;charset=UTF-8',
'Accept' => 'application/json',
'Accept-Encoding' => 'UTF-8'
]);
$http->data(json_encode($this->arRequestData));
});
dd($obRequestResult);
}
protected function sendPurchaseData()
{
$this->sendPost($this->arRequestData, 'https://payparts2.privatbank.ua/ipp/v2/payment/create');
}
private function sendPost($param, $url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/json',
'Accept: application/json; charset=utf-8'
]);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($param));
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
return curl_exec($ch);
}
IC
protected function sendPurchaseData()
{
$obRequestResult = Http::post('https://payparts2.privatbank.ua/ipp/v2/payment/create', function ($http) {
$http->header([
'Content-Type' => 'application/json;charset=UTF-8',
'Accept' => 'application/json',
'Accept-Encoding' => 'UTF-8'
]);
$http->data(json_encode($this->arRequestData));
});
dd($obRequestResult);
}
protected function sendPurchaseData()
{
$this->sendPost($this->arRequestData, 'https://payparts2.privatbank.ua/ipp/v2/payment/create');
}
private function sendPost($param, $url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/json',
'Accept: application/json; charset=utf-8'
]);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($param));
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
return curl_exec($ch);
}