Class ExternalPaymentTransactionExecutionProvider
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.service.provider.external.AbstractExternalProvider
-
- com.broadleafcommerce.cartoperation.service.provider.external.payments.ExternalPaymentTransactionExecutionProvider
-
- All Implemented Interfaces:
PaymentTransactionExecutionProvider
public class ExternalPaymentTransactionExecutionProvider extends AbstractExternalProvider implements PaymentTransactionExecutionProvider
- Author:
- Chris Kittrell (ckittrell)
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_HEADER_PAYMENT_LOCK_TOKEN
static String
DEFAULT_HEADER_PAYMENT_VERSION
-
Constructor Summary
Constructors Constructor Description ExternalPaymentTransactionExecutionProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalPaymentProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionExecutionResponse
authorizeAndCapturePayment(@NonNull String paymentId, @NonNull Integer paymentVersion, @NonNull TransactionExecutionRequest request, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
TransactionExecutionResponse
authorizePayment(@NonNull String paymentId, @NonNull Integer paymentVersion, @NonNull TransactionExecutionRequest request, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
protected org.springframework.web.util.UriComponentsBuilder
getBaseUri()
Gets the base URI common to all requests this provider will make.protected String
getServiceClient()
-
Methods inherited from class com.broadleafcommerce.cartoperation.service.provider.external.AbstractExternalProvider
executeRequest, getHeaders, getObjectMapper, getTypeFactory, getWebClient, pageableToParams, uriVars
-
-
-
-
Field Detail
-
DEFAULT_HEADER_PAYMENT_VERSION
public static final String DEFAULT_HEADER_PAYMENT_VERSION
- See Also:
- Constant Field Values
-
DEFAULT_HEADER_PAYMENT_LOCK_TOKEN
public static final String DEFAULT_HEADER_PAYMENT_LOCK_TOKEN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExternalPaymentTransactionExecutionProvider
public ExternalPaymentTransactionExecutionProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalPaymentProperties properties)
-
-
Method Detail
-
authorizePayment
public TransactionExecutionResponse authorizePayment(@NonNull @NonNull String paymentId, @NonNull @NonNull Integer paymentVersion, @NonNull @NonNull TransactionExecutionRequest request, @Nullable String lockToken, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
- Specified by:
authorizePayment
in interfacePaymentTransactionExecutionProvider
-
authorizeAndCapturePayment
public TransactionExecutionResponse authorizeAndCapturePayment(@NonNull @NonNull String paymentId, @NonNull @NonNull Integer paymentVersion, @NonNull @NonNull TransactionExecutionRequest request, String lockToken, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
- Specified by:
authorizeAndCapturePayment
in interfacePaymentTransactionExecutionProvider
-
getBaseUri
protected org.springframework.web.util.UriComponentsBuilder getBaseUri()
Gets the base URI common to all requests this provider will make.- Returns:
- a URI components builder with the base URI set up
-
getServiceClient
protected String getServiceClient()
-
-