codersstudio/yandex-money-checkout

Package use Yandex Money SDK.

dev-master 2020-12-18 18:19 UTC

This package is auto-updated.

Last update: 2024-04-19 01:27:12 UTC


README

Software License Travis Total Downloads

Install

composer require coderstudio/yandex-money-checkout

Usage

This is package provide base Controller and views for implement Yandex Money payments It's provide webhook url https://some.com/payments/webhook

Config file:

 //API
'store_id' => env('YANDEX_MONEY_STORE_ID',''),
'secret' => env('YANDEX_MONEY_SECRET', ''),

//Payment options
'payment_method_type' => 'bank_card',
'currency' => 'RUB',
'save_payment_method' => true,
'capture' => false,

//Redirect
//Should include order in url template
//Example: /test/{order}
 'success_route' => env('YANDEX_MONEY_SUCCESS_ROUTE', 'yandexmoneycheckout.payments.success'),
 'failed_route' => env('YANDEX_MONEY_FAIL_ROUTE', 'yandexmoneycheckout.payments.failed')

Testing

Run the tests with:

vendor/bin/phpunit

Credits

Security

If you discover any security-related issues, please email info@coders.studio instead of using the issue tracker.

License

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