Project

General

Profile

Actions

Specification » History » Revision 2

« Previous | Revision 2/3 (diff) | Next »
Soh Keong, 11/25/2020 03:50 PM


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
  2. * [0] - com.ecosway.paypal.common.CommonConstant.PAYPAL_ACK_SUCCESS | PAYPAL_ACK_SUCCESS_WITH_WARNING | PAYPAL_ACK_ERROR
  3. * [1] - Token
  1. conn - Database connection.
  2. bean - PaymentPaypal object.
  3. * company - String
  4. * orderID - String
  5. * amount - double
  6. * currencyCode - String
  7. * transactionType - String
  8. * shopperRefID - int
  9. * paymentType - String
  10. * returnUrl - String
  11. * cancelUrl - String
  12. * itemPaypalList - List<ItemPaypal>
  13. * * itemName - String
  14. * * description - String
  15. * * itemCode - String
  16. * * itemPrice - double
  17. * * quantity - int

updateTransaction

com.ecosway.paypal.model.ResponsePaypal resultBean = service.updateTransaction(Connection conn, HttpServletRequest request, String company)
  1. com.ecosway.paypal.model.ResponsePaypal
  2. * company - String
  3. * orderID - String
  4. * amount - double
  5. * currencyCode - String
  6. * transactionType - String
  7. * status - String
  8. * valid - boolean
  9. * responseCode - String
  10. * responseMessage - String
  11. * payDate - Date

Updated by Soh Keong about 4 years ago · 2 revisions