1{2"sp_appid":"wxdace645e0bc2c424",3"sp_mchid":"10000100",4"sub_mchid":"20000100",5"out_trade_no":"20150806125346",6"merchant_category_code":"4111",7"payer":{8"auth_code":"134650720866361395"9},10"trade_type":"MICROPAY",11"amount":{12"total":1,13"currency":"HKD"14},15"attach":"Payment Test",16"description":"Image Store - Tencent Building in Shenzhen - QQ Doll",17"goods_tag":"1234",18"limit_pay":"no_credit",19"detail":[{20"cost_price":1,21"receipt_id":"1234",22"goods_detail":[{23"goods_id":"iphone6s_16G",24"wxpay_goods_id":"3405",25"goods_name":"iPhone6s 16G",26"quantity":1,27"price":128}]29}],30"scene_info":{31"payer_client_ip":"14.23.150.211",32"device_ip":"59.37.125.32",33"device_id":"013467007045764",34"operator_id":"P001",35"store_info":{36"id":"SZTX001",37"name":"Tencent Building Branch",38"address":"Nanshan District, Shenzhen, Guangdong"39}40}41}
直连模式
1{2"appid":"wxdace645e0bc2c424",3"mchid":"10000100",4"out_trade_no":"20150806125346",5"merchant_category_code":"4111",6"payer":{7"auth_code":"134650720866361395"8},9"trade_type":"MICROPAY",10"amount":{11"total":1,12"currency":"HKD"13},14"attach":"Payment Test",15"description":"Image Store - Tencent Building in Shenzhen - QQ Doll",16"goods_tag":"1234",17"limit_pay":"no_credit",18"detail":[{19"cost_price":1,20"receipt_id":"1234",21"goods_detail":[{22"goods_id":"iphone6s_16G",23"wxpay_goods_id":"3405",24"goods_name":"iPhone6s 16G",25"quantity":1,26"price":127}]28}],29"scene_info":{30"payer_client_ip":"14.23.150.211",31"device_ip":"59.37.125.32",32"device_id":"013467007045764",33"operator_id":"P001",34"store_info":{35"id":"SZTX001",36"name":"Tencent Building Branch",37"address":"Nanshan District, Shenzhen, Guangdong"38}39}40}
1{2"sp_appid":"wxdace645e0bc2c424",3"sp_mchid":"10000100",4"sub_mchid":"20000100",5"out_trade_no":"20150806125346",6"merchant_category_code":"4111",7"payer":{8"auth_code":"134650720866361395"9},10"trade_type":"MICROPAY",11"amount":{12"total":1,13"currency":"HKD"14},15"attach":"Payment Test",16"description":"Image Store - Tencent Building in Shenzhen - QQ Doll",17"goods_tag":"1234",18"limit_pay":"no_credit",19"promotion_detail":[{20"cost_price":1,21"receipt_id":"1234",22"goods_detail":[{23"goods_id":"iphone6s_16G",24"wxpay_goods_id":"3405",25"goods_name":"iPhone6s 16G",26"quantity":1,27"price":128}]29}],30"scene_info":{31"payer_client_ip":"14.23.150.211",32"device_ip":"59.37.125.32",33"device_id":"013467007045764",34"operator_id":"P001",35"store_info":{36"id":"SZTX001",37"name":"Tencent Building Branch",38"address":"Nanshan District, Shenzhen, Guangdong"39}40}41}
异常示例
1{2"code":"INVALID_REQUEST",3"message":"Parameter format verification error",4"detail":{5"field":"#/properties/payer",6"value":"1346177081915535577",7"issue":"与ALLOF schema不符",8"location":"body"9}10}