Specification » History » Version 1
Soh Keong, 03/31/2021 03:52 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 | |||
31 | # *CONNECTION_TIMEOUT* |
||
32 | # *READ_TIMEOUT* |
||
33 | |||
34 | h2. Database Table |
||
35 | |||
36 | <pre> |
||
37 | |||
38 | |||
39 | </pre> |
||
40 | |||
41 | |||
42 | h2. China Trust Service |
||
43 | |||
44 | <pre> |
||
45 | com.aces.ctcb.service.ChinaTrustService service = new com.aces.ctcb.service.ChinaTrustService(); |
||
46 | </pre> |
||
47 | |||
48 | h3. getURL |
||
49 | |||
50 | <pre> |
||
51 | String url = service.getURL(Connection conn, PaymentCtcb payment) |
||
52 | </pre> |
||
53 | |||
54 | # *conn* - Database connection. |
||
55 | # *payment* - PaymentCtcb object. |
||
56 | > * *orderId* - Order ID. |
||
57 | > * *amount* - Transaction amount. |
||
58 | > * *currency* - com.aces.ctcb.common.CommonConstants.CURRENCY_CODE_TAIWAN |
||
59 | > * *trxType* - |
||
60 | > * *returnURL* - |
||
61 | > * *shopperRefNo* - |
||
62 | > * *InstallPeriod* - If applicable |
||
63 | > * *TrxTypeCtcb* - com.aces.ctcb.common.CommonConstants.TRANSACTION_TYPE_NORMAL || INSTALLMENT |
||
64 | > * *Language* - com.aces.ctcb.common.CommonConstants.CUSTOMIZE_TRADITIONAL_CHINESE || SIMPLIFIED_CHINESE || ENGLISH |