Project

General

Profile

Actions

Specification

Activity Diagram

Programming Guide

Jar version

version Description
1.3 Init

Jar File Download

Jar
Properties

properties file

  • wire.properties
  1. merchant.id
  2. transaction.type
  3. payment.method
  4. cardholder
  5. payment.username
  6. payment.password
  7. payment.url
  8. payment.secret
  9. CONNECTION_TIMEOUT
  10. READ_TIMEOUT

Database Table

CREATE TABLE WIRE_INTERFACE (
    ORDER_ID VARCHAR(15) NOT NULL, 
    TRX_TYPE VARCHAR(5),
    SHOPPER_REF_NO INTEGER,
    CURRENCY VARCHAR(3),
    CHARGE_AMT DECIMAL(15,2), 
    STATUS VARCHAR(15),
    ERROR_CODE VARCHAR(20),
    ERROR_DESC VARCHAR(100),
    IS_VALID CHARACTER NOT NULL, 
    TRAN_ID VARCHAR(50),
    PAY_DATE TIMESTAMP,
    APP_CODE VARCHAR(10),
    CREATE_DATETIME TIMESTAMP NOT NULL,
    MODIFY_DATETIME TIMESTAMP, 
    PRIMARY KEY (ORDER_ID));

Wirecard Service

com.aces.wire.service.WireService service = new com.aces.wire.service.WireService();

getURL

String url = service.getURL(Connection conn, PaymentWire bean)
  1. conn - Database connection.
  2. payment - PaymentWire object.
  • orderId - Order ID.
  • amount - Transaction amount.
  • currency -
  • trxType -
  • shopperRefNo -
  • shopperName -
  • successURL -
  • failURL -
  • cancelURL -

updateTransaction

com.aces.wire.model.ResponseWire resultBean = service.updateTransaction(Connection conn, HttpServletRequest request)
  1. ResponseWire
  • status -
  • errorCode -
  • errorDesc -
  • orderId - Order ID.
  • amount - Transaction amount.
  • currency -
  • trxType -
  • appCode -
  • tranId -
  • payDate - Date
  • valid - boolean

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