|
@@ -137,7 +137,7 @@ discard block |
|
|
block discarded – undo |
|
137
|
137
|
$data['merchant_param4'] = $this->getMerchantParameter4(); |
|
138
|
138
|
$data['merchant_param5'] = $this->getMerchantParameter5(); |
|
139
|
139
|
|
|
140
|
|
- if ( $this->getCard() ) { |
|
|
140
|
+ if ($this->getCard()) { |
|
141
|
141
|
$data['card_number'] = $this->getCard()->getNumber(); |
|
142
|
142
|
$data['expiry_month'] = $this->getCard()->getExpiryMonth(); |
|
143
|
143
|
$data['expiry_year'] = $this->getCard()->getExpiryYear(); |
|
@@ -159,8 +159,8 @@ discard block |
|
|
block discarded – undo |
|
159
|
159
|
{ |
|
160
|
160
|
$merchant_data = []; |
|
161
|
161
|
|
|
162
|
|
- foreach ( $this->getData() as $k => $v ) { |
|
163
|
|
- if ( !empty($v) ) { |
|
|
162
|
+ foreach ($this->getData() as $k => $v) { |
|
|
163
|
+ if (!empty($v)) { |
|
164
|
164
|
$merchant_data[$k] = urlencode($v); |
|
165
|
165
|
} |
|
166
|
166
|
} |
|
@@ -172,7 +172,7 @@ discard block |
|
|
block discarded – undo |
|
172
|
172
|
|
|
173
|
173
|
$encrypted_data = $cryto->encrypt(http_build_query($merchant_data), $this->getWorkingKey()); |
|
174
|
174
|
|
|
175
|
|
- $url = $this->getEndpoint() . '&encRequest=' . $encrypted_data . '&access_code=' . $this->getAccessCode(); |
|
|
175
|
+ $url = $this->getEndpoint().'&encRequest='.$encrypted_data.'&access_code='.$this->getAccessCode(); |
|
176
|
176
|
|
|
177
|
177
|
return $this->response = new PurchaseResponse($this, [ |
|
178
|
178
|
'url' => $url, |
Please login to merge, or discard this patch.