public class PayPalSyncTransactionServiceImpl extends Object implements 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.| Modifier and Type | Field and Description |
|---|---|
protected ExternalCallPayPalCheckoutService |
payPalCheckoutService |
| Constructor and Description |
|---|
PayPalSyncTransactionServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected ReportingTransactionResponse |
executeTransactionSearch(com.paypal.base.rest.APIContext apiContext,
Map<String,String> queryParamsMap)
This calls the
ReportingTransactions.get(Map, APIContext) to fetch the reporting transactions of type
ReportingTransactions |
ReportingTransactionResponse |
lookupTransactionsByQueryParams(Map<String,String> queryFilter)
This returns all the matching transactions wrapped in the
ReportingTransactionResponse based on the @param queryFilter |
protected ExternalCallPayPalCheckoutService payPalCheckoutService
public ReportingTransactionResponse lookupTransactionsByQueryParams(Map<String,String> queryFilter) throws com.paypal.base.rest.PayPalRESTException
PayPalSyncTransactionServiceThis 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
lookupTransactionsByQueryParams in interface PayPalSyncTransactionServicecom.paypal.base.rest.PayPalRESTExceptionprotected ReportingTransactionResponse executeTransactionSearch(com.paypal.base.rest.APIContext apiContext, Map<String,String> queryParamsMap) throws com.paypal.base.rest.PayPalRESTException
ReportingTransactions.get(Map, APIContext) to fetch the reporting transactions of type
ReportingTransactionsapiContext - queryParamsMap - com.paypal.base.rest.PayPalRESTExceptionCopyright © 2025. All rights reserved.