Merge branch 'trunk' into PCP-3535-fix-editor-paypal-buttons-grid

This commit is contained in:
Alex P. 2024-10-01 10:44:09 +03:00
commit cacd9e5598
No known key found for this signature in database
GPG key ID: 54487A734A204D71
76 changed files with 45917 additions and 376 deletions

View file

@ -3,6 +3,7 @@ import {
registerExpressPaymentMethod,
registerPaymentMethod,
} from '@woocommerce/blocks-registry';
import { __ } from '@wordpress/i18n';
import {
mergeWcAddress,
paypalAddressToWc,
@ -775,6 +776,12 @@ if ( block_enabled && config.enabled ) {
] ) {
registerExpressPaymentMethod( {
name: `${ config.id }-${ fundingSource }`,
title: 'PayPal',
description: __(
'Eligible users will see the PayPal button.',
'woocommerce-paypal-payments'
),
gatewayId: 'ppcp-gateway',
paymentMethodId: config.id,
label: (
<div dangerouslySetInnerHTML={ { __html: config.title } } />