Skip to content

Commit

Permalink
AD-341 Develop Backend Logic for Place Order Endpoints to Handle Goog…
Browse files Browse the repository at this point in the history
…le Pay Express Checkout in Accelerator Storefront and OCC Backend - adjust data after adyen-web upgrade
  • Loading branch information
pjaneta committed Oct 30, 2024
1 parent 1731474 commit 5b917d4
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,22 +321,22 @@ var AdyenExpressCheckoutHybris = (function() {
prepareDataGoogle: function(paymentData) {
let baseData = {
googlePayDetails: {
googlePayToken: paymentData.paymentMethodData.tokenizationData.token,
googlePayCardNetwork: paymentData.paymentMethodData.info.cardNetwork
googlePayToken: paymentData.authorizedEvent.paymentMethodData.tokenizationData.token,
googlePayCardNetwork: paymentData.authorizedEvent.paymentMethodData.info.cardNetwork
},
addressData: {
email: paymentData.email,
firstName: paymentData.shippingAddress.name,
email: paymentData.authorizedEvent.email,
firstName: paymentData.deliveryAddress.firstName,
// lastName: paymentData.payment.shippingContact.familyName,
line1: paymentData.shippingAddress.address1,
line2: paymentData.shippingAddress.address2,
postalCode: paymentData.shippingAddress.postalCode,
town: paymentData.shippingAddress.locality,
line1: paymentData.deliveryAddress.street,
line2: paymentData.deliveryAddress.houseNumberOrName,
postalCode: paymentData.deliveryAddress.postalCode,
town: paymentData.deliveryAddress.city,
country: {
isocode: paymentData.shippingAddress.countryCode,
isocode: paymentData.deliveryAddress.country,
},
region: {
isocodeShort: paymentData.shippingAddress.administrativeArea
isocodeShort: paymentData.deliveryAddress.stateOrProvince
}
}
}
Expand Down

0 comments on commit 5b917d4

Please sign in to comment.