Download the PHP package ashikkaiser/laravel-webmoney-merchant without Composer

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

Laravel payment processor package for WebMoney Merchant

Latest Stable Version Build Status SensioLabsInsight Quality Score Total Downloads License

Accept payments via WebMoney Merchant (merchant.webmoney.ru) using this Laravel framework package (Laravel).

You can accept payments with WebMoney Merchant via WebMoney, credit cards etc.

Installation

You can install the package through Composer:

Add the service provider to the providers array in config/app.php:

Add the WebMoneyMerchant facade to your facades array:

Publish the configuration file and views

Publish only the configuration file

Publish only the views

Configuration

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

Usage

1) Generate an HTML payment form with enabled payment methods:

Customize the HTML payment form in the published view:

app/resources/views/vendor/webmoney-merchant/payment_form.blade.php

2) Process the request from WebMoneyMerchant:

Important

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

Example

The process scheme:

  1. The request comes from merchant.webmoney.ru GET http://yourproject.com/webmoney/result to check if your website is available.
  2. The request comes from merchant.webmoney.ru POST http://yourproject.com/webmoney/result (with params).
  3. The functionExampleController@payOrderFromGate runs the validation process (auto-validation request params).
  4. The static function searchOrderFilter will be called (see config/webmoney-merchant.php searchOrderFilter) to search the order by the unique id.
  5. If the current order status is NOT paid in your database, the static function paidOrderFilter will be called (see config/webmoney-merchant.php paidOrderFilter).

Add the route to routes/web.php:

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

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

Changelog

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

Testing

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-webmoney-merchant with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2.5|^8.0
laravel/framework Version ^7.29
guzzlehttp/guzzle Version ^7.3
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 ashikkaiser/laravel-webmoney-merchant contains the following files

Loading the files please wait ....