Skip to content

Commit

Permalink
Merge pull request gusibi#43 from OIdiotLin/unifiedorder_profit_sharing
Browse files Browse the repository at this point in the history
添加统一下单分账功能
  • Loading branch information
gusibi authored Oct 31, 2019
2 parents 1854ddb + 9543d68 commit 1b91b90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion weixin/pay.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,11 @@ def unifiedorder(self, body='', out_trade_no='', total_fee='', openid='',
detail='', attach='', time_start='', time_expire='',
goods_tag='', product_id='', limit_pay='', device_info='',
fee_type='CNY', spbill_create_ip=SPBILL_CREATE_IP,
trade_type='JSAPI', notify_url=''):
trade_type='JSAPI', notify_url='', profit_sharing='N'):
"""
统一下单接口
https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_1
:param profit_sharing: 可选,是否需要分账,缺省为'N'不分账,如要分账则设置为'Y',字母要求大写
:param trade_type: 交易类型,取值如下:JSAPI,NATIVE,APP,WAP, MWEB
:param body: 商品描述
:param total_fee: 总金额,单位分
Expand Down Expand Up @@ -169,6 +170,7 @@ def unifiedorder(self, body='', out_trade_no='', total_fee='', openid='',
goods_tag=goods_tag, # 商品标记
product_id=product_id, # 商品ID
limit_pay=limit_pay, # 指定支付方式
profit_sharing=profit_sharing, # 是否需要分账
)
method, url, kwargs = self.prepare_request('POST', path, params)
return self.make_request(method, url, kwargs)
Expand Down

0 comments on commit 1b91b90

Please sign in to comment.