Class PayPalSyncTransactionServiceImpl
- All Implemented Interfaces:
PayPalSyncTransactionService
PaymentRequestDTO and calls the ReportingTransactions.get(Map, APIContext) to read all the
ReportingTransactionResponse and then filters the results by matching the TransactionInfo.getPaypal_reference_id()
and TransactionInfo.getCustom_field()
Note: in the PayPal payload, the TransactionInfo.getCustom_field() is used to capture and custom info that we want.
This class assumes that a BLC-produced transaction id is being sent to PayPal.- Author:
- venkat
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ReportingTransactionResponseexecuteTransactionSearch(com.paypal.base.rest.APIContext apiContext, Map<String, String> queryParamsMap) This calls theReportingTransactions.get(Map, APIContext)to fetch the reporting transactions of typeReportingTransactionslookupTransactionsByQueryParams(Map<String, String> queryFilter) This returns all the matching transactions wrapped in theReportingTransactionResponsebased on the @param queryFilter
-
Field Details
-
payPalCheckoutService
-
-
Constructor Details
-
PayPalSyncTransactionServiceImpl
public PayPalSyncTransactionServiceImpl()
-
-
Method Details
-
lookupTransactionsByQueryParams
public ReportingTransactionResponse lookupTransactionsByQueryParams(Map<String, String> queryFilter) throws com.paypal.base.rest.PayPalRESTExceptionDescription copied from interface:PayPalSyncTransactionServiceThis returns all the matching transactions wrapped in the
ReportingTransactionResponsebased on the @param queryFilterThe queryFilter mapping keys required are : start_date : Filters the transactions in the response by a start date and time. The date format required is, Internet date and time format. Seconds are required. Fractional seconds are optional. end_date : Filters the transactions in the response by a start date and time. The date format required is, Internet date and time format. Seconds are required. Fractional seconds are optional. transaction_amount : Filters the transactions in the response by a gross transaction amount range. Specify the range as <start-range> TO <end-range>.For example, to search for transactions from $5.00 to $10.05, specify [500 TO 1005]. page : Page number derives the page to be retrieved from the returned result set.
- Specified by:
lookupTransactionsByQueryParamsin interfacePayPalSyncTransactionService- Returns:
- Throws:
com.paypal.base.rest.PayPalRESTException
-
executeTransactionSearch
protected ReportingTransactionResponse executeTransactionSearch(com.paypal.base.rest.APIContext apiContext, Map<String, String> queryParamsMap) throws com.paypal.base.rest.PayPalRESTExceptionThis calls theReportingTransactions.get(Map, APIContext)to fetch the reporting transactions of typeReportingTransactions- Parameters:
apiContext-queryParamsMap-- Returns:
- Throws:
com.paypal.base.rest.PayPalRESTException
-