Project

General

Profile

Actions

Specification

Activity Diagram

Programming Guide

Jar version

version Description
1.3 Init

Jar File Download

Jar
Properties
jsp

properties file

  • bbl2.properties.properties
  1. payment.url
  2. currency.code
  3. merchant.id

Database Table

CREATE TABLE BBL_INTERFACE (
    ORDER_ID VARCHAR(15) NOT NULL, 
    TRX_TYPE VARCHAR(5),
    SHOPPER_REF_NO INTEGER,
    CHARGE_AMT DECIMAL(15,2), 
    STATUS VARCHAR(2),
    ERROR_CODE VARCHAR(3),
    ERROR_DESC VARCHAR(60),    
    IPAY_REF VARCHAR(12), 
    APPROVAL_CODE VARCHAR(6),     
    IS_VALID CHARACTER NOT NULL, 
    PAY_DATE TIMESTAMP,
    CREATE_DATETIME TIMESTAMP NOT NULL,
    MODIFY_DATETIME TIMESTAMP, 
    PRIMARY KEY (ORDER_ID))
com.ecosway.bbl.service.BBLService service = new com.ecosway.bbl.service.impl.BBLServiceImpl();

getURL

String URL = service.getURL2(Connection conn, PaymentBBL payment);
  1. conn - Database connection.
  2. payment - PaymentBBL object.
  • orderID
  • amount
  • remark
  • transactionType
  • shopperRefID
  • urlCancel
  • urlFail
  • urlSuccess
  • language - T:Thai ; E:English

Update BBL Response into Database

com.ecosway.bbl.service.ResponseBBL res = service.updateTransaction(Connection conn, HttpServletRequest request)
  1. ResponseBBL
  • orderID
  • amount
  • transactionType
  • responseCode
  • responseMsg
  • payDate
  • status
  • iPayRef
  • approvalCode

Updated by Soh Keong almost 4 years ago ยท 3 revisions