Download the PHP package paradox-nl/laravel-mollie without Composer
On this page you can find all versions of the php package paradox-nl/laravel-mollie. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download paradox-nl/laravel-mollie
More information about paradox-nl/laravel-mollie
Files in paradox-nl/laravel-mollie
Package laravel-mollie
Short Description Laravel Wrapper for the Mollie API
License MIT
Informations about the package laravel-mollie
Laravel Mollie
This package allows you to use Mollie within Laravel 5.X.
Installation
To install this library use the following command
Next up register the ServiceProvider
And register the alias (optional)
To publish the config:
The config is now located in . Here you can set an API key and the webhooks url
Original documentation
https://www.mollie.com/en/docs/overview
Methods
This package provides a couple methods straight out of the box, however if you wish to use the native methods you can use the and use the native Mollie API client.
Create payment
Method to create a new payment
Parameters | Type | Explanation |
---|---|---|
id | integer | Self generated order id (mollie uses time() as default) |
amount | decimal | The amount in EURO that you want to charge, e.g. 100.00 if you would want to charge €100.00. |
description | string | The description of the payment you're creating. This will be shown to the consumer on their card or bank statement when possible. |
type | enum | IDEAL,PAYPAL, PAYSAFECARD, CREDITCARD, MISTERCASH, SOFORT, BANKTRANSFER, DIRECTDEBIT, BITCOIN, BELFIUS, PODIUMCADEAUKAART |
parameters | array (optional) | Extra request parameters, see official documentation for options |
meta_data | array (optional) | Extra meta data to be added to the request, can be retrieved later on. |
Example:
Returns
isPaid
Method to check whether an order is paid or not.
Returns
boolean
isOpen
Method to check whether an order is open.
Returns
boolean
History
Method to list all transactions with a pagination, configurable by config.
Returns
Array containing list of past transactions.
getClient
Returns the native Mollie API client
Returns
Mollie_API_Client