Download the PHP package maksa988/laravel-freekassa without Composer

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

Laravel payment processor package for FreeKassa gateway

Latest Stable Version Build Status StyleCI CodeFactor Total Downloads License

Accept payments via FreeKassa (free-kassa.ru) using this Laravel framework package (Laravel).

Laravel >= 8.*, PHP >= 7.3

To use the package for Laravel 7.* use the 3.x branch

To use the package for Laravel 6.* use the 2.x branch

To use the package for Laravel 5.* use the 1.x branch

Installation

Require this package with composer.

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

Add the FreeKassa facade to your facades array:

Copy the package config to your local config with the publish command:

Configuration

Once you have published the configuration files, please edit the config file in config/freekassa.php.

Usage

1) Generate a payment url or get redirect:

You can add custom fields to your payment:

$email and $phone can be null.

2) Process the request from FreeKassa:

Important

You must define callbacks in config/freekassa.php to search the order and save the paid order.

Example

The process scheme:

  1. The request comes from free-kassa.ru GET / POST http://yourproject.com/freekassa/result (with params).
  2. The functionFreeKassaController@handlePayment runs the validation process (auto-validation request params).
  3. The method searchOrder will be called (see config/freekassa.php searchOrder) to search the order by the unique id.
  4. If the current order status is NOT paid in your database, the method paidOrder will be called (see config/freekassa.php paidOrder).

Add the route to routes/web.php:

Note: don't forget to save your full route url (e.g. http://example.com/freekassa/result ) for your project on free-kassa.ru.

Create the following controller: /app/Http/Controllers/FreeKassaController.php:

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please send me an email at [email protected] instead of using the issue tracker.

Credits

License

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


All versions of laravel-freekassa with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
laravel/framework Version 8.*
guzzlehttp/guzzle Version 7.*
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 maksa988/laravel-freekassa contains the following files

Loading the files please wait ....