Project

General

Profile

Specification » History » Version 3

Soh Keong, 02/26/2021 02:59 PM

1 1 Soh Keong
{{toc}}
2
3
h1. Specification
4
5
h1. Activity Diagram
6
!PaymentFlow.png!
7
8
h1. Programming Guide
9
10
h2. Jar version 
11
12
|_. version |_. Description  |
13 2 Soh Keong
| 1.3       | Init           |
14 1 Soh Keong
15
h2. Jar File Download
16
17 2 Soh Keong
"Jar":/redmine/attachments/download/582/bbl-1.3.jar
18
"Properties":/redmine/attachments/download/581/bbl2.properties
19 1 Soh Keong
"jsp":/redmine/attachments/download/579/ProcessCardPaymentBBL_th.jsp
20
21
h3. properties file
22
23 2 Soh Keong
* *bbl2.properties.properties*
24 1 Soh Keong
25 2 Soh Keong
# *payment.url*     
26
# *currency.code*    
27
# *merchant.id*      
28
29
h2. Database Table
30
31
<pre>
32 3 Soh Keong
CREATE TABLE BBL_INTERFACE (
33
	ORDER_ID VARCHAR(15) NOT NULL, 
34
	TRX_TYPE VARCHAR(5),
35
	SHOPPER_REF_NO INTEGER,
36
	CHARGE_AMT DECIMAL(15,2), 
37
	STATUS VARCHAR(2),
38
	ERROR_CODE VARCHAR(3),
39
	ERROR_DESC VARCHAR(60),	
40
	IPAY_REF VARCHAR(12), 
41
	APPROVAL_CODE VARCHAR(6), 	
42
	IS_VALID CHARACTER NOT NULL, 
43
	PAY_DATE TIMESTAMP,
44
	CREATE_DATETIME TIMESTAMP NOT NULL,
45
	MODIFY_DATETIME TIMESTAMP, 
46
	PRIMARY KEY (ORDER_ID))
47
</pre>
48 2 Soh Keong
49 3 Soh Keong
<pre>
50
com.ecosway.bbl.service.BBLService service = new com.ecosway.bbl.service.impl.BBLServiceImpl();
51 2 Soh Keong
</pre>
52 3 Soh Keong
53
h3. getURL
54
55
<pre>
56
String URL = service.getURL2(Connection conn, PaymentBBL payment);
57
</pre>
58
59
# *conn*           - Database connection.
60
# *payment*        - PaymentBBL object.
61
> * *orderID* 
62
> * *amount*       
63
> * *remark*     
64
> * *transactionType*     
65
> * *shopperRefID*     
66
> * *urlCancel*  
67
> * *urlFail*     
68
> * *urlSuccess*  
69
> * *language*        - T:Thai ; E:English
70
71
h3. Update BBL Response into Database
72
73
<pre>
74
com.ecosway.bbl.service.ResponseBBL res = service.updateTransaction(Connection conn, HttpServletRequest request)
75
</pre>
76
77
# *ResponseBBL*
78
> * *orderID* 
79
> * *amount* 
80
> * *transactionType* 
81
> * *responseCode* 
82
> * *responseMsg* 
83
> * *payDate* 
84
> * *status* 
85
> * *iPayRef* 
86
> * *approvalCode*