Project

General

Profile

Actions

Specification » History » Revision 3

« Previous | Revision 3/11 (diff) | Next »
Soh Keong, 05/25/2022 09:54 AM


Specification

Activity Diagram

Programming Guide

Jar version

version Description
1.0 Init

Jar File Download

Jar
Properties

Classes

  • com.atome.common - CommonConstant, CommonProperties
  • com.atome.dao - AtomeInterface
  • com.atome.model - AtomeCommonBean, AtomeRequestBean, AtomeResponseBean, CustomerInfoBean, PaymentTransaction, ProductBean, ShippingAddressBean
  • com.atome.service - AtomeService
  • com.atome.util - HttpManager

properties file

  • atome.properties
  1. payment.url -
  2. api.key.[myr] - [myr] for Malaysia; [sgd] for Singapore etc.
  3. api.secret.[myr] - [myr] for Malaysia; [sgd] for Singapore etc.
  4. connection.connect.timeout -
  5. connection.read.timeout -
  6. data.default.mobile -
  7. data.default.country -
  8. data.default.address -
  9. data.default.postcode -
  10. data.default.prodId -
  11. data.default.prodName -
  12. data.default.expiryTime -

Database Table

CREATE TABLE ATOME_INTERFACE (
    ORDER_ID VARCHAR(15) NOT NULL, 
    TRX_TYPE VARCHAR(5),
    SHOPPER_REF_NO INTEGER,
    CURRENCY VARCHAR(3),
    CHARGE_AMT DECIMAL(15,2), 
    ATOME_ID VARCHAR(15), 
    TRAN_ID VARCHAR(20), 
    STATUS VARCHAR(2), 
    IS_VALID CHARACTER DEFAULT 'N', 
    PAY_DATE TIMESTAMP,
    CREATE_DATETIME TIMESTAMP DEFAULT CURRENT TIMESTAMP,
    MODIFY_DATETIME TIMESTAMP, 
    PRIMARY KEY (ORDER_ID));

Atome Service

com.atome.service.AtomeService service = new com.atome.service.AtomeService();

getURL

String URL = service.getURL(Connection conn, AtomeRequestBean payment);
  1. conn - Database connection.
  2. payment - AtomeRequestBean object.
  • orderId - Order ID.
  • amount - Transaction amount.
  • currency - com.atome.common.CommonConstant.CURRENCY_*
  • shopperRefNo -
  • callbackUrl - Backend response.
  • paymentResultUrl -
  • paymentCancelUrl -
  • expirationTimeInSeconds - int
  • customerInfo - object CustomerInfoBean
  • mobileNumber -
  • shippingAddress - object ShippingAddressBean
  • countryCode - com.atome.common.CommonConstant.ADDRESS_COUNTRY_*
  • lines - Address line
  • postcode -
  • productList - Array
  • productId -
  • productName -
  • quantity - int
  • price - double

Update transaction

AtomeResponseBean responseBean = service.updateTransaction(Connection conn, HttpServletRequest request);
  1. responseBean
  • orderId -
  • trxType -
  • status -
  • valid -
  • httpCode -
  • httpMessage -

Updated by Soh Keong over 2 years ago · 3 revisions