Project

General

Profile

Actions

Specification

Activity Diagram

Programming Guide

Jar version

version Description
1.0 Init

Jar File Download

Jar
Properties

  • mol.properties
  1. PP_USER_MALL - Provided by PayPal
  2. PP_PASSWORD_MALL - Provided by PayPal
  3. PP_SIGNATURE_MALL - Provided by PayPal
  4. PP_CHECKOUT_URL_MALL - Provided by PayPal
  5. PP_NVP_ENDPOINT_MALL - Provided by PayPal
  6. PP_ALLOW_STATUS_PENDING_MALL - Provided by PayPal
  7. API_VERSION - Provided by PayPal
  8. LOGO_IMG - Logo @payment page
  9. SOLUTIONTYPE - Sole (no need Paypal account) / Mark (Must have Paypal account)
  10. CONNECTION_TIMEOUT - Set connection timeout
  11. READ_TIMEOUT - Set connection read timeout

Database Table

CREATE TABLE PAYPAL_INTERFACE (
    ORDER_ID VARCHAR(15) NOT NULL, 
    TRX_TYPE VARCHAR(5),
    SHOPPER_REF_NO INTEGER,
    CHARGE_AMT DECIMAL(15,2), 
    CURRENCY_CODE VARCHAR(3),
    STATUS VARCHAR(2), 
    RESPONSE_CODE VARCHAR(20),
    RESPONSE_MESSAGE VARCHAR(100),
    IS_VALID CHARACTER NOT NULL, 
    PAY_DATE TIMESTAMP,
    CREATE_DATETIME TIMESTAMP NOT NULL,
    MODIFY_DATETIME TIMESTAMP, 
    PRIMARY KEY (ORDER_ID));

getUrl

com.ecosway.paypal.service.PaypalService service = new com.ecosway.paypal.service.PaypalServiceImpl();

String[] results = service.getUrl(Connection conn, com.ecosway.paypal.model.PaymentPaypal bean)
  1. String[] results
  • [0] - com.ecosway.paypal.common.CommonConstant.PAYPAL_ACK_SUCCESS | PAYPAL_ACK_SUCCESS_WITH_WARNING | PAYPAL_ACK_ERROR
  • [1] - Token
  1. conn - Database connection.
  2. bean - PaymentPaypal object.
  • company - String
  • orderID - String
  • amount - double
  • currencyCode - String
  • transactionType - String
  • shopperRefID - int
  • paymentType - String
  • returnUrl - String
  • cancelUrl - String
  • itemPaypalList - List<ItemPaypal>
  • * itemName - String
  • * description - String
  • * itemCode - String
  • * itemPrice - double
  • * quantity - int

updateTransaction

com.ecosway.paypal.model.ResponsePaypal resultBean = service.updateTransaction(Connection conn, HttpServletRequest request, String company)
  1. com.ecosway.paypal.model.ResponsePaypal
  • company - String
  • orderID - String
  • amount - double
  • currencyCode - String
  • transactionType - String
  • status - String
  • valid - boolean
  • responseCode - String
  • responseMessage - String
  • payDate - Date

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