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)
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)
def test_create_redirect_cmd(self): self.assertEqual( const.GOPAY_REDIRECT_URL + '?sessionInfo.eshopGoId=8363419680&sessionInfo.encryptedSignature=7d9405a3f474e843a5f61c271f632a2899470f5623a18189941f0b86396699eebe6f77d937e960e3&sessionInfo.paymentSessionId=3000841324', utils.create_redirect_url('3000841324'))
def get_redirect_url(self, paymentSessionId): return utils.create_redirect_url(paymentSessionId)
def test_create_redirect_cmd(self): self.assertEqual( const.GOPAY_REDIRECT_URL + '?sessionInfo.eshopGoId=8363419680&sessionInfo.encryptedSignature=7d9405a3f474e843a5f61c271f632a2899470f5623a18189941f0b86396699eebe6f77d937e960e3&sessionInfo.paymentSessionId=3000841324' , utils.create_redirect_url('3000841324'))