const opennode = require('opennode');
opennode.setCredentials('88d47ebb-4714–4f18–8e1a–b48ef0bala40');
const charge = await opennode.createCharge({
amount:100,
currency:'USD',
});
use OpenNode\OpenNode;
OpenNode\OpenNode::config(array(
'environment' => 'live',
'auth_token' => '88d47ebb-4714-4f18-8e1a-b48ef0bala50',
'curlopt_ssl_verifypeer' =>true
));
$charge =
\OpenNode\Merchant\Charge::create(array(
'amount' => 100,
'currency' => 'USD',
));