@@ -139,9 +139,9 @@ |
||
139 | 139 | // mandatory fields |
140 | 140 | 'Ds_Merchant_MerchantCode' => $this->getMerchantId(), |
141 | 141 | 'Ds_Merchant_Terminal' => $this->getTerminalId(), |
142 | - 'Ds_Merchant_TransactionType' => '0', // Authorisation |
|
142 | + 'Ds_Merchant_TransactionType' => '0', // Authorisation |
|
143 | 143 | 'Ds_Merchant_Amount' => $this->getAmountInteger(), |
144 | - 'Ds_Merchant_Currency' => $this->getCurrencyNumeric(), // uses ISO-4217 codes |
|
144 | + 'Ds_Merchant_Currency' => $this->getCurrencyNumeric(), // uses ISO-4217 codes |
|
145 | 145 | 'Ds_Merchant_Order' => $this->getTransactionId(), |
146 | 146 | 'Ds_Merchant_MerchantUrl' => $this->getNotifyUrl(), |
147 | 147 | // optional fields |
@@ -10,9 +10,9 @@ discard block |
||
10 | 10 | class WebservicePurchaseRequest extends PurchaseRequest |
11 | 11 | { |
12 | 12 | /** @var string */ |
13 | - protected $liveWsdl = __DIR__ . "/redsys-webservice-live.wsdl"; |
|
13 | + protected $liveWsdl = __DIR__."/redsys-webservice-live.wsdl"; |
|
14 | 14 | /** @var string */ |
15 | - protected $testWsdl = __DIR__ . "/redsys-webservice-test.wsdl"; |
|
15 | + protected $testWsdl = __DIR__."/redsys-webservice-test.wsdl"; |
|
16 | 16 | /** @var string */ |
17 | 17 | protected $liveEndpoint = "https://sis.redsys.es/sis/services/SerClsWSEntrada"; |
18 | 18 | /** @var string */ |
@@ -31,10 +31,10 @@ discard block |
||
31 | 31 | 'DS_MERCHANT_AMOUNT' => $this->getAmountInteger(), |
32 | 32 | 'DS_MERCHANT_ORDER' => $this->getTransactionId(), |
33 | 33 | 'DS_MERCHANT_MERCHANTCODE' => $this->getMerchantId(), |
34 | - 'DS_MERCHANT_CURRENCY' => $this->getCurrencyNumeric(), // uses ISO-4217 codes |
|
34 | + 'DS_MERCHANT_CURRENCY' => $this->getCurrencyNumeric(), // uses ISO-4217 codes |
|
35 | 35 | 'DS_MERCHANT_PAN' => $card->getNumber(), |
36 | 36 | 'DS_MERCHANT_CVV2' => $card->getCvv(), |
37 | - 'DS_MERCHANT_TRANSACTIONTYPE' => 'A', // 'Traditional payment' |
|
37 | + 'DS_MERCHANT_TRANSACTIONTYPE' => 'A', // 'Traditional payment' |
|
38 | 38 | 'DS_MERCHANT_TERMINAL' => $this->getTerminalId(), |
39 | 39 | 'DS_MERCHANT_EXPIRYDATE' => $card->getExpiryDate('ym'), |
40 | 40 | ); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | protected function decodeMerchantParameters($data) |
36 | 36 | { |
37 | - return (array)json_decode(base64_decode(strtr($data, '-_', '+/'))); |
|
37 | + return (array) json_decode(base64_decode(strtr($data, '-_', '+/'))); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |