Download the PHP package risekucom/laravel-tripay without Composer
On this page you can find all versions of the php package risekucom/laravel-tripay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download risekucom/laravel-tripay
More information about risekucom/laravel-tripay
Files in risekucom/laravel-tripay
Package laravel-tripay
Short Description Unofficial Laravel package for Tripay Payment API.
License MIT
Informations about the package laravel-tripay
Laravel Tripay
A Laravel package for integrating with the Tripay Payment Gateway API. This package provides a simple and elegant way to interact with Tripay's payment services in your Laravel applications.
Features
- Simple integration with Tripay payment gateway
- Support for closed and open payment transactions
- Payment channel management
- Transaction fee calculations
- Callback verification
- Laravel-friendly response handling
Requirements
- PHP 8.1 or higher
- Laravel 10.0 or higher
Installation
You can install the package via composer:
Configuration
After installation, publish the configuration file:
This will create a config/tripay.php file in your config directory. Edit this file with your Tripay API credentials:
Then, add these variables to your .env file:
Set TRIPAY_API_PRODUCTION to true when you're ready to process real payments.
Usage
Basic Usage
Available Methods
Get Payment Channel List
Retrieve available payment channels from Tripay:
Official Documentation: Payment Channel List
Get Payment Instructions
Retrieve payment instructions for a specific payment method:
Official Documentation: Payment Instructions
Calculate Transaction Fee
Get fee details for a specific payment method and amount:
Official Documentation: Transaction Fee
Create Closed Transaction
Create a new closed payment transaction:
Official Documentation: Create Closed Transaction
Get Closed Transaction Details
Retrieve details of a closed transaction:
Official Documentation: Transaction Detail
Create Open Transaction
Create a new open payment transaction:
Official Documentation: Create Open Transaction
Get Open Transaction Details
Retrieve details of an open transaction:
Official Documentation: Open Transaction Detail
Get Open Transaction List
Retrieve a list of open transactions:
Official Documentation: Open Transaction List
Get Merchant Transaction List
Get a list of merchant transactions:
Official Documentation: Merchant Transaction List
Verify Callback Data
Verify the authenticity of callback data from Tripay:
Official Documentation: Callback
Response Handling
All methods return a Laravel Collection instance, which provides a fluent interface for working with the response data:
Error Handling
The package returns error responses in this format:
You can handle these errors in your application:
Testing
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
Acknowledgments
This is an unofficial package and is not affiliated with Tripay. Always refer to the official Tripay documentation for the latest API details.