mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 16:24:33 +08:00
Remove console logs
This commit is contained in:
parent
5f6447d786
commit
1eb754a13b
2 changed files with 3 additions and 13 deletions
|
@ -29,11 +29,6 @@ const useGooglepayApiToGenerateButton = (
|
|||
environment: 'TEST',
|
||||
} );
|
||||
|
||||
console.log( 'paymentsClient', paymentsClient );
|
||||
|
||||
console.log( 'googlepayConfig', googlepayConfig );
|
||||
console.log( 'buttonStyles?.Default', buttonStyles?.Default );
|
||||
|
||||
const googlePayButtonOptions = {
|
||||
allowedPaymentMethods: googlepayConfig.allowedPaymentMethods,
|
||||
buttonColor: buttonConfig.buttonColor || 'black',
|
||||
|
@ -44,13 +39,11 @@ const useGooglepayApiToGenerateButton = (
|
|||
|
||||
const button = paymentsClient.createButton( {
|
||||
...googlePayButtonOptions,
|
||||
onClick: () => {
|
||||
console.log( 'Google Pay button clicked' );
|
||||
onClick: ( event ) => {
|
||||
event.preventDefault();
|
||||
},
|
||||
} );
|
||||
|
||||
console.log( 'Google Pay Button options', googlePayButtonOptions );
|
||||
|
||||
setGooglepayButton( button );
|
||||
|
||||
return () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue