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

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