PluginProbe
Easy Invoice – Invoice Generator, PDF Quotes & Payments / 2.4.1
Easy Invoice – Invoice Generator, PDF Quotes & Payments v2.4.1
2.4.0 2.4.1 2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.0 2.1.21 2.1.20 2.1.19 2.1.18 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.2 All 57 releases
← All changes | includes/Abstracts/AbstractPaymentGateway.php +0 -13 2.2.02.4.1 View file →
@@ -14,10 +14,8 @@
14 14 /**
15 15 * Constructor
16 16 */
17 17 public function __construct() {
18 - // Hook into the payment method form display
19 - add_action('easy_invoice_payment_method_form', [$this, 'maybeRenderForm'], 10, 2);
20 18 }
21 19
22 20 /**
23 21 * Initialize the payment gateway
@@ -113,16 +111,5 @@
113 111 // Base implementation does nothing
114 112 // Gateway classes should override this method to provide their specific payment form
115 113 }
116 114
117 - /**
118 - * Check if this is the gateway being requested and render its form if so
119 - *
120 - * @param string $gateway_id The gateway ID from the hook
121 - * @param object $invoice The invoice object
122 - */
123 - public function maybeRenderForm($gateway_id, $invoice): void {
124 - if ($gateway_id === $this->getName()) {
125 - $this->renderPaymentForm($invoice);
126 - }
127 - }
128 115 }