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"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"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"detail":[{18"cost_price":1,19"receipt_id":"1234",20"goods_detail":[{21"goods_id":"iphone6s_16G",22"wxpay_goods_id":"3405",23"goods_name":"iPhone6s 16G",24"quantity":1,25"price":126}]27}],28"scene_info":{29"payer_client_ip":"14.23.150.211",30"device_ip":"59.37.125.32",31"device_id":"013467007045764",32"operator_id":"P001",33"store_info":{34"id":"SZTX001",35"name":"Tencent Building Branch",36"address":"Nanshan District, Shenzhen, Guangdong"37}38}39}
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"promotion_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"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}