Project

General

Profile

Actions

Specification

Programming Guide

Jar version

version Description
1.2.1 Init

Jar File Download

Jar
Properties
Lib

properties file

  • wechat_HK.properties
    1. payment.url
    2. payment.code.hk
    3. payment.key.hk
    4. payment.mchid.hk
    5. sub.url.qrcode
    6. sub.url.query
    7. sub.url.download
    8. charset
    9. http.connection.timeout
    10. 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) 
  1. conn - Database connection.
  2. payment - PaymentWechat object.
  • orderId - Order ID.
  • amount - Transaction amount.
  • requestTimestamp - Date
  • trxType -
  • payType -
  • shopperRefNo -
  • goodName -
  • currency -
  1. 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)
  1. 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