Skip to content

Commit 9b93dae

Browse files
author
Alex Florisca
authored
Add title, description and gatewayId for express payment methods (#3415)
* Add title, description and gatewayId for express payment methods * Add missing domain from translation function
1 parent eb0810c commit 9b93dae

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

client/blocks/payment-request/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { getSetting } from '@woocommerce/settings';
2+
import { __ } from '@wordpress/i18n';
23
import { PAYMENT_METHOD_NAME } from './constants';
34
import { PaymentRequestExpress } from './payment-request-express';
45
import { applePayImage } from './apple-pay-preview';
@@ -14,6 +15,12 @@ const componentStripePromise = loadStripe();
1415

1516
const paymentRequestPaymentMethod = {
1617
name: PAYMENT_METHOD_NAME,
18+
title: 'Stripe',
19+
description: __(
20+
'This will show users the ApplePay, GooglePay, or Stripe Link button depending on their browser and logged in status.',
21+
'woocommerce-gateway-stripe'
22+
),
23+
gatewayId: 'stripe',
1724
content: <PaymentRequestExpress stripe={ componentStripePromise } />,
1825
edit: <ApplePayPreview />,
1926
canMakePayment: ( cartData ) => {

0 commit comments

Comments
 (0)