mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Merge branch 'trunk' into PCP-3719-pay-pal-subscriptions-cancel-from-subscriptions-list-page-does-not-work
This commit is contained in:
commit
e9886cf185
6 changed files with 20 additions and 0 deletions
|
@ -15,6 +15,8 @@
|
||||||
* Enhancement - Require PHP 7.4+, WP 6.3+, WC 6.9+ #2556
|
* Enhancement - Require PHP 7.4+, WP 6.3+, WC 6.9+ #2556
|
||||||
* Enhancement - Modularity module migration #1944
|
* Enhancement - Modularity module migration #1944
|
||||||
* Enhancement - Keep only 5 tags in readme.txt #2562
|
* Enhancement - Keep only 5 tags in readme.txt #2562
|
||||||
|
* Enhancement - Select ACDC by default during onboarding for China store locations #2619
|
||||||
|
* Enhancement - Add title, description and gatewayId to the express payment method #2566
|
||||||
|
|
||||||
= 2.9.0 - 2024-09-02 =
|
= 2.9.0 - 2024-09-02 =
|
||||||
* Fix - Fatal error in Block Editor when using WooCommerce blocks #2534
|
* Fix - Fatal error in Block Editor when using WooCommerce blocks #2534
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
"@babel/core": "^7.19",
|
"@babel/core": "^7.19",
|
||||||
"@babel/preset-env": "^7.19",
|
"@babel/preset-env": "^7.19",
|
||||||
"@babel/preset-react": "^7.18.6",
|
"@babel/preset-react": "^7.18.6",
|
||||||
|
"@wordpress/i18n": "^5.6.0",
|
||||||
"@woocommerce/dependency-extraction-webpack-plugin": "2.2.0",
|
"@woocommerce/dependency-extraction-webpack-plugin": "2.2.0",
|
||||||
"babel-loader": "^8.2",
|
"babel-loader": "^8.2",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
|
|
|
@ -3,6 +3,7 @@ import {
|
||||||
registerExpressPaymentMethod,
|
registerExpressPaymentMethod,
|
||||||
registerPaymentMethod,
|
registerPaymentMethod,
|
||||||
} from '@woocommerce/blocks-registry';
|
} from '@woocommerce/blocks-registry';
|
||||||
|
import { __ } from '@wordpress/i18n';
|
||||||
import {
|
import {
|
||||||
mergeWcAddress,
|
mergeWcAddress,
|
||||||
paypalAddressToWc,
|
paypalAddressToWc,
|
||||||
|
@ -774,6 +775,12 @@ if ( block_enabled && config.enabled ) {
|
||||||
] ) {
|
] ) {
|
||||||
registerExpressPaymentMethod( {
|
registerExpressPaymentMethod( {
|
||||||
name: `${ config.id }-${ fundingSource }`,
|
name: `${ config.id }-${ fundingSource }`,
|
||||||
|
title: 'PayPal',
|
||||||
|
description: __(
|
||||||
|
'Eligible users will see the PayPal button.',
|
||||||
|
'woocommerce-paypal-payments'
|
||||||
|
),
|
||||||
|
gatewayId: 'ppcp-gateway',
|
||||||
paymentMethodId: config.id,
|
paymentMethodId: config.id,
|
||||||
label: (
|
label: (
|
||||||
<div dangerouslySetInnerHTML={ { __html: config.title } } />
|
<div dangerouslySetInnerHTML={ { __html: config.title } } />
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
"@babel/core": "^7.19",
|
"@babel/core": "^7.19",
|
||||||
"@babel/preset-env": "^7.19",
|
"@babel/preset-env": "^7.19",
|
||||||
"@babel/preset-react": "^7.18.6",
|
"@babel/preset-react": "^7.18.6",
|
||||||
|
"@wordpress/i18n": "^5.6.0",
|
||||||
"@woocommerce/dependency-extraction-webpack-plugin": "^2.2.0",
|
"@woocommerce/dependency-extraction-webpack-plugin": "^2.2.0",
|
||||||
"babel-loader": "^8.2",
|
"babel-loader": "^8.2",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
|
|
|
@ -3,6 +3,7 @@ import {
|
||||||
registerExpressPaymentMethod,
|
registerExpressPaymentMethod,
|
||||||
registerPaymentMethod,
|
registerPaymentMethod,
|
||||||
} from '@woocommerce/blocks-registry';
|
} from '@woocommerce/blocks-registry';
|
||||||
|
import { __ } from '@wordpress/i18n';
|
||||||
import { loadPaypalScript } from '../../../ppcp-button/resources/js/modules/Helper/ScriptLoading';
|
import { loadPaypalScript } from '../../../ppcp-button/resources/js/modules/Helper/ScriptLoading';
|
||||||
import GooglepayManager from './GooglepayManager';
|
import GooglepayManager from './GooglepayManager';
|
||||||
import { loadCustomScript } from '@paypal/paypal-js';
|
import { loadCustomScript } from '@paypal/paypal-js';
|
||||||
|
@ -58,6 +59,12 @@ const features = [ 'products' ];
|
||||||
|
|
||||||
registerExpressPaymentMethod( {
|
registerExpressPaymentMethod( {
|
||||||
name: buttonData.id,
|
name: buttonData.id,
|
||||||
|
title: `PayPal - ${ buttonData.title }`,
|
||||||
|
description: __(
|
||||||
|
'Eligible users will see the PayPal button.',
|
||||||
|
'woocommerce-paypal-payments'
|
||||||
|
),
|
||||||
|
gatewayId: 'ppcp-gateway',
|
||||||
label: <div dangerouslySetInnerHTML={ { __html: buttonData.title } } />,
|
label: <div dangerouslySetInnerHTML={ { __html: buttonData.title } } />,
|
||||||
content: <GooglePayComponent isEditing={ false } />,
|
content: <GooglePayComponent isEditing={ false } />,
|
||||||
edit: <GooglePayComponent isEditing={ true } />,
|
edit: <GooglePayComponent isEditing={ true } />,
|
||||||
|
|
|
@ -194,6 +194,8 @@ If you encounter issues with the PayPal buttons not appearing after an update, p
|
||||||
* Enhancement - Require PHP 7.4+, WP 6.3+, WC 6.9+ #2556
|
* Enhancement - Require PHP 7.4+, WP 6.3+, WC 6.9+ #2556
|
||||||
* Enhancement - Modularity module migration #1944
|
* Enhancement - Modularity module migration #1944
|
||||||
* Enhancement - Keep only 5 tags in readme.txt #2562
|
* Enhancement - Keep only 5 tags in readme.txt #2562
|
||||||
|
* Enhancement - Select ACDC by default during onboarding for China store locations #2619
|
||||||
|
* Enhancement - Add title, description and gatewayId to the express payment method #2566
|
||||||
|
|
||||||
= 2.9.0 - 2024-09-02 =
|
= 2.9.0 - 2024-09-02 =
|
||||||
* Fix - Fatal error in Block Editor when using WooCommerce blocks #2534
|
* Fix - Fatal error in Block Editor when using WooCommerce blocks #2534
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue