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