コード例 #1
0
class TestWebhookService(unittest.TestCase):

    amount = 4200
    currency = 'EUR'
    description = 'Test Python'

    def setUp(self):
        self.p = PaymillContext(api_key=test_config.api_key)
        self.webhook = None

    def test_webhook(self):
        self.webhook = self.p.get_webhook_service().create_email('*****@*****.**', ['subscription.succeeded'], True)
        self.assertIsInstance(self.webhook, Webhook)

    def tearDown(self):
        self.p.get_webhook_service().remove(self.webhook)
コード例 #2
0
class TestWebhookService(unittest.TestCase):

    amount = 4200
    currency = 'EUR'
    description = 'Test Python'

    def setUp(self):
        self.p = PaymillContext(api_key=test_config.api_key)
        self.webhook = None

    def test_webhook(self):
        self.webhook = self.p.get_webhook_service().create_email(
            '*****@*****.**', ['subscription.succeeded'], True)
        self.assertIsInstance(self.webhook, Webhook)

    def tearDown(self):
        self.p.get_webhook_service().remove(self.webhook)
コード例 #3
0
 def setUp(self):
     self.p = PaymillContext(api_key=test_config.api_key)
     self.webhook = None
コード例 #4
0
 def setUp(self):
     self.p = PaymillContext(api_key=test_config.api_key)
     self.webhook = None