Skip to content

Commit d2d0cd8

Browse files
committed
feat: standardize payment method descriptions
- Added method_description to Credit Card gateway - Updated all descriptions to follow consistent pattern: 'Accept {method} payments.' - Credit Card: 'Accept credit card payments.' - Apple Pay / Google Pay: 'Accept Apple Pay and Google Pay payments.' - All other methods already following the pattern
1 parent cbb1556 commit d2d0cd8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/Gateways/PaymentMethods/WCGatewayMoneiAppleGoogle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function __construct(
6060
parent::__construct( $paymentMethodsService, $templateManager, $apiKeyService, $moneiPaymentServices );
6161
$this->id = 'monei_apple_google';
6262
$this->method_title = __( 'MONEI - Apple Pay / Google Pay', 'monei' );
63-
$this->method_description = __( 'Pay with Apple Pay or Google Pay.', 'monei' );
63+
$this->method_description = __( 'Accept Apple Pay and Google Pay payments.', 'monei' );
6464
$hide_title = ( ! empty( $this->get_option( 'hide_title' ) && 'yes' === $this->get_option( 'hide_title' ) ) ) ? true : false;
6565
$default_title = __( 'Apple Pay / Google Pay', 'monei' );
6666
$saved_title = $this->get_option( 'title' );

src/Gateways/PaymentMethods/WCGatewayMoneiCC.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ public function __construct(
6767
CardBrandHelper $cardBrandHelper
6868
) {
6969
parent::__construct( $paymentMethodsService, $templateManager, $apiKeyService, $moneiPaymentServices );
70-
$this->cardBrandHelper = $cardBrandHelper;
71-
$this->id = MONEI_GATEWAY_ID;
72-
$this->method_title = __( 'MONEI - Credit Card', 'monei' );
73-
$this->enabled = ( ! empty( $this->get_option( 'enabled' ) && 'yes' === $this->get_option( 'enabled' ) ) && $this->is_valid_for_use() ) ? 'yes' : false;
70+
$this->cardBrandHelper = $cardBrandHelper;
71+
$this->id = MONEI_GATEWAY_ID;
72+
$this->method_title = __( 'MONEI - Credit Card', 'monei' );
73+
$this->method_description = __( 'Accept credit card payments.', 'monei' );
74+
$this->enabled = ( ! empty( $this->get_option( 'enabled' ) && 'yes' === $this->get_option( 'enabled' ) ) && $this->is_valid_for_use() ) ? 'yes' : false;
7475

7576
// Load the form fields.
7677
$this->init_form_fields();

0 commit comments

Comments
 (0)