Project

General

Profile

Specification » History » Version 3

Soh Keong, 03/31/2021 05:15 PM

1 1 Soh Keong
{{toc}}
2
3
h1. Specification
4
5
h1. Activity Diagram
6
7
!paymentPage.jpg!
8
9
h1. Programming Guide
10
11
h2. Jar version 
12
13
|_. version |_. Description     |
14
| 1.o       | Init              |
15
16
h3. Jar File Download
17
18
"Jar":
19
"Properties":
20
21
h2. properties file
22
23
* *ctcb.properties*
24
     
25
# *merchant.id*  
26
# *terminal.id*  
27
# *mer.id*
28
# *key*
29
# *payment.url.credit.card*
30
# *CONNECTION_TIMEOUT*    
31
# *READ_TIMEOUT*
32
33
h2. Database Table
34
35
<pre>
36
37
38
</pre>    
39
40
41
h2. China Trust Service
42
43
<pre>
44
com.aces.ctcb.service.ChinaTrustService service = new com.aces.ctcb.service.ChinaTrustService();
45
</pre>
46
47
h3. getURL
48
49
<pre>
50
String url = service.getURL(Connection conn, PaymentCtcb payment)
51
</pre>
52
53
# *conn*           - Database connection.
54
# *payment*        - PaymentCtcb object.
55
> * *orderId*          - Order ID.
56
> * *amount*           - Transaction amount. 
57
> * *currency*         - com.aces.ctcb.common.CommonConstants.CURRENCY_CODE_TAIWAN
58
> * *trxType*          - 
59
> * *returnURL*        - 
60
> * *shopperRefNo*     - 
61 2 Soh Keong
> * *InstallPeriod*    - IGNORE if not applicable
62 1 Soh Keong
> * *TrxTypeCtcb*      - com.aces.ctcb.common.CommonConstants.TRANSACTION_TYPE_NORMAL || INSTALLMENT 
63
> * *Language*         - com.aces.ctcb.common.CommonConstants.CUSTOMIZE_TRADITIONAL_CHINESE || SIMPLIFIED_CHINESE || ENGLISH
64 2 Soh Keong
65
h3. updateTransaction
66
67
<pre>
68
ResponseCtcb res = updateTransaction(Connection conn, HttpServletRequest request)
69
</pre>
70
71
# *ResponseCtcb*
72
> * recordErrorCode - 
73
> * recordErrorMsg  - 
74
> * trxErrorCode    - 
75
> * trxErrorMsg     -
76
> * status          -
77
> * orderId   - String
78
> * amount    - double
79
> * trxType   - 
80
> * authCode 
81
> * termSeq 
82
> * TranId 
83
> * valid