Specification » History » Revision 4
Revision 3 (Soh Keong, 02/23/2022 09:08 AM) → Revision 4/6 (Soh Keong, 02/23/2022 10:45 AM)
{{toc}}
h1. Specification
h1. Programming Guide
h2. Jar version
|_. version |_. Description |
| 1.0 | Init |
h2. Jar File Download
"Jar":/redmine/attachments/download/636/NomuPay-1.0.jar
"Properties":/redmine/attachments/download/637/nomupay.properties
"redirectPage":/redmine/attachments/download/638/ProcessCardPaymentNomupay.jsp
h3. Classes
* *com.nomupay.common* - CommonConstant, CommonProperties
* *com.nomupay.dao* - NomuInterface
* *com.nomupay.model* - CommonNomuBean, RequestNomuBean, ResponseNomuBean
* *com.nomupay.service* - NomuService
* *com.nomupay.utils* - NomuUtil
h3. properties file
* *nomupay.properties*
# *merchant.id*
# *action* - PREAUTH, VERIFY, *SALE*, REFUND, REFUND_SALE
# *type* - *1 (E-commerce (ECOM))*; 2 (Mail Order/Telephone Order (MOTO)); 9 (Continuous Authority (CA))
# *payment.url* - Nomupay URL
# *redirect.url* - Aces URL
# *merchant.country.code* - Merchant’s location (ISO 3166-1 3-digit code)
# *signature* - Use for hashing
h2. Database Table
<pre>
CREATE TABLE NOMU_INTERFACE (
ORDER_ID VARCHAR(15) NOT NULL,
TRX_TYPE VARCHAR(5),
SHOPPER_REF_NO INTEGER,
CURRENCY VARCHAR(3),
CHARGE_AMT DECIMAL(15,2),
TRAN_ID INTEGER,
XREF VARCHAR(30),
STATUS VARCHAR(2),
ERROR_CODE VARCHAR(20),
ERROR_DESC VARCHAR(100),
IS_VALID CHARACTER DEFAULT 'N',
PAY_DATE TIMESTAMP,
CREATE_DATETIME TIMESTAMP DEFAULT CURRENT TIMESTAMP,
MODIFY_DATETIME TIMESTAMP,
PRIMARY KEY (ORDER_ID))
</pre>
h2. NomuPay Service
<pre>
com.nomupay.service.NomuService service = new com.nomupay.service.NomuService();
</pre>
h3. getURL
<pre>
String URL = service.getURL(Connection conn, RequestNomuBean bean);
</pre>
# *conn* - Database connection.
# *payment* - PaymentNomu object.
> * *orderId* -
> * *amount* -
> * *currencyCode* - Current support 840 only
> * *trxType* -
> * *shopperRefNo* -
> * *redirectURL* -
> * *callbackURL* -
h3. Update NomuPay Response into Database
<pre>
com.nomupay.model.ResponseNomuBean res = service.updateTransaction(Connection conn, HttpServletRequest request)
</pre>
# *ResponseNomuBean*
> * orderId - String
> * ResponseCode - String
> * ResponseStatus - String
> * ResponseMessage - String
> * TransactionId - String
> * Amount - String
> * XRef - String
> * ResponseUpdateTime - timestamp
> * AuthCode - String