PayJS
PayJS copied to clipboard
支持支付宝
def native(self, total_fee: int, out_trade_no, body: str = '', type=None, notify_url=None, attach=None):
# 增加type=None
data = {
'mchid': self.mchid,
'total_fee': total_fee,
'out_trade_no': out_trade_no,
'body': body,
'type':type, # 增加 'type':type,
'notify_url': notify_url,
'attach': attach,
}