laravel-aviagram-gateway maintained by rublex
Laravel Aviagram Gateway
A Laravel payment gateway package for Aviagram integration.
Features
- Create payment form via Aviagram API
- EUR-only currency enforcement
- Configurable via environment variables
- Laravel facade support
Installation
composer require rublex/laravel-aviagram-gateway
Configuration
Publish the configuration file:
php artisan vendor:publish --provider="Aviagram\AviagramServiceProvider" --tag="aviagram-config"
Add credentials to your .env file:
AVIAGRAM_BASE_URL=https://aviagram.app
AVIAGRAM_CLIENT_ID=
AVIAGRAM_CLIENT_SECRET=
Quick Start
use Aviagram\Data\OrderData;
use Aviagram\Facades\Aviagram;
$response = Aviagram::createForm(
new OrderData(
amount: '15',
currency: 'EUR',
)
);
Documentation
For installation and usage instructions, see USAGE.md.
License
This package is open-sourced software licensed under the MIT license.