@@ -33,17 +33,17 @@ |
||
| 33 | 33 | |
| 34 | 34 | // setup callbacks |
| 35 | 35 | |
| 36 | -$responseProvider->addOnSuccess(function (\Pixidos\GPWebPay\Data\Response $response) { |
|
| 36 | +$responseProvider->addOnSuccess(function(\Pixidos\GPWebPay\Data\Response $response) { |
|
| 37 | 37 | // do anything you need after payment is success |
| 38 | 38 | echo 'Success'; |
| 39 | 39 | }); |
| 40 | 40 | // you can add more callbacks |
| 41 | -$responseProvider->addOnSuccess(function (\Pixidos\GPWebPay\Data\Response $response) { |
|
| 41 | +$responseProvider->addOnSuccess(function(\Pixidos\GPWebPay\Data\Response $response) { |
|
| 42 | 42 | // do anything you need |
| 43 | 43 | echo 'Success'; |
| 44 | 44 | }); |
| 45 | 45 | |
| 46 | -$responseProvider->addOnError(function (\Pixidos\GPWebPay\Exceptions\GPWebPayResultException $exception, \Pixidos\GPWebPay\Data\Response $response) { |
|
| 46 | +$responseProvider->addOnError(function(\Pixidos\GPWebPay\Exceptions\GPWebPayResultException $exception, \Pixidos\GPWebPay\Data\Response $response) { |
|
| 47 | 47 | // do anything you need |
| 48 | 48 | echo 'Success'; |
| 49 | 49 | }); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | |
| 21 | 21 | abstract class AbstractKey |
| 22 | 22 | { |
| 23 | - protected OpenSSLAsymmetricKey|null $key = null; |
|
| 23 | + protected OpenSSLAsymmetricKey | null $key = null; |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * @param string $file |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | * @param string $gateway |
| 34 | 34 | * @return SignerInterface |
| 35 | 35 | */ |
| 36 | - public function get(string|null $gateway = null): SignerInterface |
|
| 36 | + public function get(string | null $gateway = null): SignerInterface |
|
| 37 | 37 | { |
| 38 | 38 | if (null === $gateway) { |
| 39 | 39 | $gateway = $this->configs->getDefaultGateway(); |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | $this->configs[$gateway] = $config; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - public function getConfig(string|null $gateway = null): SignerConfig |
|
| 33 | + public function getConfig(string | null $gateway = null): SignerConfig |
|
| 34 | 34 | { |
| 35 | 35 | if (null === $gateway) { |
| 36 | 36 | $gateway = $this->defaultGateway; |
@@ -42,17 +42,17 @@ |
||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | |
| 45 | - public function getUrl(string|null $gateway = null): string |
|
| 45 | + public function getUrl(string | null $gateway = null): string |
|
| 46 | 46 | { |
| 47 | 47 | return $this->paymentConfigs[$this->getGateway($gateway)]->getUrl(); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - public function getMerchantNumber(string|null $gateway = null): MerchantNumber |
|
| 50 | + public function getMerchantNumber(string | null $gateway = null): MerchantNumber |
|
| 51 | 51 | { |
| 52 | 52 | return $this->paymentConfigs[$this->getGateway($gateway)]->getMerchantNumber(); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - public function getDepositFlag(string|null $gateway = null): DepositFlag |
|
| 55 | + public function getDepositFlag(string | null $gateway = null): DepositFlag |
|
| 56 | 56 | { |
| 57 | 57 | return $this->paymentConfigs[$this->getGateway($gateway)]->getDepositFlag(); |
| 58 | 58 | } |