Specification » History » Revision 4
Revision 3 (Soh Keong, 03/31/2021 05:15 PM) → Revision 4/6 (Soh Keong, 04/15/2021 11:45 AM)
{{toc}} h1. Specification h1. Activity Diagram !paymentPage.jpg! h1. Programming Guide h2. Jar version |_. version |_. Description | | 1.o | Init | h3. Jar File Download "Jar":/redmine/attachments/download/591/ctbc-1.0.jar "Jar": "Properties":/redmine/attachments/download/590/ctbc.properties "Lib":/redmine/attachments/download/592/posapi_mac_j_npg.jar "Properties": h2. properties file * *ctcb.properties* # *merchant.id* # *terminal.id* # *mer.id* # *key* # *terminal.id.installment* # *mer.id.installment* # *key.installment* # *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