|
@@ -101,7 +101,7 @@ discard block |
|
|
block discarded – undo |
|
101
|
101
|
$this->statusId = $statusId; |
|
102
|
102
|
$this->ipAddres = $ipAddres; |
|
103
|
103
|
|
|
104
|
|
- $url = $this->root.'payment'; // endpoint |
|
|
104
|
+ $url = $this->root . 'payment'; // endpoint |
|
105
|
105
|
|
|
106
|
106
|
$fields = [ |
|
107
|
107
|
'KeyID' => $this->keyId, //required |
|
@@ -144,7 +144,7 @@ discard block |
|
|
block discarded – undo |
|
144
|
144
|
$this->idPago = $idPago; |
|
145
|
145
|
$this->amount = $amount; |
|
146
|
146
|
|
|
147
|
|
- $url = $this->root.'complete'; // endpoint |
|
|
147
|
+ $url = $this->root . 'complete'; // endpoint |
|
148
|
148
|
|
|
149
|
149
|
$fields = [ |
|
150
|
150
|
'KeyID' => $this->keyId, //required |
|
@@ -178,12 +178,12 @@ discard block |
|
|
block discarded – undo |
|
178
|
178
|
|
|
179
|
179
|
$this->idPago = $idPago; |
|
180
|
180
|
|
|
181
|
|
- $url = $this->root.'payment'; // endpoint |
|
|
181
|
+ $url = $this->root . 'payment'; // endpoint |
|
182
|
182
|
|
|
183
|
183
|
$myCurl = curl_init(); |
|
184
|
184
|
curl_setopt($myCurl, CURLOPT_RETURNTRANSFER, 1); |
|
185
|
185
|
curl_setopt($myCurl, CURLOPT_CUSTOMREQUEST, "DELETE"); |
|
186
|
|
- curl_setopt($myCurl, CURLOPT_URL, $url.'?'.'KeyID='.$this->keyId.'&PublicKeyId='.$this->publicKeyId.'&id='.$this->idPago); |
|
|
186
|
+ curl_setopt($myCurl, CURLOPT_URL, $url . '?' . 'KeyID=' . $this->keyId . '&PublicKeyId=' . $this->publicKeyId . '&id=' . $this->idPago); |
|
187
|
187
|
$server_output = curl_exec($myCurl); |
|
188
|
188
|
curl_close($myCurl); |
|
189
|
189
|
$obj = json_decode($server_output); |
|
@@ -211,10 +211,10 @@ discard block |
|
|
block discarded – undo |
|
211
|
211
|
|
|
212
|
212
|
$this->idPago = $idPago; |
|
213
|
213
|
|
|
214
|
|
- $url = $this->root.'payment'; // endpoint |
|
|
214
|
+ $url = $this->root . 'payment'; // endpoint |
|
215
|
215
|
|
|
216
|
216
|
$myCurl = curl_init(); |
|
217
|
|
- curl_setopt($myCurl, CURLOPT_URL, $url.'?'.'KeyID='.$this->keyId.'&PublicKeyId='.$this->publicKeyId.'&id='.$this->idPago); |
|
|
217
|
+ curl_setopt($myCurl, CURLOPT_URL, $url . '?' . 'KeyID=' . $this->keyId . '&PublicKeyId=' . $this->publicKeyId . '&id=' . $this->idPago); |
|
218
|
218
|
curl_setopt($myCurl, CURLOPT_RETURNTRANSFER, 1); |
|
219
|
219
|
$server_output = curl_exec($myCurl); |
|
220
|
220
|
curl_close($myCurl); |