Markette\Gopay\Entity\ReturnedPayment::isFraud PHP Метод

isFraud() публичный Метод

Returns TRUE if payment is declared fraud by Gopay
public isFraud ( ) : boolean
Результат boolean
    public function isFraud()
    {
        try {
            $this->getGopay()->getHelper()->checkPaymentIdentity((double) $this->valuesToBeVerified['targetGoId'], (double) $this->valuesToBeVerified['paymentSessionId'], NULL, $this->valuesToBeVerified['orderNumber'], $this->valuesToBeVerified['encryptedSignature'], (double) $this->getGopay()->getConfig()->getGopayId(), $this->getVariable(), $this->getGopay()->getConfig()->getGopaySecretKey());
            return FALSE;
        } catch (GopayFatalException $e) {
            throw $e;
        } catch (Exception $e) {
            return TRUE;
        }
    }