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;
|
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 = () => {
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -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 } />,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue