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

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