Deployment Guide - qiwi-billManagement » History » Version 9
Soh Keong, 06/14/2012 09:50 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 | 5 | Soh Keong | * 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 | # 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 | # currency - The currency of the order expressed as an ISO 4217 alpha code. |
||
37 | # 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 | # maxAmount - maximum amount in single bill. (will ignore if NOT split) |
||
42 | |||
43 | 1 | Soh Keong | * Cancel Bill |
44 | 9 | Soh Keong | |
45 | 7 | Soh Keong | <pre> |
46 | int result = service.cancelBill(String transaction); |
||
47 | 1 | Soh Keong | </pre> |
48 | 9 | Soh Keong | |
49 | 1 | Soh Keong | * Create Bill Payed Amount |
50 | 9 | Soh Keong | |
51 | 7 | Soh Keong | <pre> |
52 | int result = service.cancelBillPayedAmount(String nbill, double amount); |
||
53 | </pre> |
||
54 | 1 | Soh Keong | |
55 | 4 | Soh Keong | |
56 | 1 | Soh Keong | *Development Server:* |
57 | 6 | Soh Keong | <pre> |
58 | 1 | Soh Keong | http://192.168.2.68:8080/qiwi-billManagementTest/ |
59 | </pre> |