1. Go to this page and download the library: Download 4msar/coingate-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
4msar / coingate-php example snippets
use CoinGate\CoinGate;
\CoinGate\CoinGate::config(array(
'environment' => 'sandbox', // sandbox OR live
'auth_token' => 'YOUR_AUTH_TOKEN',
'curlopt_ssl_verifypeer' => TRUE // default is false
));
// $order = \CoinGate\Merchant\Order::find(7294);
use CoinGate\CoinGate;
# \CoinGate\Merchant\Order::find($orderId, $options = array(), $authentication = array())
$order = \CoinGate\Merchant\Order::find(1087999, array(), array(
'environment' => 'sandbox', // sandbox OR live
'auth_token' => 'YOUR_AUTH_TOKEN'));