tricciardi / laravel-multibanco
There is no license information available for the latest version (v2.0.11) of this package.
This package will add Easypay and IfThen MB payment methods
v2.0.11
2022-08-12 12:36 UTC
Requires
- doctrine/dbal: ^2.9
- guzzlehttp/guzzle: ^7.0
This package is auto-updated.
Last update: 2025-04-12 18:08:32 UTC
README
Instalation
composer require tricciardi/laravel-multibanco
Usage
<?php
namespace App\Http\Controllers;
use tricciardi\LaravelMultibanco\Multibanco;
class TestController extends Controller
{
public function index() {
$multibanco = new Multibanco;
$reference = $multibanco->getReference(1,1, '2018-11-30');
//make mbway purchase
$mbway = $multibanco->mbway_authorize('teste','9xxxxxxxxx');
}
}
Config
php artisan vendor:publish
define options on config/multibanco.php
Console Commands
To process received notifications run
php artisan mb:getpayments
To get all paid references from Easypay and process them:
php artisan mb:getdaily