From 3affc6afbcf20f40f60239b01bdb0eb3ede00478 Mon Sep 17 00:00:00 2001
From: Philipp Stracker
Date: Wed, 18 Sep 2024 15:49:01 +0200
Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20typos=20in=20admin=20setti?=
=?UTF-8?q?ngs=20code?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
modules/ppcp-wc-gateway/services.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/ppcp-wc-gateway/services.php b/modules/ppcp-wc-gateway/services.php
index 9d7d38640..6a75ba556 100644
--- a/modules/ppcp-wc-gateway/services.php
+++ b/modules/ppcp-wc-gateway/services.php
@@ -624,8 +624,8 @@ return array(
$subscription_helper = $container->get( 'wc-subscriptions.helper' );
assert( $subscription_helper instanceof SubscriptionHelper );
- $config = $container->get( 'wcgateway.helper.dcc-configuration' );
- assert( $config instanceof DCCGatewayConfiguration );
+ $dcc_configuration = $container->get( 'wcgateway.configuration.dcc' );
+ assert( $dcc_configuration instanceof DCCGatewayConfiguration );
$fields = array(
'checkout_settings_heading' => array(
@@ -985,7 +985,7 @@ return array(
'dcc_name_on_card' => array(
'title' => __( 'Cardholder Name', 'woocommerce-paypal-payments' ),
'type' => 'select',
- 'default' => $config->get_default_cardholder_name(),
+ 'default' => $dcc_configuration->show_name_on_card(),
'options' => PropertiesDictionary::cardholder_name_options(),
'classes' => array(),
'class' => array(),