@@ -226,8 +226,7 @@ |
||
| 226 | 226 | if( $this->getTestMode( ) ) |
| 227 | 227 | { |
| 228 | 228 | $this->validate( 'testKey' ); |
| 229 | - } |
|
| 230 | - else |
|
| 229 | + } else |
|
| 231 | 230 | { |
| 232 | 231 | $this->validate( 'signKey' ); |
| 233 | 232 | } |
@@ -39,8 +39,7 @@ discard block |
||
| 39 | 39 | if( $this->getCheckoutId( ) !== $this->request->getCheckoutId( ) ) |
| 40 | 40 | { |
| 41 | 41 | $this->errorMessage = 'Wrong checkout ID'; |
| 42 | - } |
|
| 43 | - else if( $this->getSign( ) !== $signExpected ) |
|
| 42 | + } else if( $this->getSign( ) !== $signExpected ) |
|
| 44 | 43 | { |
| 45 | 44 | $this->errorMessage = 'Failed to validate signature'; |
| 46 | 45 | } |
@@ -56,8 +55,7 @@ discard block |
||
| 56 | 55 | if( !empty( $this->errorMessage ) ) |
| 57 | 56 | { |
| 58 | 57 | return false; |
| 59 | - } |
|
| 60 | - else |
|
| 58 | + } else |
|
| 61 | 59 | { |
| 62 | 60 | return $this->getTransactionStatus( ) === 'success'; |
| 63 | 61 | } |