Actions
- Table of contents
- Specification
- Activity Diagram
- Programming Guide
Specification¶
Activity Diagram
¶
Programming Guide¶
Jar version¶
version | Description |
---|---|
1.0 | Init |
Jar File Download¶
- mol.properties
- PP_USER_MALL - Provided by PayPal
- PP_PASSWORD_MALL - Provided by PayPal
- PP_SIGNATURE_MALL - Provided by PayPal
- PP_CHECKOUT_URL_MALL - Provided by PayPal
- PP_NVP_ENDPOINT_MALL - Provided by PayPal
- PP_ALLOW_STATUS_PENDING_MALL - Provided by PayPal
- API_VERSION - Provided by PayPal
- LOGO_IMG - Logo @payment page
- SOLUTIONTYPE - Sole (no need Paypal account) / Mark (Must have Paypal account)
- CONNECTION_TIMEOUT - Set connection timeout
- 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)
- String[] results
- [0] - com.ecosway.paypal.common.CommonConstant.PAYPAL_ACK_SUCCESS | PAYPAL_ACK_SUCCESS_WITH_WARNING | PAYPAL_ACK_ERROR
- [1] - Token
- conn - Database connection.
- 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)
- 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