narazie zmontowalem cos takiego, zwraca "false"
co robie zle?
<?php
/* cURL */
$fields = array('id' => '37953', 'amount' => $total_price2,
'currency' => 'PLN',
'description' => l_id().'.'.$this->u['mail'],
'channel' => 0,
'URL' => URL.'payments/success',
'email' => $this->u['mail'],
'firstname' => $_POST['first_name'],
'lastname' => $_POST['first_name'],
'street' => $_POST['address1'],
'street_n1' => '0',
'street_n1' => '0',
'city' => $_POST['city'],
'postcode' => $_POST['postcode'],
'phone' => $_POST['phone']
);
foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
rtrim($fields_string,'&'); $url = 'https://ssl.dotpay.pl/get.php';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_CAINFO, "m/cart/ssl.dotpay.pl.crt");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt
($ch,CURLOPT_POST
,count($fields)); curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);
$response = curl_exec($ch);
curl_close($ch);
?>
https://ssl.dotpay.pl/?id=41332&amount=...ur.platform.com