有奖捉虫:行业应用 & 管理与支持文档专题 HOT

接口描述

此接口为云支付系统主动调用服务商后台系统的请求。
支付成功回调的 URL 地址是服务商在控制台配置的“交易完成回调 URL”,**并非支付接口参数中的 caller_notify_url**。
如果云支付后台接收到服务商系统回包失败,至多会重试三次,每次间隔30秒 - 60秒。

输入参数

参数名
必填
类型
说明
request_content
String
请求内容,该 string 可以转为 json 结构,json 格式见本节 RequestContent。
authen_info
AuthenInfo
认证信息,authen_code 生成使用的是服务商的 authen_key 进行签名计算,详见接口调用说明。

RequestContent 结构

参数名
必填
类型
说明
nonce_str
String(32)
随机字符串。
pay_mch_key
PayMchKey
支付商户信息,详见公共数据结构 PayMchKey。
order_content
OrderContent
订单信息,详见公共数据结构 OrderContent。
order_client
OrderClient
订单客户端信息,详见公共数据结构 OrderClient。

输出参数

无需返回内容。云支付系统根据返回的 HTTP 状态码做如下操作:HTTP 状态码为200,云支付系统认为消息正常接受,否则会发起重试,最多重试三次。

示例

输入参数示例:
{??????
????"request_content":?"{??????
????????????"pay_mch_key":?{??????
????????????????"pay_platform":?1,??????
????????????????"out_mch_id":?"sz01lXKA6DKGjNzr2l4B",??????
????????????????"out_sub_mch_id":?"sz01KzuCUOmw8yjtPite",??????
????????????????"out_shop_id":?"sz011biKxOguirmBqiFR",??????
????????????????"wxpay_pay_mch_key_ext":?{??????
????????????????????"app_id":?"wx998fa95558590e1c",??????
????????????????????"open_id":?"ovJrDwsjamQql-k7Zr1Q-EaKFQ0k",??????
????????????????}??????
????????????},??????
????????????"order_content":?{??????
????????????????"out_trade_no":?"sz010002cz11566803216",??????
????????????????"transaction_id":?"4200000400201908267240992395",??????
????????????????"trade_type":?1,??????
????????????????"author_code":?"134520273825387649",??????
????????????????"time_expire":?1566803336,??????
????????????????"time_end":?1566803217,??????
????????????????"nonce_str":?"E94C00688C3F429CA2B0B396BF823548",??????
????????????????"create_time":?1566803216,??????
????????????????"last_update_time":?1566803218,??????
????????????????"is_transforming":?false,??????
????????????????"source_type":?0,??????
????????????????"caller_notify_url":?"",??????
????????????????"total_fee":?1,??????
????????????????"fee_type":?"CNY",??????
????????????????"cash_fee":?1,??????
????????????????"cash_fee_type":?"CNY",??????
????????????????"settlement_total_fee":?1,??????
????????????????"body":?"body",??????
????????????????"detail":?"",??????
????????????????"context":?"",??????
????????????????"exchange_rate":?100000000,??????
????????????????"trade_state":?4,??????
????????????????"wxpay_order_content_ext":?{??????
? ??????????????????"current_trade_state":?2,??????
???????????????????"attach":?"",??????
????????????????????"bank_type":?"CFT",??????
????????????????????"goods_tag":?"X293123",??????
????????????????????"coupon_fee":?0,??????
????????????????????"coupon_count":?0,??????
????????????????????"product_id":?"",??????
????????????????????"limit_pay":?"",??????
????????????????????"prepare_id":?"",??????
????????????????????"trade_state_desc":?"",??????
????????????????},??????
????????????},??????
????????????"nonce_str":?"TqSHJKFpAlCOr3nfKWf4QTKwmiboi0Sn",??????
????????????"order_client":?{??????
????????????????"device_id":?"824",??????
????????????????"staff_id":?"1206",??????
????????????????"machine_no":?"1111",??????
????????????????"terminal_type":?1,??????
????????????????"sdk_version":?"1.0",??????
????????????????"spbill_create_ip":?"90.0.00.0",??????
????????????????"sub_terminal_type":?0??????
????????????}??????
????????}",??????
????"authen_info":?{??????
????????"a":?{??????
????????????"authen_type":?1,??????
????????????"authen_code":?"428C7A16E605C21CF1A939882D7A195D26E041A3CAEFF004F11B0B1CC7EE8727"??????
????????}??????
????}??????
}??????
?


http://www.vxiaotou.com