diff --git a/resources/js/clients/payments/square-credit-card.js b/resources/js/clients/payments/square-credit-card.js index faf14bc8b3e2..cceaacc5a7f3 100644 --- a/resources/js/clients/payments/square-credit-card.js +++ b/resources/js/clients/payments/square-credit-card.js @@ -43,28 +43,12 @@ class SquareCreditCard { } } - // , - // function(err,verification) { - // if (err == null) { - // console.log("no error"); - // console.log(verification); - // verificationToken = verificationResults.token; - - // } - - // console.log(err); - - // die("verify buyer"); - // } - async completePaymentWithoutToken(e) { document.getElementById('errors').hidden = true; e.target.parentElement.disabled = true; let result = await this.card.tokenize(); - console.log('square token = ' + result.token); - /* SCA */ let verificationToken; @@ -79,8 +63,6 @@ class SquareCreditCard { intent: 'CHARGE', }; - console.log(verificationDetails); - const verificationResults = await this.payments.verifyBuyer( result.token, verificationDetails @@ -88,14 +70,8 @@ class SquareCreditCard { verificationToken = verificationResults.token; } catch (typeError) { - console.error(typeError); e.target.parentElement.disabled = true } - // console.log(" verification tokem = " + verificationToken.token); - - // verificationToken = verificationResults.token; - - console.debug('Verification Token:', verificationToken); document.querySelector( 'input[name="verificationToken"]' @@ -131,8 +107,6 @@ class SquareCreditCard { /* SCA */ async verifyBuyer(token) { - console.log('in verify buyer'); - const verificationDetails = { amount: document.querySelector('meta[name=amount]').content, billingContact: document.querySelector('meta[name=square_contact]') @@ -147,8 +121,6 @@ class SquareCreditCard { verificationDetails ); - console.log(' verification toke = ' + verificationResults.token); - return verificationResults.token; }