@@ -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 | } |