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()
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)
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()