Skip to content

Commit a78995b

Browse files
committed
feat: add method description to Apple/Google Pay gateway
- Added method_description property to display payment method info in admin - Description shows: 'Pay with Apple Pay or Google Pay. Powered by MONEI.'
1 parent ebe46bd commit a78995b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Gateways/PaymentMethods/WCGatewayMoneiAppleGoogle.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ public function __construct(
5858
SubscriptionService $subscriptionService
5959
) {
6060
parent::__construct( $paymentMethodsService, $templateManager, $apiKeyService, $moneiPaymentServices );
61-
$this->id = 'monei_apple_google';
62-
$this->method_title = __( 'MONEI - Apple/Google', 'monei' );
63-
$hide_title = ( ! empty( $this->get_option( 'hide_title' ) && 'yes' === $this->get_option( 'hide_title' ) ) ) ? true : false;
61+
$this->id = 'monei_apple_google';
62+
$this->method_title = __( 'MONEI - Apple/Google', 'monei' );
63+
$this->method_description = __( 'Pay with Apple Pay or Google Pay. Powered by MONEI.', 'monei' );
64+
$hide_title = ( ! empty( $this->get_option( 'hide_title' ) && 'yes' === $this->get_option( 'hide_title' ) ) ) ? true : false;
6465
$default_title = __( 'Apple Pay / Google Pay', 'monei' );
6566
$saved_title = $this->get_option( 'title' );
6667
$this->title = $hide_title ? '' : ( ! empty( $saved_title ) ? $saved_title : $default_title );

0 commit comments

Comments
 (0)