From 5118d9ffbb57a55a9894723df97ac038066e16af Mon Sep 17 00:00:00 2001 From: ArturBaybulatov Date: Fri, 19 Aug 2016 21:12:40 +0300 Subject: [PATCH] #ARC-26 Yandex Money: Successfull testing with production server's self-signed SSL --- wallets/templates/tmp_yandex_money_request_example.html | 1 - wallets/views.py | 9 +++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wallets/templates/tmp_yandex_money_request_example.html b/wallets/templates/tmp_yandex_money_request_example.html index 0dbfe09..832616d 100755 --- a/wallets/templates/tmp_yandex_money_request_example.html +++ b/wallets/templates/tmp_yandex_money_request_example.html @@ -9,7 +9,6 @@

scid:

sum:

customerNumber:

-

paymentType:

transactionId:

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