Esempio 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()
Esempio 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()
 def setUp(self):
     super(IndexHandlerWithMMPaymentTest, self).setUp()
     BillingCore.init('mm', 'gems',
                      TEST_PAYMENT_NAME, self.items, 'secretkey',
                      self.engine.callback)
Esempio 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()