1. Go to this page and download the library: Download soneritics/buckaroojson 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/ */
soneritics / buckaroojson example snippets
ini_set( 'serialize_precision', -1 );
$transactionKey = ''; // Your transaction key here
$authentication = new Authentication($secretKey, $websiteKey);
$buckaroo = new Buckaroo($authentication, true);
$transactionStatusRequest = $buckaroo->getTransactionStatusRequest($transactionKey)->request();
if ($transactionStatusRequest['Status']['Code']['Code'] == PaymentStatus::SUCCESS) {
// Order is paid
}
$ccTransactionRequest = $buckaroo->getMultiServiceTransactionRequest()
->addService(new CreditcardMastercard)
->addService(new CreditcardVisa)
->addService(new CreditcardAmericanExpress)
->setAmountDebit(12.5)
->setInvoice('inv-123')
->request();
// Redirect the user to: echo $ccTransactionRequest['RequiredAction']['RedirectURL']
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.