December 2, 2020

WeAnswer

The complete guide to the beginners as well as to the experienced Web Developers

Mollie Payment – PHP Laravel

config/app.php

providers

-Mollie\Laravel\MollieServiceProvider::class,

aliases

‘Mollie’ => Mollie\Laravel\Facades\Mollie::class,

 

config/mollie.php

MOLLIE_KEY : update with your test key

routes/api.php

Route::get(‘/subscribe_plan’, ‘SubscriptionController@subscribePlan’);

Route::post(‘/subscription_webhooks’, ‘SubscriptionController@webhooks’)->name(‘webhooks.mollie’);

Route::get(‘/subscription_completed’, ‘SubscriptionController@completed’)->name(‘order.success’);

Database Table :

 

 

SubscriptionController.php