diff --git a/modules/ppcp-wc-gateway/src/Gateway/class-creditcardgateway.php b/modules/ppcp-wc-gateway/src/Gateway/class-creditcardgateway.php index 9d8e735f6..9a0ecd293 100644 --- a/modules/ppcp-wc-gateway/src/Gateway/class-creditcardgateway.php +++ b/modules/ppcp-wc-gateway/src/Gateway/class-creditcardgateway.php @@ -80,11 +80,11 @@ class CreditCardGateway extends PayPalGateway { } $this->method_title = __( - 'PayPal Credit Card Processing', + 'PayPal Card Processing', 'paypal-for-woocommerce' ); $this->method_description = __( - 'Provide your customers with the option to pay with credit card.', + 'Accept debit and credit cards, and local payment methods with PayPal’s latest solution.', 'paypal-for-woocommerce' ); $this->title = $this->config->has( 'dcc_gateway_title' ) ? diff --git a/modules/ppcp-wc-gateway/src/Settings/class-sectionsrenderer.php b/modules/ppcp-wc-gateway/src/Settings/class-sectionsrenderer.php index b0c1e64b4..145e49042 100644 --- a/modules/ppcp-wc-gateway/src/Settings/class-sectionsrenderer.php +++ b/modules/ppcp-wc-gateway/src/Settings/class-sectionsrenderer.php @@ -9,6 +9,7 @@ declare( strict_types=1 ); namespace Inpsyde\PayPalCommerce\WcGateway\Settings; +use Inpsyde\PayPalCommerce\WcGateway\Gateway\CreditCardGateway; use Inpsyde\PayPalCommerce\WcGateway\Gateway\PayPalGateway; /** @@ -38,10 +39,10 @@ class SectionsRenderer { } //phpcs:ignore WordPress.Security.NonceVerification.Recommended - $current = ! isset( $_GET[ self::KEY ] ) ? 'paypal' : sanitize_text_field( wp_unslash( $_GET[ self::KEY ] ) ); + $current = ! isset( $_GET[ self::KEY ] ) ? PayPalGateway::ID : sanitize_text_field( wp_unslash( $_GET[ self::KEY ] ) ); $sections = array( - 'paypal' => __( 'PayPal', 'paypal-for-woocommerce' ), - 'dcc' => __( 'Credit Card', 'paypal-for-woocommerce' ), + PayPalGateway::ID => __( 'PayPal', 'paypal-for-woocommerce' ), + CreditCardGateway::ID => __( 'Credit Card', 'paypal-for-woocommerce' ), ); echo '