Project

General

Profile

Specification » History » Revision 3

Revision 2 (Soh Keong, 03/31/2021 04:51 PM) → Revision 3/6 (Soh Keong, 03/31/2021 05:15 PM)

{{toc}} 

 h1. Specification 

 h1. Activity Diagram 

 !paymentPage.jpg! 

 h1. Programming Guide 

 h2. Jar version  

 |_. version |_. Description       | 
 | 1.o         | Init                | 

 h3. Jar File Download 

 "Jar": 
 "Properties": 

 h2. properties file 

 * *ctcb.properties* 
     
 # *merchant.id*   
 # *terminal.id*   
 # *mer.id* 
 # *key* 
 # *payment.url.credit.card* 
 

 # *CONNECTION_TIMEOUT*     
 # *READ_TIMEOUT* 

 h2. Database Table 

 <pre> 


 </pre>     


 h2. China Trust Service 

 <pre> 
 com.aces.ctcb.service.ChinaTrustService service = new com.aces.ctcb.service.ChinaTrustService(); 
 </pre> 

 h3. getURL 

 <pre> 
 String url = service.getURL(Connection conn, PaymentCtcb payment) 
 </pre> 

 # *conn*             - Database connection. 
 # *payment*          - PaymentCtcb object. 
 > * *orderId*            - Order ID. 
 > * *amount*             - Transaction amount.  
 > * *currency*           - com.aces.ctcb.common.CommonConstants.CURRENCY_CODE_TAIWAN 
 > * *trxType*            -  
 > * *returnURL*          -  
 > * *shopperRefNo*       -  
 > * *InstallPeriod*      - IGNORE if not applicable 
 > * *TrxTypeCtcb*        - com.aces.ctcb.common.CommonConstants.TRANSACTION_TYPE_NORMAL || INSTALLMENT  
 > * *Language*           - com.aces.ctcb.common.CommonConstants.CUSTOMIZE_TRADITIONAL_CHINESE || SIMPLIFIED_CHINESE || ENGLISH 

 h3. updateTransaction 

 <pre> 
 ResponseCtcb res = updateTransaction(Connection conn, HttpServletRequest request) 
 </pre> 

 # *ResponseCtcb* 
 > * recordErrorCode -  
 > * recordErrorMsg    -  
 > * trxErrorCode      -  
 > * trxErrorMsg       - 
 > * status            - 
 > * orderId     - String 
 > * amount      - double 
 > * trxType     -  
 > * authCode  
 > * termSeq  
 > * TranId  
 > * valid