From 792b4f3ae6bbb42992d0653eeecbc44c69a36524 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B0=D0=B2=D0=B5=D0=BB=20=D0=90=2E=20=D0=9C=D0=BE?= =?UTF-8?q?=D0=BB=D0=BE=D0=B4=D0=BE=D0=B2=D1=81=D0=BA=D0=B8=D0=B9?= Date: Tue, 12 Nov 2019 17:53:08 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20SDK.=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BE=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20?= =?UTF-8?q?=D0=B2=D1=82=D0=BE=D1=80=D0=BE=D0=B3=D0=BE=20=D1=87=D0=B5=D0=BA?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- payment/YandexMoneyApi/KassaSecondReceiptModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payment/YandexMoneyApi/KassaSecondReceiptModel.php b/payment/YandexMoneyApi/KassaSecondReceiptModel.php index 0709e5e..801adeb 100644 --- a/payment/YandexMoneyApi/KassaSecondReceiptModel.php +++ b/payment/YandexMoneyApi/KassaSecondReceiptModel.php @@ -70,7 +70,7 @@ public function sendSecondReceipt() if (!$this->isPaymentInfoValid($this->paymentInfo)) { $this->log("error", "Invalid paymentInfo"); return false; - } elseif (empty($this->orderInfo['user_email']) || empty($this->orderInfo['user_phone'])) { + } elseif (empty($this->orderInfo['user_email']) && empty($this->orderInfo['user_phone'])) { $this->log("error", "Invalid orderInfo orderId = " . $this->orderInfo['order_id']); return false; }