Programming Guide » History » Version 5
chin-yeh, 09/21/2011 01:00 PM
1 | 2 | chin-yeh | {{toc}} |
---|---|---|---|
2 | |||
3 | 1 | chin-yeh | h1. Programming Guide |
4 | 2 | chin-yeh | |
5 | Describes how to integrate the mPay into online mall. |
||
6 | |||
7 | 4 | chin-yeh | *Demo application:* |
8 | * Generate Redirect URL (for hosted payment form) |
||
9 | > http://192.168.2.68/ecosway/mpay-sample/payment_form.html |
||
10 | 5 | chin-yeh | * Query Payment Status: |
11 | 4 | chin-yeh | > http://192.168.2.68/ecosway/mpay-sample/query.html |
12 | 3 | chin-yeh | |
13 | 2 | chin-yeh | h2. Source files |
14 | |||
15 | > Get the source files from [[wiki#SCM|SCM]]. |
||
16 | |||
17 | *Files:* |
||
18 | * my.com.eCosway.mpay |
||
19 | ** Commons - list of common constant |
||
20 | ** MpayInterfaceUtils - an utility to perform data persistence related operation |
||
21 | ** MpayPaymentUtils - the mPay APIs |
||
22 | ** MpayProperties - data model of the mPay properties |
||
23 | ** PaymentRequest - data model of the mPay's payment request |
||
24 | ** PaymentResponse - data model of the mPay's payment response |
||
25 | * resources.properties.mpay |
||
26 | ** mpay.properties - the application properties file |
||
27 | 3 | chin-yeh | |
28 | *Demo application:* |
||
29 | 1 | chin-yeh | > can be found in mpay-sample folder (web content) |
30 | 5 | chin-yeh | |
31 | h2. Generate Redirect URL |
||
32 | |||
33 | h3. Input Parameters |
||
34 | |||
35 | h3. Output Parameters |
||
36 | |||
37 | h3. Code Snippets |
||
38 | |||
39 | |||
40 | h2. Query Payment Status |
||
41 | |||
42 | h3. Input Parameters |
||
43 | |||
44 | h3. Output Parameters |
||
45 | |||
46 | h3. Code Snippets |