Project

General

Profile

Deployment Guide - qiwi-billManagement » History » Version 10

Soh Keong, 06/14/2012 09:53 AM

1 6 Soh Keong
h1. Deployment Guide - qiwi-billManagement
2 1 Soh Keong
3
*Steps-By-Steps:*
4 6 Soh Keong
# checkout the [[wiki#SCM|qiwi-billManagement]] project into <code>Eclipse</code>
5
# upload application.properties to /data/qiwi-provider/application.properties</code> (\\cwyrnd2-server\src\sohkeong\QIWI\Qiwi_billManagement_Properties)
6
# Jar file (\\cwyrnd2-server\src\sohkeong\QIWI\Qiwi_billManagement_Jar)
7 7 Soh Keong
# By calling below methods will get the result code.
8 8 Soh Keong
9 1 Soh Keong
<pre>
10 7 Soh Keong
main.java.com.ecosway.service.IShopServerService service = new main.java.com.ecosway.service.impl.IShopServerServiceImpl();
11
</pre>
12 8 Soh Keong
13 10 Soh Keong
h3. Create Bill
14 8 Soh Keong
15 1 Soh Keong
<pre>
16 8 Soh Keong
int result = service.createBill(Connection conn, String user, double amount,
17
			String comment, String transaction, String transactionType,
18
			int shopperRefNo, String currency, String lifetime, int alarm,
19
			boolean create);
20
21
               > > > > > > > > > > OR < < < < < < < < < < 
22
23
int result = service.createBill(Connection conn, String user, double amount,
24
			String comment, String transaction, String transactionType,
25
			int shopperRefNo, String currency, String lifetime, int alarm,
26
			boolean create, boolean split, double maxAmount);
27 1 Soh Keong
</pre>
28 9 Soh Keong
29 10 Soh Keong
# conn         - java.sql.Connection.
30
# user         - user ID. (MSISDN)
31
# amount       - amount of bill.
32
# comment      - comment to the bill displayed to the user.
33
# transaction  - unique bill ID / Order ID.
34
# transactionType - type of transaction.
35
# shopperRefNo - Shopper Reference No.
36 1 Soh Keong
# currency     - The currency of the order expressed as an ISO 4217 alpha code.
37 10 Soh Keong
# lifetime     - bill lifetime. (in dd.MM.yyyy HH:mm:ss format)
38
# alarm        - send a notification to the user. (sms or call)
39
# create       - flag to create a new user. (if he’s not registered in the system yet)
40
# split        - flag to split bill.
41 7 Soh Keong
# maxAmount    - maximum amount in single bill. (will ignore if NOT split)
42
43 1 Soh Keong
44 4 Soh Keong
  
45 1 Soh Keong
*Development Server:*
46 6 Soh Keong
<pre>
47 1 Soh Keong
http://192.168.2.68:8080/qiwi-billManagementTest/
48
</pre>