-
Notifications
You must be signed in to change notification settings - Fork 2
/
Api.php
executable file
·44 lines (37 loc) · 1.08 KB
/
Api.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* CoreShop.
*
* This source file is subject to the GNU General Public License version 3 (GPLv3)
* For the full copyright and license information, please view the LICENSE.md and gpl-3.0.txt
* files that are distributed with this source code.
*
* @copyright Copyright (c) 2015-2020 Dominik Pfaffenbauer (https://www.pfaffenbauer.at)
* @license https://www.coreshop.org/license GNU General Public License version 3 (GPLv3)
*/
namespace CoreShop\Payum\Unzer;
use UnzerSDK\Unzer;
class Api
{
protected Unzer $api;
protected string $paymentType;
protected string $publicKey;
public function __construct(string $privateKey, string $publickKey, string $paymentType)
{
$this->api = new Unzer($privateKey);
$this->paymentType = $paymentType;
$this->publicKey = $publickKey;
}
public function getPaymentType(): string
{
return $this->paymentType;
}
public function getPublicKey(): string
{
return $this->publicKey;
}
public function getApi(): Unzer
{
return $this->api;
}
}