#ARC-26 Yandex Money: Successfull testing with production server's self-signed SSL

remotes/origin/PR-39
ArturBaybulatov 10 years ago
parent e7ccbc914c
commit 5118d9ffbb
  1. 1
      wallets/templates/tmp_yandex_money_request_example.html
  2. 9
      wallets/views.py

@ -9,7 +9,6 @@
<p>scid: <input type='text' name='scid' value='{{ YANDEX_MONEY.scid }}'></p>
<p>sum: <input type='text' name='sum' value='100'></p>
<p>customerNumber: <input type='text' name='customerNumber' value='123'></p>
<p>paymentType: <input type='text' name='paymentType' value='AC'></p>
<p>transactionId: <input type='text' name='transactionId' value='{{ transaction.pk }}'></p>

@ -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('<pre>{msg}</pre>'.format(msg=pformat(form.errors))) # Debug
return HttpResponse(res, content_type='application/xml')
# return HttpResponse('<pre>{msg}</pre>'.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('<pre>{msg}</pre>'.format(msg=pformat(form.errors))) # Debug
return HttpResponse(res, content_type='application/xml')
# return HttpResponse('<pre>{msg}</pre>'.format(msg=pformat(form.errors))) # Debug

Loading…
Cancel
Save