Skip to content

Commit

Permalink
Replace paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelfi committed Oct 7, 2018
1 parent c2a5dba commit 77774eb
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 29 deletions.
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# phpstorm project files
.idea

# netbeans project files
nbproject

# zend studio for eclipse project files
.buildpath
.project
.settings

# windows thumbnail cache
Thumbs.db

#composer files
composer.lock
vendor
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<a name="0.12.0"></a>
# [0.12.0](https://github.com/yarcode/yii2-free-kassa/compare/0.11.0...0.12.0) (2017-02-04)
# [0.12.0](https://github.com/sdelfi/yii2-free-kassa/compare/0.11.0...0.12.0) (2017-02-04)

### Features

* added CHANGELOG.md

<a name="0.11.0"></a>
# [0.11.0](https://github.com/yarcode/yii2-free-kassa/compare/0.10.0...0.11.0) (2017-02-04)
# [0.11.0](https://github.com/sdelfi/yii2-free-kassa/compare/0.10.0...0.11.0) (2017-02-04)

### Bug Fixes

* yarcode\freekassa\events\GatewayEvent namespace fix
* sdelfi\freekassa\events\GatewayEvent namespace fix
* fixed sign checking
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 YarCode Agency
Copyright (c) 2016 sdelfi Agency

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ The preferred way to install this extension is through [composer](http://getcomp

Either run

php composer.phar require --prefer-dist yarcode/yii2-free-kassa "~1.0"
php composer.phar require --prefer-dist sdelfi/yii2-free-kassa "~1.0"

or add

"yarcode/yii2-free-kassa": "~1.0"
"sdelfi/yii2-free-kassa": "~1.0"

to the `require` section of your composer.json.

Expand All @@ -23,7 +23,7 @@ to the `require` section of your composer.json.
Configure `freeKassa` component in the `components` section of your application.

'freeKassa' => [
'class' => '\yarcode\freekassa\Merchant',
'class' => '\sdelfi\freekassa\Merchant',
'merchantId' => 'YOUR_MERCHANT_ID',
'merchantFormSecret' => 'SECRET_1',
'checkDataSecret' => 'SECRET_2',
Expand All @@ -36,7 +36,7 @@ Configure `freeKassa` component in the `components` section of your application.
To redirect user to PerfectMoney site you need to create the page with RedirectForm widget.
User will redirected right after page load.

<?= \yarcode\freekassa\RedirectForm::widget([
<?= \sdelfi\freekassa\RedirectForm::widget([
'message' => 'Redirecting to payment gateway...',
'api' => Yii::$app->get('freeKassa'),
'invoiceId' => $invoice->id,
Expand All @@ -58,9 +58,9 @@ Sample controller code:
use yii\helpers\ArrayHelper;
use yii\helpers\VarDumper;
use yii\web\Controller;
use yarcode\freekassa\actions\ResultAction;
use yarcode\freekassa\events\GatewayEvent;
use yarcode\freekassa\Merchant;
use sdelfi\freekassa\actions\ResultAction;
use sdelfi\freekassa\events\GatewayEvent;
use sdelfi\freekassa\Merchant;

class PerfectMoneyController extends Controller
{
Expand Down Expand Up @@ -142,6 +142,6 @@ MIT
## Links ##

* [Official site](http://yiidreamteam.com/yii2/free-kassa)
* [Source code on GitHub](https://github.com/yarcode/yii2-free-kassa)
* [Composer package on Packagist](https://packagist.org/packages/yarcode/yii2-free-kassa)
* [Source code on GitHub](https://github.com/sdelfi/yii2-free-kassa)
* [Composer package on Packagist](https://packagist.org/packages/sdelfi/yii2-free-kassa)
* [FreeKassa service](http://yiidreamteam.com/link/free-kassa)
14 changes: 10 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "yarcode/yii2-free-kassa",
"name": "sdelfi/yii2-free-kassa",
"description": "FreeKassa component for Yii2",
"type": "yii2-extension",
"license": "MIT",
Expand All @@ -13,6 +13,12 @@
],
"homepage": "http://yiidreamteam.com/yii2/free-kassa",
"authors": [
{
"name": "Stanislav Salnikov",
"email": "[email protected]",
"homepage": "https://ittricks.ru",
"role": "Developer"
},
{
"name": "Valentin Konusov",
"email": "[email protected]",
Expand All @@ -21,8 +27,8 @@
}
],
"support": {
"issues": "https://github.com/yarcode/yii2-free-kassa/issues",
"source": "https://github.com/yarcode/yii2-free-kassa"
"issues": "https://github.com/sdelfi/yii2-free-kassa/issues",
"source": "https://github.com/sdelfi/yii2-free-kassa"
},
"minimum-stability": "stable",
"require": {
Expand All @@ -32,7 +38,7 @@
},
"autoload": {
"psr-4": {
"yarcode\\freekassa\\": "./src"
"sdelfi\\freekassa\\": "./src"
}
}
}
4 changes: 2 additions & 2 deletions src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @author Valentin Konusov <[email protected]>
*/

namespace yarcode\freekassa;
namespace sdelfi\freekassa;

use GuzzleHttp\Client;
use yii\base\Component;
Expand All @@ -12,7 +12,7 @@

/**
* Class Api
* @package yarcode\freekassa
* @package sdelfi\freekassa
*/
class Api extends Component
{
Expand Down
6 changes: 3 additions & 3 deletions src/Merchant.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @author Valentin Konusov <[email protected]>
*/

namespace yarcode\freekassa;
namespace sdelfi\freekassa;

use GuzzleHttp\Client;
use yii\base\Component;
Expand All @@ -12,11 +12,11 @@
use yii\helpers\VarDumper;
use yii\web\ForbiddenHttpException;
use yii\web\HttpException;
use yarcode\freekassa\events\GatewayEvent;
use sdelfi\freekassa\events\GatewayEvent;

/**
* Class Merchant
* @package yarcode\freekassa
* @package sdelfi\freekassa
*/
class Merchant extends Component
{
Expand Down
4 changes: 2 additions & 2 deletions src/RedirectForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* @author Valentin Konusov <[email protected]>
*/

namespace yarcode\freekassa;
namespace sdelfi\freekassa;

use yii\base\Widget;
use yii\web\View;

/**
* Class RedirectForm
* @package yarcode\freekassa
* @package sdelfi\freekassa
*/
class RedirectForm extends Widget
{
Expand Down
6 changes: 3 additions & 3 deletions src/actions/ResultAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
* @author Valentin Konusov <[email protected]>
*/

namespace yarcode\freekassa\actions;
namespace sdelfi\freekassa\actions;

use yarcode\freekassa\Merchant;
use sdelfi\freekassa\Merchant;
use yii\base\Action;
use yii\base\InvalidConfigException;
use yii\web\Response;

/**
* Class ResultAction
* @package yarcode\freekassa\actions
* @package sdelfi\freekassa\actions
*/
class ResultAction extends Action
{
Expand Down
2 changes: 1 addition & 1 deletion src/events/GatewayEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @author Valentin Konusov <[email protected]>
*/

namespace yarcode\freekassa\events;
namespace sdelfi\freekassa\events;

use yii\base\Event;
use yii\db\ActiveRecord;
Expand Down
2 changes: 1 addition & 1 deletion src/views/redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @author Valentin Konusov <[email protected]>
*
* @var \yii\web\View $this
* @var \yarcode\freekassa\Merchant $api
* @var \sdelfi\freekassa\Merchant $api
* @var integer $invoiceId
* @var float $amount
* @var string $description
Expand Down

0 comments on commit 77774eb

Please sign in to comment.