Download the PHP package digitaldev-lx/laravel-eupago without Composer
On this page you can find all versions of the php package digitaldev-lx/laravel-eupago. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download digitaldev-lx/laravel-eupago
More information about digitaldev-lx/laravel-eupago
Files in digitaldev-lx/laravel-eupago
Package laravel-eupago
Short Description A Laravel package for making payments through the EuPago API.
License MIT
Informations about the package laravel-eupago
Laravel EuPago
A Laravel package for making payments through the EuPago API based in CodeTech's laravel-eupago package. Well Done CodeTech's Team.
Requirements
Release | PHP | Laravel |
---|---|---|
2.2.0 | >= 8.3 | 11 |
2.1.0 | >= 8.1 | 10 |
Installation
Install the PHP dependency in laravel 11:
Install in Laravel 10:
Publish the migration
Run the migration
Publish the configuration file (optional)
Publish the translations files (optional)
Configurations
Environment
There are two environments available for you to use: "test" and "prod". As you may have guessed, you can use the "test" environment during the development stage of your application. Switch to "prod" environment when your application is ready for production.
MB References
Usage
For creating a MB reference, take the following example:
$referenceData
will contain all the information about the payment:
Use the trait on the models for which you want to generate MB references:
Retrieve the MB references:
Callback
The package already handles the callback, updating the payment reference state and triggering an MBReferencePaid
event.
To handle MB references, you need to set mp param to PC:PT
Params
Name | Type |
---|---|
valor | float |
canal | string |
referencia | string |
transacao | string |
identificador | integer |
mp | string |
chave_api | string |
data | date:Y-m-d H:i:s |
entidade | string |
comissao | float |
local | string |
MB Way References
Usage
Use the trait on the models for which you want to generate MB Way references:
Retrieve the MB Way references:
Callback
The package already handles the callback, updating the payment reference state and triggering an MBWayReferencePaid
event.
To handle MB references, you need to set mp param to MW:PT
Params
Name | Type |
---|---|
valor | float |
canal | string |
referencia | string |
transacao | string |
identificador | integer |
mp | string |
chave_api | string |
data | date:Y-m-d H:i:s |
entidade | string |
comissao | float |
local | string |
License
digitaldev-lx/laravel-eupago is open-sourced software licensed under the MIT license.
About DigitalDev
DigitalDev is a web development agency based on Lisbon, Portugal. We specialize in Laravel, Livewire, and Tailwind CSS. Codeboys is our special partner and we work together to deliver the best solutions for our clients.