examples/SetCurlOptions.php
<?php
/**
* Copyright (c) 2014-2015 BitPay
*/
require __DIR__ . '/../vendor/autoload.php';
// When running bitpay on your local server
$network = new Bitpay\Network\Customnet("127.0.0.1", 8088, true);
// Customize the curl options
$curl_options = array(
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false,
);
// If nothing is passed into the CurlAdapter
// then default values are used
$adapter = new Bitpay\Client\Adapter\CurlAdapter($curl_options);