mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
Merge branch 'trunk' into PCP-3535-fix-editor-paypal-buttons-grid
This commit is contained in:
commit
cacd9e5598
76 changed files with 45917 additions and 376 deletions
|
@ -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 } } />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue