Skip to content

Commit

Permalink
Merge pull request #560 from commercelayer/fix/adyen-shopper-ip
Browse files Browse the repository at this point in the history
Set adyen shopper ip
  • Loading branch information
acasazza authored Jul 30, 2024
2 parents 6153591 + 67039ce commit 3877043
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export function AdyenPayment({
'save_payment_source_to_customer_wallet'
) as HTMLInputElement
const url = cleanUrlBy()
const shopperIp = await getPublicIP()
let control = await setPaymentSource({
paymentSourceId: paymentSource?.id,
paymentResource: 'adyen_payments'
Expand Down Expand Up @@ -249,7 +250,8 @@ export function AdyenPayment({
payment_method: paymentMethod,
return_url: url,
origin: window.location.origin,
redirect_from_issuer_method: 'GET'
redirect_from_issuer_method: 'GET',
shopper_id: shopperIp
}
}
})
Expand All @@ -260,7 +262,8 @@ export function AdyenPayment({
payment_method: paymentMethod,
return_url: url,
origin: window.location.origin,
redirect_from_issuer_method: 'GET'
redirect_from_issuer_method: 'GET',
shopper_id: shopperIp
},
_authorize: 1
}
Expand Down

0 comments on commit 3877043

Please sign in to comment.