|
@@ -102,9 +102,9 @@ discard block |
|
|
block discarded – undo |
|
102
|
102
|
public function getVerificationPostFields() |
|
103
|
103
|
{ |
|
104
|
104
|
$txn_string = implode("|", $this->txn_id); |
|
105
|
|
- $hash_str = $this->key . '|' . $this->command . '|' . $txn_string . '|' . $this->salt ; |
|
|
105
|
+ $hash_str = $this->key.'|'.$this->command.'|'.$txn_string.'|'.$this->salt; |
|
106
|
106
|
$hash = strtolower(hash('sha512', $hash_str)); |
|
107
|
|
- $params = ['key' => $this->key , 'hash' => $hash , 'var1' => $txn_string, 'command' => $this->command]; |
|
|
107
|
+ $params = ['key' => $this->key, 'hash' => $hash, 'var1' => $txn_string, 'command' => $this->command]; |
|
108
|
108
|
|
|
109
|
109
|
return http_build_query($params); |
|
110
|
110
|
} |
|
@@ -128,7 +128,7 @@ discard block |
|
|
block discarded – undo |
|
128
|
128
|
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); |
|
129
|
129
|
$output = curl_exec($curl); |
|
130
|
130
|
|
|
131
|
|
- if(curl_errno($curl)) { |
|
|
131
|
+ if (curl_errno($curl)) { |
|
132
|
132
|
throw new \Exception(curl_error($curl)); |
|
133
|
133
|
} |
|
134
|
134
|
curl_close($curl); |
Please login to merge, or discard this patch.