@Service(value="blNullPaymentGatewayTransactionService") public class NullPaymentGatewayTransactionServiceImpl extends Object implements org.broadleafcommerce.common.payment.service.PaymentGatewayTransactionService, org.broadleafcommerce.common.payment.service.FailureCountExposable
PaymentGatewayTransactionService.
This handles the scenario where the implementation is PCI-Compliant and
the server directly handles the Credit Card PAN. If so, this service should make
a server to server call to charge the card against the configured gateway.
In order to use load this demo service, you will need to component scan
the package "com.mycompany.sample".
This should NOT be used in production, and is meant solely for demonstration
purposes only.| Modifier and Type | Field and Description |
|---|---|
protected Integer |
failureCount |
protected Boolean |
isUp |
| Constructor and Description |
|---|
NullPaymentGatewayTransactionServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.broadleafcommerce.common.payment.dto.PaymentResponseDTO |
authorize(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO) |
org.broadleafcommerce.common.payment.dto.PaymentResponseDTO |
authorizeAndCapture(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO) |
org.broadleafcommerce.common.payment.dto.PaymentResponseDTO |
capture(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO)
for the test implementation, and in order to test different failed response scenarios, check for the presence of a "desired outcome"
entry in the request's additional fields
|
void |
clearStatus() |
protected org.broadleafcommerce.common.payment.dto.PaymentResponseDTO |
commonCreditCardProcessing(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO,
org.broadleafcommerce.common.payment.PaymentTransactionType paymentTransactionType)
Does minimal Credit Card Validation (luhn check and expiration date is after today).
|
Integer |
getFailureReportingThreshold() |
org.broadleafcommerce.common.vendor.service.type.ServiceStatusType |
getServiceStatus() |
void |
incrementFailure()
arbitrarily set a failure threshold value of "3"
|
org.broadleafcommerce.common.payment.dto.PaymentResponseDTO |
refund(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO) |
org.broadleafcommerce.common.payment.dto.PaymentResponseDTO |
reverseAuthorize(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO) |
org.broadleafcommerce.common.payment.dto.PaymentResponseDTO |
voidPayment(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO) |
public NullPaymentGatewayTransactionServiceImpl()
public org.broadleafcommerce.common.payment.dto.PaymentResponseDTO authorize(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO)
throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
authorize in interface org.broadleafcommerce.common.payment.service.PaymentGatewayTransactionServiceorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionpublic org.broadleafcommerce.common.payment.dto.PaymentResponseDTO capture(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO)
throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
capture in interface org.broadleafcommerce.common.payment.service.PaymentGatewayTransactionServiceorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionpublic org.broadleafcommerce.common.payment.dto.PaymentResponseDTO authorizeAndCapture(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO)
throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
authorizeAndCapture in interface org.broadleafcommerce.common.payment.service.PaymentGatewayTransactionServiceorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionpublic org.broadleafcommerce.common.payment.dto.PaymentResponseDTO reverseAuthorize(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO)
throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
reverseAuthorize in interface org.broadleafcommerce.common.payment.service.PaymentGatewayTransactionServiceorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionpublic org.broadleafcommerce.common.payment.dto.PaymentResponseDTO refund(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO)
throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
refund in interface org.broadleafcommerce.common.payment.service.PaymentGatewayTransactionServiceorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionpublic org.broadleafcommerce.common.payment.dto.PaymentResponseDTO voidPayment(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO)
throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
voidPayment in interface org.broadleafcommerce.common.payment.service.PaymentGatewayTransactionServiceorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionprotected org.broadleafcommerce.common.payment.dto.PaymentResponseDTO commonCreditCardProcessing(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO,
org.broadleafcommerce.common.payment.PaymentTransactionType paymentTransactionType)
creditCardDTO - public void clearStatus()
clearStatus in interface org.broadleafcommerce.common.payment.service.FailureCountExposablepublic void incrementFailure()
incrementFailure in interface org.broadleafcommerce.common.payment.service.FailureCountExposablepublic org.broadleafcommerce.common.vendor.service.type.ServiceStatusType getServiceStatus()
getServiceStatus in interface org.broadleafcommerce.common.payment.service.FailureCountExposablepublic Integer getFailureReportingThreshold()
getFailureReportingThreshold in interface org.broadleafcommerce.common.payment.service.FailureCountExposableCopyright © 2020. All rights reserved.