Skip to content

Commit

Permalink
Merge pull request #9 from yandex-money/release/v1.1.0
Browse files Browse the repository at this point in the history
Обновлен SDK. Добавлена поддержка отправки второго чека
  • Loading branch information
pavel52rus authored Nov 12, 2019
2 parents c36cd50 + 792b4f3 commit be683e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion payment/YandexMoneyApi/KassaSecondReceiptModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit be683e9

Please sign in to comment.