1. Go to this page and download the library: Download buckaroo/sdk 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/ */
buckaroo / sdk example snippets
# Get your website & secret key in your plaza.
# You can perform a test payment by giving the third param with the string "test", on default it is set on "test".
# By changing the value of the third parameter to "live", a live transaction can be performed.
$buckaroo = new \BuckarooClient('WEBSITE_KEY', 'SECRET_KEY', 'test');
# Create a new payment
$buckaroo->method('creditcard') // Input the desire payment method.
->pay([
'name' => 'visa', // Request to pay with Visa
'amountDebit' => 10, // The amount we want to charge
'invoice' => 'UNIQUE-INVOICE-NO', // Each payment must contain a unique invoice number
]);
# Retrieve transaction information
$transaction = $buckaroo->transaction('YOUR-TRANSACTION-KEY')
$transaction->status(); // Retrieve transaction status
$transaction->refundInfo(); // Retrieve refund info
$transaction->cancelInfo() // Retrieve cancellation info
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.