Download the PHP package lahirulhr/laravel-payhere without Composer

On this page you can find all versions of the php package lahirulhr/laravel-payhere. 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-payhere

Laravel PayHere

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

[](http://laravel.com)
[](http://payhere.lk)

Laravel - PayHere was made to manage PayHere payment gateway on your laravel application with ease. currently this package supports all available methods on official PayHere documentation.

Read official Documentation for more information

Available API methods

✔️ Checkout API
✔️ Recurring API
✔️ Preapproval API
✔️ Charging API
✔️ Retrieval API
✔️ Subscription Manager API
✔️ Refund API
✔️ Authorize API
✔️ Capture API

Basic Usage

Installation

You can install the package via composer:

You can publish the config file with:

This is the contents of the published config file:

Usage

Checkout API

Checkout API lets you integrate PayHere with your website, web application or any other application in code level. It offers a simple HTML Form to initiate a payment request and redirect your customer to PayHere Payment Gateway to securely process the payment.

Handling the server callback

PayHere will be notified your application with response data using public url POST request callback. then this package will emit a new event with their callback data. you just need to listen on an event and do anything you want with payload data.

Available Events

Example:

Recurring API

Recurring API is accept data array same as checkout API. the only things you need to change checkOut() method to recurring().

The following options are available for making adjustment to recurring period

Preapproval API

Use same as checkout method

Charging API

Charging API lets you charge your preapproved customers programatically on demand using the encrypted tokens. it will return response data array on success or return PayHereException if any error.

Retrieval API

Retrieval API lets you retrieve the details of the Successful payments processed through your PayHere

Subscription Manager

Subscription Manager API lets you view, retry & cancel your subscription customers programmatically you subscribed from Recurring API.

Refund API

Refund API lets you refund your existing payment programmatically.

Authorize API

Authorize API allows you to get your customer authorization for Hold on Card payments. this method will redirect user to payment page

Capture API

Capture API lets you capture your authorized Hold on Card payments programmatically on demand using the authorization tokens you retrieved from Payment Authorize API.


TODO

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-payhere with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.8
illuminate/contracts Version ^9.0|^10.0|^11.0
spatie/laravel-package-tools Version ^1.9.2
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 lahirulhr/laravel-payhere contains the following files

Loading the files please wait ....