Project

General

Profile

Specification » History » Revision 3

Revision 2 (Soh Keong, 12/02/2020 05:42 PM) → Revision 3/4 (Soh Keong, 12/03/2020 04:56 PM)

{{toc}} 

 h1. Specification 

 h1. Programming Guide 

 h3. Jar version  

 |_. version |_. Description    | 
 | 1.2.1       | Init             | 

 h3. Jar File Download 

 "Jar":/redmine/attachments/download/533/wechat_QFPay_HK-1.2.jar 
 "Properties":/redmine/attachments/download/534/wechat_HK.properties 
 "Lib":/redmine/attachments/download/535/lib.rar 

 h3. properties file 

 * *wechat_HK.properties* 
 # *payment.url*              
 # *payment.code.hk*              
 # *payment.key.hk*              
 # *payment.mchid.hk*   
 # *sub.url.qrcode* 
 # *sub.url.query* 
 # *sub.url.download* 
 # *charset* 
 # *http.connection.timeout* 
 # *http.read.timeout* 

 h3. Database Table 

 <pre> 
 CREATE TABLE WECHAT_INTERFACE (  
     ORDER_ID VARCHAR(15) NOT NULL,  
     TRX_TYPE VARCHAR(15) NOT NULL,  
     SHOPPER_REF_NO INTEGER NOT NULL,  
     CURRENCY VARCHAR(3), 
     CHARGE_AMT DECIMAL(15,2) NOT NULL,  
     QR_CODE VARCHAR(255), 
     RESPONSE_CODE VARCHAR(15),  
     RESPONSE_MSG VARCHAR(100), 
     SYSSN VARCHAR(50), 
     IS_VALID CHARACTER NOT NULL,  
     PAY_DATE TIMESTAMP,  
     CREATE_DATETIME TIMESTAMP NOT NULL,  
     MODIFY_DATETIME TIMESTAMP,  
     PRIMARY KEY (ORDER_ID))  
 </pre> 

 h2. Method 

 <pre> 
 com.ecosway.wechat.service.WechatService service = new com.ecosway.wechat.service.WechatService(); 
 </pre> 

 h3. getDataURI 

 <pre> 
 com.ecosway.wechat.model.QRResponseWechat resultBean = service.getDataURI(Connection conn, PaymentWechat payment)  
 </pre> 

 # *conn*             - Database connection. 
 # *payment*          - PaymentWechat object. 
 > * *orderId*            - Order ID. 
 > * *amount*             - Transaction amount. 
 > * *requestTimestamp* - Date 
 > * *trxType*            -  
 > * *payType*            -  
 > * *shopperRefNo*       -  
 > * *goodName*           -  
 > * *currency*           -  

 # *resultBean* *payment*          - QRResponseWechat PaymentWechat object. 
 > * *errorCode*          - String 
 > * *errorDesc*          - String 
 > * *responseMessage*    - String 
 > * *valid*              - boolean 
 > * *orderId*            - Order ID. 
 > * *responseDate*       - Date 
 > * *responseId*         - String 
 > * *qrCodeId*           - String 
 > * *payURL*             - String 


 h3.  

 <pre> 
 com.ecosway.wechat.model.ResultResponseWechat queryOrder(Connection conn, String orderId, String companyName) 
 </pre> 

 # *resultBean*          - QRResponseWechat object. 
 > *detailList*           - List<ResponseDetailWechat> 
 > * *responseCode*          - String 
 > * *errorMessage*          - String 
 > * *orderId*               - String 
 > * *responseDate*          - Date 
 > * *payDate*               - Date 
 > * *responseId*            - String 
 > * *orderType*             - String 
 > * *cancel*                - String 






 





 // TODO