报文示例

V5.3 # 1. PAYMENTS ## 1.1 CREATE ORDER ### 1.1.1 H5 PAYMENT <a id ="H5_PAYMENT"></a> >Support H5 payment of UnionPay and Alipay. **REQUEST** ``` json curl --request POST \ --url https://testapi.allpayx.com/api/v5/createorder \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "orderNum":"20230210095557", "orderCurrency":"CNY", "frontUrl":"https://test.allpayx.com/demo/result", "backUrl":"https://test.allpayx.com/demo/result", "merId":"600039259442068", "transTime":"20230210095557", "signType":"SHA256", "osType":"WINDOWS", "osVersion":"", "orderAmount":"1", "goodsInfo":"apple", "detailInfo":"W3siZ29vZHNfbmFtZSI6ICJhcHBsZSIsICJxdWFudGl0eSI6ICIyIn1d", "merReserve":"", "userIp":"116.230.182.159", "userId":"user01", "logisticsStreet":"zhangjiang", "paymentBrand":"unionpay", "tradeFrom":"H5", "signature":"7878cd46d5cf52f2900bc7f209b167cd45a03460ff8ad0fcedbf5feb562d644d" } ' ``` paymentBrand:unionpay,alipay_cn,wechat_pay,... **RESPONSE** ```json { "respCode":"00", "respMsg":"success", "merId":"600039259442068", "orderNum":"20230210095557", "transId":"3bIMFhBBNgil5vpF", "parameter":{ "payUrl":"https://testapi.allpayx.com/api/receiveCode?allPayTn=2fb4d428f96d332df2220e3f7856e292" } } ``` <a id ="APP_PAYMENT"></a> ### 1.1.2 APP PAYMENT >Support xx payment of UnionPay and Alipay. **REQUEST** ``` json ``` **RESPONSE** ```json ``` #### 1.1.3 WEB PAYMENT >Support xx payment of UnionPay and Alipay. **REQUEST** ``` json ``` **RESPONSE** ```json ``` #### 1.1.4 JSAPI PAYMENT >Support xx payment of UnionPay and Alipay. **REQUEST** ``` json ``` **RESPONSE** ```json ``` #### 1.1.5 APPLET PAYMENT >Support xx payment of UnionPay and Alipay. **REQUEST** ``` json ``` **RESPONSE** ```json ``` #### 1.1.5 QRCODE PAYMENT >Support xx payment of UnionPay and Alipay. **REQUEST** ``` json ``` **RESPONSE** ```json ``` ### 1.2 CREATE ORDER(PPRO) ### 1.3 CREATE ORDER(EVO) ### 1.4 CREATE ORDER(FC) ### 1.4 CHECKOUT ## 2. ORDER QUERY >Query the status of `payment` transaction. **REQUEST** ``` json ``` **RESPONSE** ```json ``` ## 3. REFUND > Refund only support successful payment transaction. **REQUEST** ``` json ``` **RESPONSE** ```json ``` ## 4. ASYNC NOTICE <a id ="PAYMENT_RESULT"></a> ### 4.1 PAYMENT RESULT > .... **REQUEST** ``` json ``` **RESPONSE** ```json ``` ### 4.2 REFUND RESULT > .... **REQUEST** ``` json ``` **RESPONSE** ```json ```