Remove console logs

This commit is contained in:
Emili Castells Guasch 2025-07-04 16:57:26 +02:00
parent 3e1cdc9288
commit 5d592c0173
No known key found for this signature in database
3 changed files with 2 additions and 21 deletions

View file

@ -136,17 +136,7 @@ export const PayPalComponent = ( {
window.ppcpFundingSource = data.fundingSource; window.ppcpFundingSource = data.fundingSource;
let activePaymentMethod = wp.data
.select( 'wc/store/payment' )
.getActivePaymentMethod();
console.log( activePaymentMethod, 'activePaymentMethod' );
onClick(); onClick();
activePaymentMethod = wp.data
.select( 'wc/store/payment' )
.getActivePaymentMethod();
console.log( activePaymentMethod, 'activePaymentMethod' );
}; };
const shouldHandleShippingInPayPal = () => { const shouldHandleShippingInPayPal = () => {

View file

@ -549,7 +549,6 @@ class GooglepayButton extends PaymentButton {
/** /**
* Show Google Pay payment sheet when Google Pay payment button is clicked * Show Google Pay payment sheet when Google Pay payment button is clicked
* @param onClick
*/ */
async onButtonClick() { async onButtonClick() {
this.logGroup( 'onButtonClick' ); this.logGroup( 'onButtonClick' );
@ -557,18 +556,9 @@ class GooglepayButton extends PaymentButton {
const initiatePaymentRequest = async () => { const initiatePaymentRequest = async () => {
window.ppcpFundingSource = 'googlepay'; window.ppcpFundingSource = 'googlepay';
let activePaymentMethod = wp.data // Set active payment method the paymentMethodId in registerExpressPaymentMethod.
.select( 'wc/store/payment' )
.getActivePaymentMethod();
console.log( activePaymentMethod, 'activePaymentMethod' );
this.onClick(); this.onClick();
activePaymentMethod = wp.data
.select( 'wc/store/payment' )
.getActivePaymentMethod();
console.log( activePaymentMethod, 'activePaymentMethod' );
const paymentDataRequest = this.paymentDataRequest(); const paymentDataRequest = this.paymentDataRequest();
this.log( this.log(

View file

@ -91,6 +91,7 @@ if ( buttonConfig?.is_enabled ) {
'woocommerce-paypal-payments' 'woocommerce-paypal-payments'
), ),
gatewayId: 'ppcp-gateway', gatewayId: 'ppcp-gateway',
paymentMethodId: '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 } />,