Download the PHP package arielmejiadev/pagalogt without Composer
On this page you can find all versions of the php package arielmejiadev/pagalogt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arielmejiadev/pagalogt
More information about arielmejiadev/pagalogt
Files in arielmejiadev/pagalogt
Package pagalogt
Short Description PagaloGT payment processing library that provides a fluent syntax, testing methods and has Cybersource implementation.
License MIT
Homepage https://github.com/arielmejiadev/pagalogt
Informations about the package pagalogt
Laravel Payment processing library for PagaloGT
It provides a fluent syntax to make payments in Laravel with PagaloGT payment gateway.
To learn more about the package here the documentation site
Installation
You can install the package via composer:
Publish config file
Its not necessary but you can publish the config file:
Usage
- Add your PagaloGT credentials on the app file:
You can get the credentials Here, you need to create an account and follow some steps with PagaloGT.
-
For development and testing (to avoid real transactions):
-
Using the Facade
- On production
Validate response
In Laravel 5.5 to Laravel 6.x
The package provide constants to validate response you can do something like:
To avoid magic numbers you can do something like this:
In Laravel 7 and 8
You can use the old validation way (since Laravel 5.5 - 6.x)
In laravel 7 and 8 the library change response, so you can validate like this:
Other methods to validate:
Support Cybersource:
The library is ready to support cybersource transactions, it only needs to add a config variable:
You need to add a script to generate the on your checkout form.
In the docs you can get scripts ready to use for:
- Blade file: Cybersource Script for blade files
- VueJS file: (pending)
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.