Skip to content

Commit

Permalink
AD-395 Intermittent Google Pay Error Message Followed by Successful O…
Browse files Browse the repository at this point in the history
…rder Placement
  • Loading branch information
pjaneta committed Jan 16, 2025
1 parent de592de commit 67d0210
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ var AdyenExpressCheckoutHybris = (function () {

const googlePayNodes = document.getElementsByClassName('adyen-google-pay-button');

let paymentData;

const googlePayConfig = {

// Step 2: Set the callback intents.
Expand Down Expand Up @@ -199,11 +201,12 @@ var AdyenExpressCheckoutHybris = (function () {
// Step 7: Configure the callback to get the shopper's information.

onSubmit: (state, element, actions) => {
actions.resolve();
},
onAuthorized: (paymentData, actions) => {
this.makePayment(this.prepareDataGoogle(paymentData), this.getGoogleUrl(), actions.resolve, actions.reject)
},
onAuthorized: (data, actions) => {
paymentData = data;
actions.resolve();
},
onError: function (error) {
console.log(error)
}
Expand Down

0 comments on commit 67d0210

Please sign in to comment.