buckaroo / sdk
Buckaroo payment SDK
Installs: 62 876
Dependents: 5
Suggesters: 0
Security: 0
Stars: 11
Watchers: 9
Forks: 7
Open Issues: 1
Requires
- php: ^8.1
- ext-fileinfo: *
- ext-json: *
- ext-pcre: *
- composer/ca-bundle: ^1.3
- guzzlehttp/guzzle: ^7.0
- monolog/monolog: ^2.2|^3
- ramsey/uuid: ^3.9.7|^4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.13
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: 3.*
- symfony/var-dumper: ^5.4.9
- vlucas/phpdotenv: ^5.4
- dev-master
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.1
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.1
- 1.8.0
- 1.7.6
- 1.7.5
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.1
- 1.6.0
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- dev-develop
- dev-prod-prepare
- dev-BA-628-fix-utf8-encoding-in-base64data
- dev-BA-583-remove-sofort
- dev-BA-591-klarna-add-articleProductUrl-articleImageUrl
- dev-update-version
- dev-BA-557-fix-klarnakp-cancel-reserve-bug
- dev-BA-543-update-supported-php-version
- dev-BA-542-update-changelog
- dev-BA-520-remove-giropay
- dev-BA-370-php-function-as-parameter-issue
- dev-BA-350-make-pushurl-optional
- dev-method-to-retrieve-hash
- dev-minor-fix
- dev-BA-276
- dev-update-readme
- dev-feature/BA-134
- dev-bugfix/sonarqube
- dev-actions
- dev-bugfix/push-url-in-batch
- dev-2.x-dev
- dev-bugfix/monolog-v3
This package is auto-updated.
Last update: 2024-11-21 14:03:56 UTC
README
Buckaroo PHP SDK
Index
- About
- Requirements
- Composer Installation
- Requirements
- Example
- Contribute
- Versioning
- Additional information
About
Buckaroo is the the Payment Service Provider for all your online payments with more than 30,000 companies relying on Buckaroo's platform to securely process their payments, subscriptions and unpaid invoices. Buckaroo developed their own PHP SDK. The SDK is a modern, open-source PHP library that makes it easy to integrate your PHP application with Buckaroo's services. Start accepting payments today with Buckaroo.
Requirements
To use the Buckaroo API client, the following things are required:
Composer Installation
By far the easiest way to install the Buckaroo API client is to require it with Composer.
$ composer require buckaroo/sdk:^1.0
{
"require": {
"buckaroo/sdk": "^1.0"
}
}
Example
Create and config the Buckaroo object. You can find your credentials in plaza WEBSITE_KEY and SECRET_KEY
require __DIR__ . '/vendor/autoload.php'; # 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 payment with all the available payment methods. In this example, we show how to create a credit card payment. Each payment has a slightly different payload.
# 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 ]);
After you create a transaction, you can retrieve several transaction information on demand.
# Retrieve transaction information $transaction = $buckaroo->transaction('YOUR-TRANSACTION-KEY') $transaction->status(); // Retrieve transaction status $transaction->refundInfo(); // Retrieve refund info $transaction->cancelInfo() // Retrieve cancellation info
Find our full documentation online on docs.buckaroo.io.
Contribute
We really appreciate it when developers contribute to improve the Buckaroo plugins. If you want to contribute as well, then please follow our Contribution Guidelines.
Versioning
- MAJOR: Breaking changes that require additional testing/caution
- MINOR: Changes that should not have a big impact
- PATCHES: Bug and hotfixes only
Additional information
- Support: https://docs.buckaroo.io/docs/contact-us
- Contact: support@buckaroo.nl or +31 (0)30 711 50 50
License
Buckaroo PHP SDK is open-sourced software licensed under the MIT license.