Skip to content

Commit

Permalink
fix get options
Browse files Browse the repository at this point in the history
  • Loading branch information
carlHandy committed Jul 18, 2024
1 parent c9ae273 commit 543bfff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions includes/class-mmg-checkout-payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ public function enqueue_scripts() {
));

// For blocks support
$gateway_settings = get_option('woocommerce_mmg_checkout_settings', array());
wp_localize_script('wc-mmg-payments-blocks', 'mmgCheckoutData', array(
'title' => $this->get_option('title'),
'description' => $this->get_option('description'),
'supports' => $this->supports,
'title' => isset($gateway_settings['title']) ? $gateway_settings['title'] : 'MMG Checkout',
'description' => isset($gateway_settings['description']) ? $gateway_settings['description'] : 'Pay with MMG Checkout',
'supports' => array('products', 'refunds'),
));
}

Expand Down

0 comments on commit 543bfff

Please sign in to comment.