allow transactions to be updated even if already done (#9481)

This commit is contained in:
Serghei Mihai 2016-01-03 13:28:10 +01:00
parent f82ab4b833
commit df5327ff02
1 changed files with 0 additions and 4 deletions

View File

@ -225,9 +225,6 @@ class TransactionView(DetailView):
except ObjectDoesNotExist:
logger.warn('payment response: no transaction for invoice %s', invoice_id)
return HttpResponse(status=404) # HTTP Not Found
if event.status != 'CREATED':
logger.warn('payment response: transaction status != CREATED')
return HttpResponse(status=410) # HTTP Gone
backend = eopayment.Payment(kind=self.object.service, options=service_options)
response = backend.response(query_string)
@ -280,4 +277,3 @@ class TransactionResponseListView(ListView):
self.get_regie()
return super(TransactionResponseListView, self).\
get(request, *args, **kwargs)