-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Google pay for version 2.0
- Loading branch information
Ondra Votava
committed
Feb 1, 2019
1 parent
d2620ce
commit 8b1dd22
Showing
14 changed files
with
1,183 additions
and
1,100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,41 +8,42 @@ | |
|
||
namespace Pixidos\GPWebPay\Components; | ||
|
||
use Pixidos\GPWebPay\Intefaces\IProvider; | ||
use Pixidos\GPWebPay\Intefaces\IOperation; | ||
use Pixidos\GPWebPay\Intefaces\IProvider; | ||
|
||
/** | ||
* Class GPWebPayControlFactory | ||
* @package Pixidos\GPWebPay\Componets | ||
* @author Ondra Votava <[email protected]> | ||
*/ | ||
|
||
class GPWebPayControlFactory | ||
{ | ||
|
||
/** | ||
* @var IProvider $provider | ||
*/ | ||
private $provider; | ||
|
||
/** | ||
* GPWebPayControlFactory constructor. | ||
* | ||
* @param IProvider $provider | ||
*/ | ||
public function __construct(IProvider $provider) | ||
{ | ||
$this->provider = $provider; | ||
} | ||
|
||
/** | ||
* @param IOperation $operation | ||
* @param \Nette\ComponentModel\IContainer|null $control | ||
* @param null $name | ||
* @return GPWebPayControl | ||
*/ | ||
public function create(IOperation $operation, \Nette\ComponentModel\IContainer $control = NULL, $name = NULL ) | ||
|
||
/** | ||
* @param IOperation $operation | ||
* @param \Nette\ComponentModel\IContainer|null $control | ||
* @param null $name | ||
* | ||
* @return GPWebPayControl | ||
*/ | ||
public function create(IOperation $operation, \Nette\ComponentModel\IContainer $control = null, $name = null) | ||
{ | ||
return new GPWebPayControl($operation, $this->provider, $control, $name); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.