Project

General

Profile

Actions

Specification » History » Revision 3

« Previous | Revision 3/6 (diff) | Next »
Soh Keong, 03/31/2021 05:15 PM


Specification

Activity Diagram

Programming Guide

Jar version

version Description
1.o Init

Jar File Download

"Jar":
"Properties":

properties file

  • ctcb.properties
  1. merchant.id
  2. terminal.id
  3. mer.id
  4. key
  5. payment.url.credit.card
  6. CONNECTION_TIMEOUT
  7. READ_TIMEOUT

Database Table


China Trust Service

com.aces.ctcb.service.ChinaTrustService service = new com.aces.ctcb.service.ChinaTrustService();

getURL

String url = service.getURL(Connection conn, PaymentCtcb payment)
  1. conn - Database connection.
  2. 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

updateTransaction

ResponseCtcb res = updateTransaction(Connection conn, HttpServletRequest request)
  1. ResponseCtcb
  • recordErrorCode -
  • recordErrorMsg -
  • trxErrorCode -
  • trxErrorMsg -
  • status -
  • orderId - String
  • amount - double
  • trxType -
  • authCode
  • termSeq
  • TranId
  • valid

Updated by Soh Keong over 3 years ago · 3 revisions