mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Remove console logs
This commit is contained in:
parent
3e1cdc9288
commit
5d592c0173
3 changed files with 2 additions and 21 deletions
|
@ -136,17 +136,7 @@ export const PayPalComponent = ( {
|
|||
|
||||
window.ppcpFundingSource = data.fundingSource;
|
||||
|
||||
let activePaymentMethod = wp.data
|
||||
.select( 'wc/store/payment' )
|
||||
.getActivePaymentMethod();
|
||||
console.log( activePaymentMethod, 'activePaymentMethod' );
|
||||
|
||||
onClick();
|
||||
|
||||
activePaymentMethod = wp.data
|
||||
.select( 'wc/store/payment' )
|
||||
.getActivePaymentMethod();
|
||||
console.log( activePaymentMethod, 'activePaymentMethod' );
|
||||
};
|
||||
|
||||
const shouldHandleShippingInPayPal = () => {
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -91,6 +91,7 @@ if ( buttonConfig?.is_enabled ) {
|
|||
'woocommerce-paypal-payments'
|
||||
),
|
||||
gatewayId: 'ppcp-gateway',
|
||||
paymentMethodId: 'ppcp-gateway',
|
||||
label: <div dangerouslySetInnerHTML={ { __html: buttonData.title } } />,
|
||||
content: <GooglePayComponent isEditing={ false } />,
|
||||
edit: <GooglePayComponent isEditing={ true } />,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue