Skip to content

Commit

Permalink
Don't modify 3DS data for verified or canceled payment methods
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanpetrea committed Feb 5, 2021
1 parent 8fe2e47 commit 762d6f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions silver_payu/views.py
Expand Up @@ -50,6 +50,9 @@ def threeds_data_view(request, transaction, expired=None):
if not payment_method:
return HttpResponseNotAllowed()

if payment_method.verified or payment_method.canceled:
return HttpResponseNotAllowed()

client_ip, _ = get_client_ip(request)
if not client_ip:
return HttpResponseServerError()
Expand Down

0 comments on commit 762d6f9

Please sign in to comment.