public interface CustomerPaymentGatewayService
The default implementation of this interface is represented in the core Broadleaf framework at
DefaultCustomerPaymentGatewayService
. This is designed as
a generic contract for allowing payment modules to tokenize payments and add it to a customer profile
represented in Broadleaf while still staying decoupled from any of the Broadleaf core framework concepts.
These service methods are usually invoked from the controller that listens to the endpoint hit by the external payment
provider (which should be a subclass of CustomerPaymentGatewayAbstractController
).
CustomerPaymentGatewayAbstractController}
Modifier and Type | Method and Description |
---|---|
Long |
createCustomerPaymentFromResponseDTO(PaymentResponseDTO responseDTO,
PaymentGatewayConfiguration config) |
void |
deleteCustomerPaymentFromResponseDTO(PaymentResponseDTO responseDTO,
PaymentGatewayConfiguration config) |
Long |
updateCustomerPaymentFromResponseDTO(PaymentResponseDTO responseDTO,
PaymentGatewayConfiguration config) |
Long createCustomerPaymentFromResponseDTO(PaymentResponseDTO responseDTO, PaymentGatewayConfiguration config) throws IllegalArgumentException
responseDTO
- the response from the gatewayconfig
- configuration values for the payment gatewayCustomerPayment
entity.IllegalArgumentException
Long updateCustomerPaymentFromResponseDTO(PaymentResponseDTO responseDTO, PaymentGatewayConfiguration config) throws IllegalArgumentException
responseDTO
- the response from the gatewayconfig
- configuration values for the payment gatewayCustomerPayment
entity.IllegalArgumentException
void deleteCustomerPaymentFromResponseDTO(PaymentResponseDTO responseDTO, PaymentGatewayConfiguration config) throws IllegalArgumentException
responseDTO
- the response from the gatewayconfig
- configuration values for the payment gatewayIllegalArgumentException
Copyright © 2022. All rights reserved.