summaryrefslogtreecommitdiff
path: root/postgresqleu/adyen
diff options
context:
space:
mode:
Diffstat (limited to 'postgresqleu/adyen')
-rw-r--r--postgresqleu/adyen/util.py2
-rw-r--r--postgresqleu/adyen/views.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/postgresqleu/adyen/util.py b/postgresqleu/adyen/util.py
index 6f68af20..5a70d964 100644
--- a/postgresqleu/adyen/util.py
+++ b/postgresqleu/adyen/util.py
@@ -248,7 +248,7 @@ def process_raw_adyen_notification(raw, POST):
# a transactional context, as it manages it's own.
# Now open a transaction for actually processing what we get
- with transaction.commit_on_success():
+ with transaction.atomic():
# Set it to confirmed - if we were unable to process the RAW one,
# this will be rolled back by the transaction, and that's the only
# thing that htis flag means. Anything else is handled by the
diff --git a/postgresqleu/adyen/views.py b/postgresqleu/adyen/views.py
index 3355171b..e742f48b 100644
--- a/postgresqleu/adyen/views.py
+++ b/postgresqleu/adyen/views.py
@@ -18,7 +18,7 @@ from models import RawNotification, AdyenLog, ReturnAuthorizationStatus
from util import process_raw_adyen_notification
@ssl_required
-@transaction.commit_on_success
+@transaction.atomic
def adyen_return_handler(request):
sig = calculate_signature(request.GET)