@Service(value="blExternalCallPayPalExpressService") public class ExternalCallPayPalExpressServiceImpl extends org.broadleafcommerce.common.payment.service.AbstractExternalPaymentGatewayCall<PayPalRequest,PayPalResponse> implements ExternalCallPayPalExpressService
| Modifier and Type | Field and Description |
|---|---|
protected PayPalExpressConfiguration |
configuration |
protected PayPalRequestGenerator |
requestGenerator |
protected PayPalResponseGenerator |
responseGenerator |
| Constructor and Description |
|---|
ExternalCallPayPalExpressServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
PayPalPaymentRequest |
buildBasicRequest(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO,
PayPalTransactionType transactionType) |
PayPalResponse |
call(PayPalRequest paymentRequest) |
org.broadleafcommerce.common.payment.dto.PaymentResponseDTO |
commonAuthorizeOrSale(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO,
PayPalTransactionType transactionType,
String token,
String payerId) |
PayPalResponse |
communicateWithVendor(PayPalRequest paymentRequest) |
PayPalExpressConfiguration |
getConfiguration() |
Integer |
getFailureReportingThreshold() |
String |
getServerUrl() |
String |
getServiceName() |
void |
setCommonDetailsResponse(PayPalDetailsResponse response,
org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO) |
void |
setCommonPaymentResponse(PayPalPaymentResponse response,
org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO) |
void |
setDecisionInformation(PayPalPaymentResponse response,
org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO) |
void |
setRefundInformation(PayPalPaymentResponse response,
org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO) |
protected PayPalExpressConfiguration configuration
protected PayPalRequestGenerator requestGenerator
protected PayPalResponseGenerator responseGenerator
public ExternalCallPayPalExpressServiceImpl()
public PayPalExpressConfiguration getConfiguration()
getConfiguration in interface ExternalCallPayPalExpressServicepublic Integer getFailureReportingThreshold()
getFailureReportingThreshold in interface org.broadleafcommerce.common.payment.service.FailureCountExposablegetFailureReportingThreshold in class org.broadleafcommerce.common.payment.service.AbstractExternalPaymentGatewayCall<PayPalRequest,PayPalResponse>public PayPalResponse call(PayPalRequest paymentRequest) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
call in interface ExternalCallPayPalExpressServiceorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionpublic PayPalResponse communicateWithVendor(PayPalRequest paymentRequest) throws Exception
communicateWithVendor in class org.broadleafcommerce.common.payment.service.AbstractExternalPaymentGatewayCall<PayPalRequest,PayPalResponse>Exceptionpublic String getServerUrl()
public PayPalPaymentRequest buildBasicRequest(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO, PayPalTransactionType transactionType)
buildBasicRequest in interface ExternalCallPayPalExpressServicepublic org.broadleafcommerce.common.payment.dto.PaymentResponseDTO commonAuthorizeOrSale(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO,
PayPalTransactionType transactionType,
String token,
String payerId)
throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
commonAuthorizeOrSale in interface ExternalCallPayPalExpressServiceorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionpublic void setCommonPaymentResponse(PayPalPaymentResponse response, org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO)
setCommonPaymentResponse in interface ExternalCallPayPalExpressServicepublic void setCommonDetailsResponse(PayPalDetailsResponse response, org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO)
setCommonDetailsResponse in interface ExternalCallPayPalExpressServicepublic void setDecisionInformation(PayPalPaymentResponse response, org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO)
setDecisionInformation in interface ExternalCallPayPalExpressServicepublic void setRefundInformation(PayPalPaymentResponse response, org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO)
setRefundInformation in interface ExternalCallPayPalExpressServicepublic String getServiceName()
getServiceName in interface org.broadleafcommerce.common.vendor.service.monitor.ServiceStatusDetectable<PayPalRequest>Copyright © 2017. All rights reserved.