Actions
- Table of contents
- Specification
- Programming Guide
Specification¶
Programming Guide¶
Jar version¶
version | Description |
---|---|
1.2.1 | Init |
Jar File Download¶
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
Database Table¶
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))
Method¶
com.ecosway.wechat.service.WechatService service = new com.ecosway.wechat.service.WechatService();
getDataURI¶
com.ecosway.wechat.model.QRResponseWechat resultBean = service.getDataURI(Connection conn, PaymentWechat payment)
- conn - Database connection.
- payment - PaymentWechat object.
- orderId - Order ID.
- amount - Transaction amount.
- requestTimestamp - Date
- trxType -
- payType -
- shopperRefNo -
- goodName -
- currency -
- resultBean - QRResponseWechat object.
- errorCode - String
- errorDesc - String
- responseMessage - String
- valid - boolean
- orderId - Order ID.
- responseDate - Date
- responseId - String
- qrCodeId - String
- payURL - String
queryOrder¶
com.ecosway.wechat.model.ResultResponseWechat queryOrder(Connection conn, String orderId, String companyName)
- resultBean - QRResponseWechat object.
detailList - List<ResponseDetailWechat>
- responseCode - String
- errorMessage - String
- orderId - String
- responseDate - Date
- payDate - Date
- responseId - String
- orderType - String
- cancel - String
Updated by Soh Keong about 4 years ago ยท 4 revisions