2017 © Pedro Peláez
 

library buckaroojson

Buckaroo PHP implementation

image

soneritics/buckaroojson

Buckaroo PHP implementation

  • Sunday, July 15, 2018
  • by soneritics
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Build Status Coverage Status Latest Stable License, (*1)

Buckaroo

Buckaroo payment provider implementation classes Connect with Buckaroo through their easy to use JSON API., (*2)

Important!

If you have the problem where floats are serialized the wrong way, add this line to your code:, (*3)

ini_set( 'serialize_precision', -1 );

you have this problem when you get the error: An error occurred while processing the transaction: Total amount of articles does not match the transaction amount (S996), (*4)

Payment methods

Currently, the following payment methods are supported * iDeal * AfterPay (DigiAccept) * Bancontact * KBC * Credit cards: * Mastercard * Visa * American Express * Debit cards: * VPay * Maestro * Visa Electron * Carte Bleue * Carte Bancaire * Dankort, (*5)

Example

Some example code has been added in the Examples folder. A sneak peek below :-), (*6)

$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
}

Multiple payment methods

When you want the customer to make a choice for the payment method, but you do not want it on your own site, that's also possible. You can use the MultiServiceTransactionRequest for that. This is something that's commonly used for creditcard transactions., (*7)

$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']

## Change list , (*8)

Version Breaking Changes Notes
1.* No Implement Refund, Authorize, Capture, etc. On request only!
2.0 Yes Map the responses to proper objects

The Versions

15/07 2018