Download the PHP package codetech/laravel-eupago without Composer
On this page you can find all versions of the php package codetech/laravel-eupago. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codetech/laravel-eupago
More information about codetech/laravel-eupago
Files in codetech/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.
Installation
Install the PHP dependency
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 MBWayReferencePaid
event.
Params
Name | Type |
---|---|
valor | float |
canal | string |
referencia | string |
transacao | string |
identificador | integer |
mp | string |
chave_api | string |
data | date time |
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.
Params
Name | Type |
---|---|
valor | float |
canal | string |
referencia | string |
transacao | string |
identificador | integer |
mp | string |
chave_api | string |
data | date time |
entidade | string |
comissao | float |
local | string |
License
codetech/laravel-eupago is open-sourced software licensed under the MIT license.
About CodeTech
CodeTech is a web development agency based on Matosinhos, Portugal. Oh, and we LOVE Laravel!