Specification » History » Version 2
Soh Keong, 12/08/2020 05:06 PM
1 | 1 | Soh Keong | {{toc}} |
---|---|---|---|
2 | |||
3 | h1. Specification |
||
4 | |||
5 | h1. Activity Diagram |
||
6 | !NewPPBasicWorkflow.png! |
||
7 | |||
8 | h1. Programming Guide |
||
9 | |||
10 | h2. Jar version |
||
11 | |||
12 | |_. version |_. Description | |
||
13 | | 1.3 | Init | |
||
14 | |||
15 | h2. Jar File Download |
||
16 | |||
17 | "Jar":/redmine/attachments/download/544/wirecard-1.3.jar |
||
18 | "Properties":http://192.168.2.61:8000/redmine/attachments/download/545/wire.properties |
||
19 | |||
20 | h3. properties file |
||
21 | |||
22 | * *wire.properties* |
||
23 | |||
24 | # *merchant.id* |
||
25 | # *transaction.type* |
||
26 | # *payment.method* |
||
27 | # *cardholder* |
||
28 | # *payment.username* |
||
29 | # *payment.password* |
||
30 | # *payment.url* |
||
31 | # *payment.secret* |
||
32 | # *CONNECTION_TIMEOUT* |
||
33 | # *READ_TIMEOUT* |
||
34 | |||
35 | |||
36 | h2. Database Table |
||
37 | |||
38 | <pre> |
||
39 | CREATE TABLE WIRE_INTERFACE ( |
||
40 | ORDER_ID VARCHAR(15) NOT NULL, |
||
41 | TRX_TYPE VARCHAR(5), |
||
42 | SHOPPER_REF_NO INTEGER, |
||
43 | CURRENCY VARCHAR(3), |
||
44 | CHARGE_AMT DECIMAL(15,2), |
||
45 | STATUS VARCHAR(15), |
||
46 | ERROR_CODE VARCHAR(20), |
||
47 | ERROR_DESC VARCHAR(100), |
||
48 | IS_VALID CHARACTER NOT NULL, |
||
49 | TRAN_ID VARCHAR(50), |
||
50 | PAY_DATE TIMESTAMP, |
||
51 | APP_CODE VARCHAR(10), |
||
52 | CREATE_DATETIME TIMESTAMP NOT NULL, |
||
53 | MODIFY_DATETIME TIMESTAMP, |
||
54 | PRIMARY KEY (ORDER_ID)); |
||
55 | </pre> |
||
56 | |||
57 | h2. Wirecard Service |
||
58 | |||
59 | <pre> |
||
60 | com.aces.wire.service.WireService service = new com.aces.wire.service.WireService(); |
||
61 | </pre> |
||
62 | |||
63 | h3. getURL |
||
64 | |||
65 | <pre> |
||
66 | String url = service.getURL(Connection conn, PaymentWire bean) |
||
67 | </pre> |
||
68 | |||
69 | # *conn* - Database connection. |
||
70 | # *payment* - PaymentWire object. |
||
71 | > * *orderId* - Order ID. |
||
72 | > * *amount* - Transaction amount. |
||
73 | > * *currency* - |
||
74 | > * *trxType* - |
||
75 | > * *shopperRefNo* - |
||
76 | > * *shopperName* - |
||
77 | > * *successURL* - |
||
78 | > * *failURL* - |
||
79 | > * *cancelURL* - |
||
80 | |||
81 | h3. updateTransaction |
||
82 | |||
83 | <pre> |
||
84 | com.aces.wire.model.ResponseWire resultBean = service.updateTransaction(Connection conn, HttpServletRequest request) |
||
85 | </pre> |
||
86 | 2 | Soh Keong | |
87 | # *ResponseWire* |
||
88 | > * *status* - |
||
89 | > * *errorCode* - |
||
90 | > * *errorDesc* - |
||
91 | > * *orderId* - Order ID. |
||
92 | > * *amount* - Transaction amount. |
||
93 | > * *currency* - |
||
94 | > * *trxType* - |
||
95 | > * *appCode* - |
||
96 | > * *tranId* - |
||
97 | > * *payDate* - Date |
||
98 | > * *valid* - boolean |