LaravelPackages.net
Acme Inc.
Toggle sidebar
eleven59/backpack-shop-mollie

Handy dandy Mollie payments trait for my BackpackShop package

12
0
0.1.5
About eleven59/backpack-shop-mollie

eleven59/backpack-shop-mollie is a Laravel package for handy dandy mollie payments trait for my backpackshop package. It currently has 0 GitHub stars and 12 downloads on Packagist (latest version 0.1.5). Install it with composer require eleven59/backpack-shop-mollie. Discover more Laravel packages by eleven59 or browse all Laravel packages to compare alternatives.

Last updated

BackpackShopMollie

Latest Version on Packagist Total Downloads

This package provides Mollie payment integrations for the eleven59/backpack-shop package.

Installation

Via Composer

composer require eleven59/backpack-shop-mollie

Usage

To use the paymentprovider, update config/backpack-shop.php with the following:

'payment_provider' => \Eleven59\BackpackShopMollie\Models\PaymentProvider::class,

And make sure to add the following to your .env file:

MOLLIE_KEY="your-mollie-key"

The rest should work out of the box. Optionally, however, you can publish config file and edit the default currency, locale, and webhook url:

php artisan vendor:publish --provider="Eleven59\BackpackShop\AddonServiceProvider" --tag="config"

Displaying Payment Methods

This is pretty straightforward. The eleven59/backpack-shop already provides the global shoppingcart() helper, which works out of the box with this payment method. So the same code works for the default no payment and this one:

<select name="payment_method"> @foreach(shoppingcart()->getPaymentMethods() as $method) <option value="{{ $method['id'] }}" {{ old('payment_method', 'ideal') === $method['id'] ? 'selected' : '' }}>{{ $method['description'] }}</option> @endforeach </select>

This package automatically gets the enabled and active methods from Mollie, so whichever methods are active in your Mollie dashboard should automatically show up here and work perfectly.

Change log

Changes are documented here on Github. Please browse the commit history.

Breaking changes will be listed here, however. None so far.

Testing

This package provides no testing.

Contributing

Please see contributing.md for a todolist and howtos.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

This project was released under MIT, so you can install it on top of any Backpack & Laravel project. Please see the license file for more information.

However, please note that you do need Backpack installed, so you need to also abide by its YUMMY License. That means in production you'll need a Backpack license code. You can get a free one for non-commercial use (or a paid one for commercial use) on backpackforlaravel.com.

Comments