@@ -56,8 +56,8 @@ discard block |
||
| 56 | 56 | $context = stream_context_create( |
| 57 | 57 | [ |
| 58 | 58 | 'ssl' => array( |
| 59 | - 'verify_peer' => false, |
|
| 60 | - 'verify_peer_name' => false |
|
| 59 | + 'verify_peer' => false, |
|
| 60 | + 'verify_peer_name' => false |
|
| 61 | 61 | )] |
| 62 | 62 | ); |
| 63 | 63 | |
@@ -126,12 +126,12 @@ discard block |
||
| 126 | 126 | |
| 127 | 127 | $data = $this->prepareVerificationData(); |
| 128 | 128 | |
| 129 | - if($_SERVER['SERVER_PROTOCOL'] == "HTTP/2.0") { |
|
| 129 | + if($_SERVER['SERVER_PROTOCOL'] == "HTTP/2.0") { |
|
| 130 | 130 | $context = stream_context_create( |
| 131 | 131 | [ |
| 132 | 132 | 'ssl' => array( |
| 133 | - 'verify_peer' => false, |
|
| 134 | - 'verify_peer_name' => false |
|
| 133 | + 'verify_peer' => false, |
|
| 134 | + 'verify_peer_name' => false |
|
| 135 | 135 | )] |
| 136 | 136 | ); |
| 137 | 137 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | public function __construct(Invoice $invoice, $settings) |
| 39 | 39 | { |
| 40 | 40 | $this->invoice($invoice); |
| 41 | - $this->settings = (object)$settings; |
|
| 41 | + $this->settings = (object) $settings; |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | public function purchase() |
| 54 | 54 | { |
| 55 | - if($_SERVER['SERVER_PROTOCOL'] == "HTTP/2.0") { |
|
| 55 | + if ($_SERVER['SERVER_PROTOCOL'] == "HTTP/2.0") { |
|
| 56 | 56 | $context = stream_context_create( |
| 57 | 57 | [ |
| 58 | 58 | 'ssl' => array( |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | // purchase was not successful |
| 81 | 81 | if ($data[0] != "0") { |
| 82 | - throw new PurchaseFailedException($this->translateStatus($data[0]), (int)$data[0]); |
|
| 82 | + throw new PurchaseFailedException($this->translateStatus($data[0]), (int) $data[0]); |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | $this->invoice->transactionId($data[1]); |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | |
| 127 | 127 | $data = $this->prepareVerificationData(); |
| 128 | 128 | |
| 129 | - if($_SERVER['SERVER_PROTOCOL'] == "HTTP/2.0") { |
|
| 129 | + if ($_SERVER['SERVER_PROTOCOL'] == "HTTP/2.0") { |
|
| 130 | 130 | $context = stream_context_create( |
| 131 | 131 | [ |
| 132 | 132 | 'ssl' => array( |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | // step1: verify request |
| 146 | - $verifyResponse = (int)$soap->bpVerifyRequest($data)->return; |
|
| 146 | + $verifyResponse = (int) $soap->bpVerifyRequest($data)->return; |
|
| 147 | 147 | if ($verifyResponse != 0) { |
| 148 | 148 | // rollback money and throw exception |
| 149 | 149 | // avoid rollback if request was already verified |