Download the PHP package buckaroo/laravel without Composer

On this page you can find all versions of the php package buckaroo/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel

Buckaroo — Laravel Wrapper

Buckaroo for Laravel

Latest release PHP version License Documentation

About · Requirements · Installation · Configuration · Usage · Testing · Support · Contribute


About

This package integrates the Buckaroo payment gateway into a Laravel application. It wraps the Buckaroo PHP SDK in Laravel conventions: a service provider, a facade, publishable config, migrations and routes for the return and push callbacks.

Use it to start payments and to handle refunds, captures and authorization cancellations. Every part is designed to be overridden, so you can swap the transaction model or define your own routes without forking the package.

If you run a shop on a supported e-commerce platform, use the ready-made plugin for Magento 2, Shopware 6, WooCommerce or Odoo instead. This package is for custom Laravel applications.

Full wrapper documentation on docs.buckaroo.io. For request parameters and service codes, see the API reference.


Requirements

Requirement Supported versions
PHP 8.0 or higher
Laravel 9, 10, 11, 12 and 13
Buckaroo PHP SDK 1.10 or higher (installed automatically)

You also need a Buckaroo account and an up-to-date SSL/TLS toolkit such as OpenSSL. Don't have an account yet? Request an account.


Installation

Install the package with Composer:

Publish the configuration, migrations and routes:

Run the migrations to create the transaction table:


Configuration

Add your credentials to .env. You can find both keys under API credentials in Buckaroo Plaza.

Set BPE_MODE to test while developing and to live in production. The client is initialised automatically during the application boot, so no further wiring is needed.

[!NOTE] The Store key was previously called the Website key. The environment variable is still named BPE_WEBSITE_KEY for backwards compatibility.

Excluding the push route from CSRF verification

Buckaroo cannot send a CSRF token with its push messages, so the package's routes must be excluded from CSRF verification.

On Laravel 11 and higher, add this to bootstrap/app.php:

On Laravel 9 and 10, add the path to the $except array in app/Http/Middleware/VerifyCsrfToken.php:

If you changed the route prefix, use that prefix instead of buckaroo.

Overriding the transaction model The package stores transactions using `Buckaroo\Laravel\Models\BuckarooTransaction`. Point `config/buckaroo.php` at your own model to extend it:
Customising the routes The package registers routes for the return and push callbacks. Change the prefix, or turn them off and define your own, in `config/buckaroo.php`:
Initialising the client manually

Usage

Starting a payment

Use PayService with PaymentMethodFactory. Pass a payload array:

Or use the setter methods, which are equivalent:

Passing noservice lets the customer pick a method from servicesSelectableByClient. Pass a service code such as ideal to start a payment with one specific method.

Calling the API directly

For full control, address the wrapper directly:

Replace ideal with any service code, and pay with the action you need, such as refund. Service codes for every payment method are listed in the API reference.

Other services

RefundService, CaptureService and CancelAuthorizeService follow the same pattern as PayService.


Testing

Code style is enforced with Laravel Pint:


Support

Having trouble? Work through this list before reaching out:

  1. Check the wrapper documentation.
  2. Confirm you are on the latest release.
  3. Reproduce the issue with BPE_MODE=test and check your Laravel log.
  4. Verify that your push URL is reachable from outside your network. Buckaroo sends push messages from fixed IP addresses and ports, so make sure these are on your allow list. See push messages for the current list.

Still stuck? Contact us and include your PHP version, Laravel version, package version, the relevant log lines and the transaction key.


Contribute

We really appreciate it when developers help improve the Buckaroo wrappers. Please read our Contribution Guidelines before opening a pull request, and target the main branch.

Found a security issue? Please report it privately to [email protected] instead of opening a public issue.


Versioning

We follow semantic versioning (MAJOR.MINOR.PATCH):

All changes are documented on the releases page.


License

This package is open source software licensed under the MIT license.


Made with care by Buckaroo.
This document is subject to change; typos and language errors are possible.


All versions of laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
buckaroo/sdk Version ^1.10.0
laravel/framework Version ^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^9.0|^10.0|^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package buckaroo/laravel contains the following files

Loading the files please wait ...