Skip to content

Commit

Permalink
added the shopper email
Browse files Browse the repository at this point in the history
  • Loading branch information
JostCrow committed Sep 20, 2022
1 parent 2abe05d commit 9742188
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions djadyen/templatetags/adyen_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ def adyen_payment_component(
if country_code
else settings.DJADYEN_DEFAULT_COUNTRY_CODE,
}
try:
request["shopperEmail"] = order.email
except Exception:
pass

logger.info(request)
# Starting the checkout.
result = ady.checkout.sessions(request)
Expand Down
4 changes: 0 additions & 4 deletions javascript/djadyen.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ document.addEventListener("DOMContentLoaded", async () => {
sessionData: config.dataset.sessionData,
},
onPaymentCompleted: (result) => {
console.log("onPaymentCompleted", "result", result);
console.log("onPaymentCompleted", "checkout", checkout);
console.log("onPaymentCompleted", "component", component);

window.location = config.dataset.redirectUrl;
},
onError: (error, component) => {
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# see http://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files
[metadata]
name = djadyen
version = 2.0.5
version = 2.0.6
description = Django adyen payment integration
long_description = file: README.rst
url = https://github.com/maykinmedia/djadyen
Expand Down

0 comments on commit 9742188

Please sign in to comment.