# -*- coding: utf-8 -*-
# @The_author: Lenovo
# @Time    : 2020/2/4 14:53
import requests
from SHDY.Public import The_random_number
from SHDY.Public.conf import Config
seqNo = The_random_number.order_number()
mercCnm = The_random_number.Company()
mercid = Config().get_param("mercid")
stlOac = The_random_number.credit_card_number()
#print(stlOac)
url = 'http://localhost:8080/DemoJava/fastMerchant/noCardPay/updCardInfo'
data = {
    "orgNumber": "121",  #机构代码
    "mercId": mercid,  #电银商户号
    "seqNo": seqNo,  #请求流水号
    "stlOac": '6210951573972556824',  #银行账号借记卡
    "mercMbl": "17688888889",  #预留手机号
    "stlWcLbnkNo": "307100003019",  #联行行号
    "sign": "string"  #签名
}
reg = requests.post(url, json=data).json()
print(reg)
# -*- coding: utf-8 -*-
# 作者  : 一蓑烟雨任平生
# 时间  : 2020/1/6 13:59
import requests
from SHDY.Public import The_random_number
from SHDY.Public.conf import Config
#mercid = Config().get_param("mercid")
seqNo = The_random_number.order_number()
phon = The_random_number.get_phone()
mercCnm = The_random_number.get_name()
busAddr = The_random_number.Business_address()
crpIdNo = The_random_number.Id_card()
crpNm = The_random_number.get_name()
usrOprEmail = The_random_number.email()
mercId = The_random_number.credit_card_number()

#print(mercid)
url = 'http://localhost:8080/DemoJava/fastMerchant/pos/inComing'
data = {
        'orgNumber': '113',  # 机构代码
        'mercId': mercId,  # 快速商户号
        # 'mercId': '4468165499760',  # 快速商户号手动输入
        'synType': '0',  # 同步类型 0-新增 1-修改
        'seqNo': seqNo,  # 请求流水号
        'mercMbl': phon,  # 商户手机号
        # 'mercMbl': '13818765279',  # 商户手机号
        'mercCnm': mercCnm,  # 商户名称
        'mercAbbr': mercCnm,  # 商户简称
        # 'mercCnm': '杰',  # 商户名称
        # 'mercAbbr': '杰',  # 商户简称
        'mccCd': '7999',  # MCC码
Exemple #3
0
# _*_ coding: utf-8 _*_
# 作者    : 一蓑烟雨任平生
# 创建时间 : 2019/12/30 16:41
import requests
from SHDY.Public import The_random_number
from tem import globalParam

logNo = The_random_number.credit_card_number()
globalParam.save_orderNum(logNo)

url = 'http://116.228.47.74:18280/merchant_agent/rest/fractionalTransfer/req'
data = {
    'memberId': '00005',  # 代理商编号
    'orgNo': '101',  #机构号
    'txnAmts': '66',  #金额
    'logNo': logNo  #流水号
}

reg = requests.post(url=url, json=data).json()
#Config.set_param('logNo',logNo)
print(reg)