| Total Complexity | 2 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | class EncryptResponse extends Response |
||
| 24 | { |
||
| 25 | protected $paymentPageUrl = [ |
||
| 26 | 'test' => 'https://sandbox.gestpay.net/pagam/pagam.aspx', |
||
| 27 | 'production' => 'https://ecomm.sella.it/pagam/pagam.aspx', |
||
| 28 | ]; |
||
| 29 | protected $parametersName = [ |
||
| 30 | 'TransactionType', |
||
| 31 | 'TransactionResult', |
||
| 32 | 'CryptDecryptString', |
||
| 33 | 'ErrorCode', |
||
| 34 | 'ErrorDescription', |
||
| 35 | ]; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param \stdClass $soapResponse |
||
| 39 | * @throws \Exception |
||
| 40 | */ |
||
| 41 | public function __construct($soapResponse) |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $shopLogin |
||
| 49 | * @param string $wsdlEnvironment |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | public function getPaymentPageUrl($shopLogin, $wsdlEnvironment) |
||
| 57 |