tricciardi / laravel-multibanco
本包最新版本(v2.0.11)未提供许可证信息。
本包将添加Easypay和IfThen MB支付方式。
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: 2024-09-12 17:00:01 UTC
README
安装
composer require tricciardi/laravel-multibanco
使用
<?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');
}
}
配置
php artisan vendor:publish
define options on config/multibanco.php
控制台命令
要处理接收到的通知,请运行
php artisan mb:getpayments
要获取所有Easypay的付款参考并处理它们,请运行
php artisan mb:getdaily