# -*- coding: utf-8 -*- # 支付类 class PaymentService: # 返回支付失败html内容 @staticmethod def get_pay_error_content(): return ''' Trading particulars
Trading particulars


Payment failure

Finish
''' # 返回支付成功html内容 @staticmethod def get_pay_ok_content(lang, pay_type): title = "支付成功" complete = '完成' if lang == 'cn': if pay_type == "10": title = "体验成功" if pay_type == "11": title = "兑换成功" else: title = "Payment successful" complete = 'complete' if pay_type == "10": title = "Successful experience" if pay_type == "11": title = "Successful exchange" return ''' ''' + title + '''


''' + title + '''

''' + complete + '''
'''