Exemplo n.º 1
0
 def __init__(self, social, default_item, name, prices, secret, callback,
              port=8888):
     super(BillingThread, self).__init__()
     BillingCore.init(social, default_item, name, prices, secret, callback)
     self.app = application
     self.port = port
     self.loop = IOLoop.instance()
Exemplo n.º 2
0
 def setUp(self):
     super(VKBaseTest, self).setUp()
     BillingCore.init(
         'vk', 'gems', TEST_PAYMENT_NAME, self.items, 'secretkey',
         self.engine.callback
     )
     self.payment = VKPayment(TEST_PAYMENT_NAME, self.items, 'secretkey',
                              self.engine.callback)
     self.payment.order.collection.drop()
Exemplo n.º 3
0
 def setUp(self):
     super(IndexHandlerWithMMPaymentTest, self).setUp()
     BillingCore.init('mm', 'gems',
                      TEST_PAYMENT_NAME, self.items, 'secretkey',
                      self.engine.callback)
Exemplo n.º 4
0
 def setUp(self):
     super(ODBaseTest, self).setUp()
     BillingCore.init("od", "gems", TEST_PAYMENT_NAME, self.items, "secretkey", self.engine.callback)
     self.payment = BillingCore.payment
     self.payment.order.collection.drop()