Download the PHP package saeidgi/blupay without Composer
On this page you can find all versions of the php package saeidgi/blupay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download saeidgi/blupay
More information about saeidgi/blupay
Files in saeidgi/blupay
Package blupay
Short Description BluPay (SEP / pg-neo) payment gateway for Laravel
License MIT
Informations about the package blupay
LidLike BluPay (SEP / pg-neo) for Laravel
About This Package
BluPay was initially developed as an internal utility for personal use in real-world projects. To facilitate adoption and reduce integration effort for other development teams, it was later refactored and published as an independent, open-source package with clear documentation.
A lightweight Laravel package for integrating SEP (Saman Electronic Payment) Internet Payment Gateway (IPG), including pg-neo behavior.
📘 Persian Documentation:
برای مطالعه راهنمای فارسی این پکیج، به فایل
README.fa.md
مراجعه کنید.
Features
- Request Token (JSON POST)
- Redirect customer to payment page (POST form or GET SendToken)
- Verify transaction
- Reverse transaction
- Supports pg-neo: reads payment URL from
X-IPG-Urlheader when provided
Requirements
- PHP >= 8.1
- Laravel 10 / 11 / 12
- guzzlehttp/guzzle ^7
Installation
Configuration
Add to .env:
Optional endpoint overrides:
Usage
1) Request Token
2) Redirect Customer to Payment Gateway
Option A: GET Redirect (SendToken)
Option B: POST Form Redirect (OnlinePG)
If you prefer POST redirect (HTML form), use the documented OnlinePG action endpoint.
3) Handle Callback + Verify
4) Reverse Transaction
pg-neo Support (Important)
In pg-neo, after requesting token, the gateway base URL may be returned in response headers:
- Header:
X-IPG-Url - Example:
https://neo-pg.sep.ir/transaction/init
This package exposes that header via:
License
MIT
Disclaimer
This package is an independent open-source client implementation based on publicly available technical documentation of the SEP payment gateway. It is not an official product of Saman Electronic Payment and is provided "as is" without any warranty.