当前位置: 首页>>代码示例>>Python>>正文


Python PaymentProcessor.get_backend_setting方法代码示例

本文整理汇总了Python中getpaid.backends.transferuj.PaymentProcessor.get_backend_setting方法的典型用法代码示例。如果您正苦于以下问题:Python PaymentProcessor.get_backend_setting方法的具体用法?Python PaymentProcessor.get_backend_setting怎么用?Python PaymentProcessor.get_backend_setting使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在getpaid.backends.transferuj.PaymentProcessor的用法示例。


在下文中一共展示了PaymentProcessor.get_backend_setting方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: handle

# 需要导入模块: from getpaid.backends.transferuj import PaymentProcessor [as 别名]
# 或者: from getpaid.backends.transferuj.PaymentProcessor import get_backend_setting [as 别名]
    def handle(self, *args, **options):

        key = PaymentProcessor.get_backend_setting("key", None)
        if key is None:
            self.stdout.write('Please be sure to provide "key" setting for this backend (random max. 16 characters)')
        else:
            self.stdout.write("Please setup in Transferuj.pl user defined key (for security signing): %s\n" % key)
开发者ID:giam-forte,项目名称:ExpertBilling,代码行数:9,代码来源:transferuj_configuration.py

示例2: test_default_config_url_transaction_params

# 需要导入模块: from getpaid.backends.transferuj import PaymentProcessor [as 别名]
# 或者: from getpaid.backends.transferuj.PaymentProcessor import get_backend_setting [as 别名]
    def test_default_config_url_transaction_params(self):
        data = self.get_geteway_data()

        crc = data['crc']
        kwota = data['kwota']
        id_ = data['id']
        key = PaymentProcessor.get_backend_setting('key')
        md5sum = six.text_type(id_) + kwota + six.text_type(crc) + key
        md5sum = md5sum.encode('utf-8')

        self.assertEquals(crc, self.payment.pk)
        self.assertEquals(kwota, six.text_type(self.payment.amount))
        self.assertEquals(id_, 1234)
        self.assertEquals(data['md5sum'], md5(md5sum).hexdigest())
开发者ID:dcondeurra,项目名称:django-getpaid,代码行数:16,代码来源:test_transferuj.py


注:本文中的getpaid.backends.transferuj.PaymentProcessor.get_backend_setting方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。