Class PayPalSyncTransactionServiceImpl

java.lang.Object
org.broadleafcommerce.payment.service.gateway.PayPalSyncTransactionServiceImpl
All Implemented Interfaces:
PayPalSyncTransactionService

public class PayPalSyncTransactionServiceImpl extends Object implements PayPalSyncTransactionService
This takes the 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 Details

  • Constructor Details

    • PayPalSyncTransactionServiceImpl

      public PayPalSyncTransactionServiceImpl()
  • Method Details

    • lookupTransactionsByQueryParams

      public ReportingTransactionResponse lookupTransactionsByQueryParams(Map<String,String> queryFilter) throws com.paypal.base.rest.PayPalRESTException
      Description copied from interface: PayPalSyncTransactionService

      This returns all the matching transactions wrapped in the ReportingTransactionResponse based on the @param queryFilter

      The 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:
      lookupTransactionsByQueryParams in interface PayPalSyncTransactionService
      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.PayPalRESTException
      This calls the ReportingTransactions.get(Map, APIContext) to fetch the reporting transactions of type ReportingTransactions
      Parameters:
      apiContext -
      queryParamsMap -
      Returns:
      Throws:
      com.paypal.base.rest.PayPalRESTException