From d6763eea9207312ebed0fb083e9a2f4e9afd28e9 Mon Sep 17 00:00:00 2001 From: Ivascu Madalin Date: Mon, 6 Nov 2023 09:10:00 +0000 Subject: [PATCH] fix error --- Magewire/Payment/Method/PayPerEmail.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Magewire/Payment/Method/PayPerEmail.php b/Magewire/Payment/Method/PayPerEmail.php index 91e5735..ac99729 100644 --- a/Magewire/Payment/Method/PayPerEmail.php +++ b/Magewire/Payment/Method/PayPerEmail.php @@ -150,6 +150,16 @@ private function getBillingAddress(): Address return $this->sessionCheckout->getQuote()->getBillingAddress(); } + /** + * Get payment from quote + * + * @return Payment + */ + private function getPayment() + { + return $this->sessionCheckout->getQuote()->getPayment(); + } + /** * Validate single field with rules