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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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

Requirements

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.


All versions of laravel-tripay with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package risekucom/laravel-tripay contains the following files

Loading the files please wait ...