Download the PHP package gmbfgp/uabpayment without Composer
On this page you can find all versions of the php package gmbfgp/uabpayment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package uabpayment
💳 UAB Payment Laravel Package
A Laravel package to integrate UAB TransactEase v1.7 Payment Gateway.
📑 Table of Contents
- Features
- Installation
- Configuration
- Example Usage
- Methods
- Security Notes
- License
- Credits
✅ Features
- Generate signed UAB payment form
- Secure callback and redirect signature verification
- Transaction status check
- Token-based login flow
- Designed for Laravel projects
📦 Installation
Install via Composer:
⚙️ Configuration
-
Publish Config File:
- Add the following to your .env file:
🚀 Example Usage
🧰 Methods
-
uab($amount, array $extraFields): array
- Generates the URL and signed form fields to initiate a UAB payment.
Example:
-
checkCallbackSignature(array $data): bool
- Validates the HMAC signature received from UAB in a callback.
Example:
-
checkRedirectSignature(array $data): bool
- Validates the redirect signature (used in front-end return/cancel URLs).
Example:
-
getSignString(array $fields): string
- Generates the sign string used before hashing, based on sorted key-value pairs.
Example:
-
hashSignature(string $signString): string
- Creates an HMAC hash using your app’s secret key.
Example:
-
generateMsgInfo(string $msgType): array
- Generates a standard message information structure for UAB API requests.
-
getLoginToken(): ?string
- Makes an API request to UAB's login endpoint to retrieve an access token using client credentials.
-
getTransactionStatus(string $requestId): ?array
- Fetches transaction status from UAB by RequestID.
🔒 Security Notes
-Always use checkCallbackSignature() on UAB’s callback endpoint.
-Ensure system time is synced to avoid signature mismatch errors.
-Never expose your secret key or credentials in frontend code.
📝 License
MIT License — See the LICENSE file for more information.
👨💻 Credits
Made by Pyae Sone Phyo for GMBF Tech.
All versions of uabpayment with dependencies
PHP Build Version
Package Version
Requires
guzzlehttp/guzzle Version
^6.5 || ^7.0
The package gmbfgp/uabpayment contains the following files
Loading the files please wait ...