Project

General

Profile

Actions

Specification

Programming Guide

Jar version

version Description
1.0 Init

Jar File Download

Jar
Properties
redirectPage

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
  1. merchant.id
  2. action - PREAUTH, VERIFY, SALE, REFUND, REFUND_SALE
  3. type - 1 (E-commerce (ECOM)); 2 (Mail Order/Telephone Order (MOTO)); 9 (Continuous Authority (CA))
  4. payment.url - Nomupay URL
  5. redirect.url - Aces URL
  6. merchant.country.code - Merchant’s location (ISO 3166-1 3-digit code)
  7. 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);
  1. conn - Database connection.
  2. payment - PaymentNomu object.
  • orderId -
  • amount -
  • currencyCode - Current support 840 only
  • trxType -
  • shopperRefNo -
  • redirectURL -
  • callbackURL -

Update NomuPay Response into Database

com.nomupay.model.ResponseNomuBean res = service.updateTransaction(Connection conn, HttpServletRequest request)
  1. 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 · 6 revisions