Actions
Specification » History » Revision 2
« Previous |
Revision 2/6
(diff)
| Next »
Soh Keong, 02/22/2022 05:19 PM
- Table of contents
- Specification
- Programming Guide
Specification¶
Programming Guide¶
Jar version¶
version | Description |
---|---|
1.0 | Init |
Jar File Download¶
"Jar":
"Properties":
Classes¶
- com.nomupay.common - CommonConstant, CommonProperties
- com.nomupay.dao - NomuInterface
- com.nomupay.model - CommonNomuBean, RequestNomuBean, ResponseNomuBean
- com.nomupay.service - NomuService
- com.nomupay.utils - NomuUtil
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
Database Table¶
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))
NomuPay Service¶
com.nomupay.service.NomuService service = new com.nomupay.service.NomuService();
getURL¶
String URL = service.getURL(Connection conn, RequestNomuBean bean);
- conn - Database connection.
- payment - PaymentNomu object.
- orderId -
- amount -
- currencyCode -
- trxType -
- shopperRefNo -
- redirectURL -
- callbackURL -
Update NomuPay Response into Database¶
com.nomupay.model.ResponseNomuBean res = service.updateTransaction(Connection conn, HttpServletRequest request)
- ResponseNomuBean
- orderId - String
- ResponseCode - String
- ResponseStatus - String
- ResponseMessage - String
- TransactionId - String
- Amount - String
- XRef - String
- ResponseUpdateTime - timestamp
- AuthCode - String
Updated by Soh Keong almost 3 years ago · 2 revisions