@@ -49,10 +49,10 @@ discard block |
||
| 49 | 49 | $this->settings = (object) $settings; |
| 50 | 50 | $this->client = new Client(); |
| 51 | 51 | if ( |
| 52 | - strpos($this->settings->apiPurchaseUrl,'v3')!==true|| |
|
| 53 | - strpos($this->settings->apiPaymentUrl,'v3')!==true|| |
|
| 54 | - strpos($this->settings->apiVerficationUrl,'v3')!==true |
|
| 55 | - ){ |
|
| 52 | + strpos($this->settings->apiPurchaseUrl, 'v3') !== true || |
|
| 53 | + strpos($this->settings->apiPaymentUrl, 'v3') !== true || |
|
| 54 | + strpos($this->settings->apiVerficationUrl, 'v3') !== true |
|
| 55 | + ) { |
|
| 56 | 56 | throw new InvalidPaymentException("Invalid Payment API URL"); |
| 57 | 57 | } |
| 58 | 58 | } |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | */ |
| 211 | 211 | private function notVerified($message, $status) |
| 212 | 212 | { |
| 213 | - throw new InvalidPaymentException($message, (int)$status); |
|
| 213 | + throw new InvalidPaymentException($message, (int) $status); |
|
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | /** |