Project

General

Profile

Specification » History » Version 9

Soh Keong, 05/09/2012 12:01 PM

1 1 Soh Keong
h1. Specification
2 2 Soh Keong
3 8 Soh Keong
h1. Activity Diagram
4 4 Soh Keong
5 2 Soh Keong
Figure 1 showing the process flow from Mexico mall to TNS Payment Gateway Page.
6
!gw.png!
7 3 Soh Keong
Figure 2 showing the process flow of TNS Payment Gateway redirect back to Mexico Mall.
8 1 Soh Keong
!recv.png!
9 5 Soh Keong
10 8 Soh Keong
h1. Programming Guide
11 5 Soh Keong
12 8 Soh Keong
h2. Resources
13 1 Soh Keong
14 8 Soh Keong
h3. SCM
15 1 Soh Keong
16
see [[wiki#SCM]]
17 8 Soh Keong
18
h3. Classes
19
20
* *my.com.eCosway.tns.commons*      - CommonConstants
21
* *my.com.eCosway.tns.model*        - Transaction, TransCommon, TransResponse
22
* *my.com.eCosway.tns.service*      - TNSService (interface)
23
* *my.com.eCosway.tns.service.impl* - TNSServiceImpl (implementation of interface)
24
* *my.com.eCosway.tns.tnsInterface* - TNSInterfaces (Data Persistence)
25
* *my.com.eCosway.tns.utils*        - SecureHash, URLUtils
26
* *test.my.com.eCosway.tns.utils*   - SecureHashTest, URLUtilsTest (JUnit Test)
27
28
h3. properties file
29
30
* *jdbc.properties* 
31
32
   # *tns.interface.table.name* - table name of TNS interface
33
34
* *log4j.properties*
35
* *transaction.properties*
36
37
   # *vpc_Version*        - The version of the Virtual Payment Client API being used.
38
   # *vpc_Command*        - Indicates the desired operation to be performed.
39
   # *vpc_AccessCode*     - Authenticates the merchant on the Payment Server.
40
   # *vpc_Merchant*       - The Merchant ID identifies the merchant account against which settlements will be made. 
41
   # *vpc_SecureHash*     - A secure hash which allows the Virtual Payment Client to authenticate the merchant and check the integrity of the Transaction Request.
42
   # *vpc_SecureHashType* - The type of hash algorithm used to generate the secure hash.
43
   # *vpc_ReturnAuthResponseData* - Specifies whether the authorisation response data must be included in the Transaction Response.
44 9 Soh Keong
   # *tns_url*            - Used to redirect user to TNS Payment Page.
45
46
h3. Table
47
48
<pre>
49
CREATE TABLE ECOS.TNS_INTERFACE (
50
> > ORDER_ID VARCHAR(100) NOT NULL, 
51
  AMOUNT INTEGER, 
52
  TXN_TYPE VARCHAR(20), MEMBER_ID VARCHAR(20), ERROR_MESSAGE VARCHAR(255), RESPONSE_CODE CHARACTER, RECEIPT_NO VARCHAR(20), TRANSACTION_NO INTEGER, AUTHORIZE_ID VARCHAR(6), CARD_TYPE VARCHAR(2), TRANSACTION_IDENTIFIER VARCHAR(20), IS_VALID CHARACTER, LAST_UPDATED TIMESTAMP, PRIMARY KEY (ORDER_ID));
53
</pre>