PHP code example of ebanx / benjamin-local
1. Go to this page and download the library: Download ebanx/benjamin-local 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/ */
ebanx / benjamin-local example snippets
banx\Benjamin\Models\Configs\Config;
use Ebanx\Benjamin\Models\Payment;
$config = new Config([
'integrationKey' => 'YOUR_INTEGRATION_KEY',
'sandboxIntegrationKey' => 'YOUR_SANDBOX_INTEGRATION_KEY'
]);
$payment = new Payment([
//Payment properties(see wiki)
]);
$result = EBANX($config)->create($payment);