1. Go to this page and download the library: Download opennode/opennode-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/ */
opennode / opennode-php example snippets
use OpenNode\OpenNode;
\OpenNode\OpenNode::config(array(
'environment' => 'dev', // dev OR live
'auth_token' => 'YOUR_AUTH_TOKEN',
'curlopt_ssl_verifypeer' => TRUE // default is false
));
// $order = \OpenNode\Merchant\Charge::find('c1cddabe-c27b-44a6-91e8-a8f3553dc5c7');
use OpenNode\OpenNode;
# \OpenNode\Merchant\Charge::find($orderId, $options = array(), $authentication = array())
$charge = \OpenNode\Merchant\Charge::find('c1cddabe-c27b-44a6-91e8-a8f3553dc5c7', array(), array(
'environment' => 'dev', // dev OR live
'auth_token' => 'YOUR_AUTH_TOKEN'));