diff --git a/includes/blocks/class-wc-dummy-payments-blocks.php b/includes/blocks/class-wc-dummy-payments-blocks.php index 714a2ff..00b1c62 100644 --- a/includes/blocks/class-wc-dummy-payments-blocks.php +++ b/includes/blocks/class-wc-dummy-payments-blocks.php @@ -27,8 +27,8 @@ final class WC_Gateway_Dummy_Blocks_Support extends AbstractPaymentMethodType { */ public function initialize() { $this->settings = get_option( 'woocommerce_dummy_settings', [] ); - $gateways = WC()->payment_gateways->get_available_payment_gateways(); - $this->gateway = $gateways['dummy']; + $gateways = WC()->payment_gateways->payment_gateways(); + $this->gateway = $gateways[$this->name]; } /**