Download the PHP package eleven59/backpack-shop-mollie without Composer
On this page you can find all versions of the php package eleven59/backpack-shop-mollie. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eleven59/backpack-shop-mollie
More information about eleven59/backpack-shop-mollie
Files in eleven59/backpack-shop-mollie
Package backpack-shop-mollie
Short Description Handy dandy Mollie payments trait for my BackpackShop package
License MIT
Homepage https://github.com/eleven59/backpack-shop-mollie
Informations about the package backpack-shop-mollie
BackpackShopMollie
This package provides Mollie payment integrations for the eleven59/backpack-shop package.
Installation
Via Composer
Usage
To use the paymentprovider, update config/backpack-shop.php with the following:
And make sure to add the following to your .env file:
The rest should work out of the box. Optionally, however, you can publish config file and edit the default currency, locale, and webhook url:
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:
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.
Displaying Issuers and other dependencies
This is completely optional, as Mollie allows you to just specify the payment method and will make you pick an issuer on their end when it is not specified here. The eleven59/backpack-shop, however, also allows you to make customers pick the issuer within your site. This also skips the Mollie branded screen that would otherwise interrupt your customer's experience.
Here's how to:
Step 1. Add class to the payment method selector to indicate that it has dependencies
Step 2. Add a field for the dependencies
This field is initially hidden – we will make sure it gets displayed below
This code will automatically show the issuers with the correct field name for Mollie to process them when submitting the request.
Step 3. Add JS to show/hide the dependent fields dynamically
I'm using jQuery here, because I'm lazy like that.
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
- Author: eleven59.nl
- Built on top of eleven59/backpack-shop package. Please find additional credits there.
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.
All versions of backpack-shop-mollie with dependencies
backpack/crud Version ^5.0.0
backpack/pro Version ^1.0.0
eleven59/backpack-shop Version *
mollie/laravel-mollie Version ^2.0