|
|
|
@ -9,6 +9,7 @@ from django.views.decorators.csrf import csrf_exempt |
|
|
|
from django.views.generic import DetailView, CreateView |
|
|
|
from django.views.generic import DetailView, CreateView |
|
|
|
from django.views.generic.base import View |
|
|
|
from django.views.generic.base import View |
|
|
|
from pprint import pprint, pformat |
|
|
|
from pprint import pprint, pformat |
|
|
|
|
|
|
|
import logging |
|
|
|
|
|
|
|
|
|
|
|
from .forms import WithDrawForm, TmpCheckOrderForm, TmpPaymentAvisoForm |
|
|
|
from .forms import WithDrawForm, TmpCheckOrderForm, TmpPaymentAvisoForm |
|
|
|
from .models import InvoiceHistory, WithDraw, Transaction |
|
|
|
from .models import InvoiceHistory, WithDraw, Transaction |
|
|
|
@ -143,8 +144,8 @@ class TmpCheckOrderView(View): |
|
|
|
shop_id=form.cleaned_data.get('shopId'), |
|
|
|
shop_id=form.cleaned_data.get('shopId'), |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
# return HttpResponse(res, content_type='application/xml') |
|
|
|
return HttpResponse(res, content_type='application/xml') |
|
|
|
return HttpResponse('<pre>{msg}</pre>'.format(msg=pformat(form.errors))) # Debug |
|
|
|
# return HttpResponse('<pre>{msg}</pre>'.format(msg=pformat(form.errors))) # Debug |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TmpPaymentAvisoView(View): |
|
|
|
class TmpPaymentAvisoView(View): |
|
|
|
@ -180,5 +181,5 @@ class TmpPaymentAvisoView(View): |
|
|
|
techMessage="Payment aviso, validation error"/> |
|
|
|
techMessage="Payment aviso, validation error"/> |
|
|
|
""".format(date=timezone.now().isoformat()) |
|
|
|
""".format(date=timezone.now().isoformat()) |
|
|
|
|
|
|
|
|
|
|
|
# return HttpResponse(res, content_type='application/xml') |
|
|
|
return HttpResponse(res, content_type='application/xml') |
|
|
|
return HttpResponse('<pre>{msg}</pre>'.format(msg=pformat(form.errors))) # Debug |
|
|
|
# return HttpResponse('<pre>{msg}</pre>'.format(msg=pformat(form.errors))) # Debug |
|
|
|
|