Пример #1
0
 def test_payment(self):
     #OK DUNNO how to test this
     p = Payment()
     paymentSessionId = p.create_payment('test', 'VS test', 10, paymentChannels=const.PAYMENT_METHODS-set(['SUPERCASH']))
     self.assertTrue(paymentSessionId)
     print 'paymentSessionId', paymentSessionId
     print 'GOTO url', utils.create_redirect_url(paymentSessionId)
Пример #2
0
def common_view(request, type):
    payment_data = request.GET
    p = Payment()
    try:
        p.payment_status_notification_validation(payment_data)
    except Exception, e:
        return HttpResponseForbidden(str(e))
Пример #3
0
 def dtest_payment_verification(self):
     p = Payment()
     print p.verify_payment_status('3000859056')