diff --git a/Magewire/Payment/Method/PayPerEmail.php b/Magewire/Payment/Method/PayPerEmail.php index 41cacaf..ac99729 100644 --- a/Magewire/Payment/Method/PayPerEmail.php +++ b/Magewire/Payment/Method/PayPerEmail.php @@ -140,6 +140,26 @@ public function hydrateEmail() } } + /** + * Get billing address from quote + * + * @return Address + */ + 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 diff --git a/Model/Form/Eav/Customer/Idin.php b/Model/Form/Eav/Customer/Hide.php similarity index 89% rename from Model/Form/Eav/Customer/Idin.php rename to Model/Form/Eav/Customer/Hide.php index 01d54a2..ab72044 100644 --- a/Model/Form/Eav/Customer/Idin.php +++ b/Model/Form/Eav/Customer/Hide.php @@ -6,7 +6,7 @@ use Hyva\Checkout\Model\Form\EntityField\EavAttributeField; -class Idin extends EavAttributeField +class Hide extends EavAttributeField { public function canRender(): bool { diff --git a/etc/frontend/di.xml b/etc/frontend/di.xml index e2e7895..a0c18c6 100644 --- a/etc/frontend/di.xml +++ b/etc/frontend/di.xml @@ -41,8 +41,9 @@ - \Buckaroo\HyvaCheckout\Model\Form\Eav\Customer\Idin - \Buckaroo\HyvaCheckout\Model\Form\Eav\Customer\Idin + \Buckaroo\HyvaCheckout\Model\Form\Eav\Customer\Hide + \Buckaroo\HyvaCheckout\Model\Form\Eav\Customer\Hide + \Buckaroo\HyvaCheckout\Model\Form\Eav\Customer\Hide