[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: mollie_connect.md
 # Using Mollie Connect with Laravel Socialite (Oauth) [Mollie Connect](https://docs.mollie.com/oauth/overview) allows you to create apps for Mollie merchants via OAuth. ## Why should I use OAuth? Mollie Connect is built on the [OAuth standard](https://en.wikipedia.org/wiki/OAuth). The OAuth connection enables you to access other merchants’ accounts with their consent, without having to exchange API keys. Whether you are just looking to improve your customers’ experiences, to automate essential business processes, or to whitelabel our platform completely, it is all possible with OAuth. Our OAuth platform allows you to: - Create payments and refunds on behalf of merchants - Manage merchants’ website profiles - View a merchants’ transaction and settlement data - Show the next settlement and balance at Mollie in your app - Integrate merchants’ invoices from Mollie in your app - Charge merchants for payments initiated through your app ([application fees](https://docs.mollie.com/oauth/application-fees)) ## Installation Make sure the Laravel Socialite package is installed. Then update `config/services.php` by adding this to the array: ```php 'mollie' => [ 'client_id' => env('MOLLIE_CLIENT_ID', 'app_xxx'), 'client_secret' => env('MOLLIE_CLIENT_SECRET'), 'redirect' => env('MOLLIE_REDIRECT_URI'), ], ``` Then add the corresponding credentials (`MOLLIE_CLIENT_ID`, `MOLLIE_CLIENT_SECRET`, `MOLLIE_REDIRECT_URI`) to your `.env` file. ## Example usage ```php Route::get('login', function () { return Socialite::with('mollie') ->scopes(['profiles.read']) // Additional permission: profiles.read ->redirect(); }); Route::get('login_callback', function () { $user = Socialite::with('mollie')->user(); Mollie::api()->setAccessToken($user->token); return Mollie::api()->profiles()->page(); // Retrieve payment profiles available on the obtained Mollie account }); ```
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.87 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:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002