Class SamplePaymentGatewayTransparentRedirectServiceImpl
java.lang.Object
org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService
org.broadleafcommerce.payment.service.gateway.SamplePaymentGatewayTransparentRedirectServiceImpl
- All Implemented Interfaces:
org.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService
@Service("blSamplePaymentGatewayTransparentRedirectService")
public class SamplePaymentGatewayTransparentRedirectServiceImpl
extends org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService
This is an example implementation of a
PaymentGatewayTransparentRedirectService.
This is just a sample that mimics what hidden fields a real payment gateway implementation
might put on your transparent redirect credit card form on your checkout page.
Replace with a real Payment Gateway Integration like Braintree or PayPal PayFlow.
In order to use load this demo service, you will need to component scan
the package "com.broadleafcommerce".
This should NOT be used in production, and is meant solely for demonstration
purposes only.- Author:
- Elbert Bautista (elbertbautista)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.common.payment.dto.PaymentResponseDTOcreateAuthorizeAndCaptureForm(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO) org.broadleafcommerce.common.payment.dto.PaymentResponseDTOcreateAuthorizeForm(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO) protected org.broadleafcommerce.common.payment.dto.PaymentResponseDTOcreateCommonTRFields(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO) org.broadleafcommerce.common.payment.dto.PaymentResponseDTOcreateCustomerPaymentTokenForm(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO) getCreateCustomerPaymentTokenCancelURLFieldKey(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO) getCreateCustomerPaymentTokenReturnURLFieldKey(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO) getUpdateCustomerPaymentTokenCancelURLFieldKey(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO) getUpdateCustomerPaymentTokenReturnURLFieldKey(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO) org.broadleafcommerce.common.payment.dto.PaymentResponseDTOupdateCustomerPaymentTokenForm(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO)
-
Field Details
-
configuration
-
-
Constructor Details
-
SamplePaymentGatewayTransparentRedirectServiceImpl
public SamplePaymentGatewayTransparentRedirectServiceImpl()
-
-
Method Details
-
getCreateCustomerPaymentTokenReturnURLFieldKey
public String getCreateCustomerPaymentTokenReturnURLFieldKey(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO) - Specified by:
getCreateCustomerPaymentTokenReturnURLFieldKeyin interfaceorg.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService- Overrides:
getCreateCustomerPaymentTokenReturnURLFieldKeyin classorg.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService
-
getCreateCustomerPaymentTokenCancelURLFieldKey
public String getCreateCustomerPaymentTokenCancelURLFieldKey(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO) - Specified by:
getCreateCustomerPaymentTokenCancelURLFieldKeyin interfaceorg.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService- Overrides:
getCreateCustomerPaymentTokenCancelURLFieldKeyin classorg.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService
-
getUpdateCustomerPaymentTokenReturnURLFieldKey
public String getUpdateCustomerPaymentTokenReturnURLFieldKey(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO) - Specified by:
getUpdateCustomerPaymentTokenReturnURLFieldKeyin interfaceorg.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService- Overrides:
getUpdateCustomerPaymentTokenReturnURLFieldKeyin classorg.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService
-
getUpdateCustomerPaymentTokenCancelURLFieldKey
public String getUpdateCustomerPaymentTokenCancelURLFieldKey(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO) - Specified by:
getUpdateCustomerPaymentTokenCancelURLFieldKeyin interfaceorg.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService- Overrides:
getUpdateCustomerPaymentTokenCancelURLFieldKeyin classorg.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService
-
createAuthorizeForm
public org.broadleafcommerce.common.payment.dto.PaymentResponseDTO createAuthorizeForm(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException - Specified by:
createAuthorizeFormin interfaceorg.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService- Overrides:
createAuthorizeFormin classorg.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
createAuthorizeAndCaptureForm
public org.broadleafcommerce.common.payment.dto.PaymentResponseDTO createAuthorizeAndCaptureForm(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException - Specified by:
createAuthorizeAndCaptureFormin interfaceorg.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService- Overrides:
createAuthorizeAndCaptureFormin classorg.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
createCustomerPaymentTokenForm
public org.broadleafcommerce.common.payment.dto.PaymentResponseDTO createCustomerPaymentTokenForm(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException - Specified by:
createCustomerPaymentTokenFormin interfaceorg.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService- Overrides:
createCustomerPaymentTokenFormin classorg.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
updateCustomerPaymentTokenForm
public org.broadleafcommerce.common.payment.dto.PaymentResponseDTO updateCustomerPaymentTokenForm(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException - Specified by:
updateCustomerPaymentTokenFormin interfaceorg.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService- Overrides:
updateCustomerPaymentTokenFormin classorg.broadleafcommerce.common.payment.service.AbstractPaymentGatewayTransparentRedirectService- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
createCommonTRFields
protected org.broadleafcommerce.common.payment.dto.PaymentResponseDTO createCommonTRFields(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO)
-