@@ 553-556 (lines=4) @@ | ||
550 | curl_setopt($curl, CURLOPT_USERPWD, MODULE_PAYMENT_STRIPE_SECRET_KEY . ':'); |
|
551 | curl_setopt($curl, CURLOPT_HTTPHEADER, $header); |
|
552 | ||
553 | if ( !empty($parameters) ) { |
|
554 | curl_setopt($curl, CURLOPT_POST, true); |
|
555 | curl_setopt($curl, CURLOPT_POSTFIELDS, $parameters); |
|
556 | } |
|
557 | ||
558 | if ( MODULE_PAYMENT_STRIPE_VERIFY_SSL == 'True' ) { |
|
559 | curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true); |
@@ 407-410 (lines=4) @@ | ||
404 | curl_setopt($curl, CURLOPT_FRESH_CONNECT, true); |
|
405 | curl_setopt($curl, CURLOPT_ENCODING, ''); // disable gzip |
|
406 | ||
407 | if ( isset($parameters) ) { |
|
408 | curl_setopt($curl, CURLOPT_POST, true); |
|
409 | curl_setopt($curl, CURLOPT_POSTFIELDS, $parameters); |
|
410 | } |
|
411 | ||
412 | if ( isset($headers) && is_array($headers) && !empty($headers) ) { |
|
413 | curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); |