Project

General

Profile

Programming Guide » History » Revision 5

Revision 4 (chin-yeh, 09/21/2011 12:53 PM) → Revision 5/21 (chin-yeh, 09/21/2011 01:00 PM)

{{toc}} 

 h1. Programming Guide 

 Describes how to integrate the mPay into online mall. 

 *Demo application:* 
 * Generate Redirect URL (for hosted payment form) 
 > http://192.168.2.68/ecosway/mpay-sample/payment_form.html 
 * Query Payment Status: payment status: 
 > http://192.168.2.68/ecosway/mpay-sample/query.html 

 h2. Source files 

 > Get the source files from [[wiki#SCM|SCM]]. 

 *Files:* 
 * my.com.eCosway.mpay 
 ** Commons - list of common constant 
 ** MpayInterfaceUtils - an utility to perform data persistence related operation 
 ** MpayPaymentUtils - the mPay APIs 
 ** MpayProperties - data model of the mPay properties 
 ** PaymentRequest - data model of the mPay's payment request 
 ** PaymentResponse - data model of the mPay's payment response 
 * resources.properties.mpay 
 ** mpay.properties - the application properties file 

 *Demo application:* 
 > can be found in mpay-sample folder (web content) 

 h2. Generate Redirect URL 

 h3. Input Parameters 

 h3. Output Parameters 

 h3. Code Snippets 


 h2. Query Payment Status 

 h3. Input Parameters 

 h3. Output Parameters 

 h3. Code Snippets