@@ -53,17 +53,17 @@ |
||
| 53 | 53 | public function purchase() |
| 54 | 54 | { |
| 55 | 55 | $context = stream_context_create( |
| 56 | - [ |
|
| 57 | - 'ssl' => array( |
|
| 58 | - 'verify_peer' => false, |
|
| 59 | - 'verify_peer_name' => false |
|
| 60 | - ) |
|
| 61 | - ] |
|
| 62 | - ); |
|
| 56 | + [ |
|
| 57 | + 'ssl' => array( |
|
| 58 | + 'verify_peer' => false, |
|
| 59 | + 'verify_peer_name' => false |
|
| 60 | + ) |
|
| 61 | + ] |
|
| 62 | + ); |
|
| 63 | 63 | $soap = new \SoapClient($this->settings->apiPurchaseUrl); |
| 64 | 64 | $response = $soap->bpPayRequest($this->preparePurchaseData(), [ |
| 65 | - 'stream_context' => $context |
|
| 66 | - ]); |
|
| 65 | + 'stream_context' => $context |
|
| 66 | + ]); |
|
| 67 | 67 | |
| 68 | 68 | // fault has happened in bank gateway |
| 69 | 69 | if ($response->return == 21) { |