Class ExternalTransactionResultEndpoint
java.lang.Object
com.broadleafcommerce.paymenttransaction.web.endpoint.ExternalTransactionResultEndpoint
@FrameworkRestController
@FrameworkMapping
@DataRouteByKey("paymentTransaction")
public class ExternalTransactionResultEndpoint
extends Object
- Author:
- Sgupta
-
Constructor Summary
ConstructorDescriptionExternalTransactionResultEndpoint
(ExternalTransactionResultService externalTransactionResultService, PaymentService<Payment> paymentService, PaymentTransactionService<PaymentTransaction> paymentTransactionService) -
Method Summary
Modifier and TypeMethodDescriptionprotected ExternalTransactionResultService
protected PaymentService<Payment>
protected PaymentSummaryService
protected PaymentTransactionService<PaymentTransaction>
handleExternalTransactionResult
(String gatewayType, Map<String, String> params, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) handleExternalTransactionResultHydrated
(String gatewayType, Map<String, String> params, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected TransactionExecutionResponse
hydrateOwningEntityPayments
(@NonNull TransactionExecutionResponse transactionExecutionResponse, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) lookupExternalTransactionResult
(String paymentId, String requestId, PaymentLockInfo paymentLockInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) lookupExternalTransactionResultHydrated
(String paymentId, String requestId, PaymentLockInfo paymentLockInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) void
setPaymentSummaryService
(PaymentSummaryService paymentSummaryService) validatePaymentCallbackToken
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, PaymentCallbackValidationRequest validationRequest, PaymentLockTokens paymentLockTokens)
-
Constructor Details
-
ExternalTransactionResultEndpoint
public ExternalTransactionResultEndpoint(ExternalTransactionResultService externalTransactionResultService, PaymentService<Payment> paymentService, PaymentTransactionService<PaymentTransaction> paymentTransactionService)
-
-
Method Details
-
validatePaymentCallbackToken
@FrameworkPostMapping("/validate-payment-callback-token") @Policy(permissionRoots="VALIDATION_FOR_PAYMENT_CALLBACK_TOKEN") public PaymentCallbackValidationResponse validatePaymentCallbackToken(@ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @RequestBody PaymentCallbackValidationRequest validationRequest, PaymentLockTokens paymentLockTokens) -
handleExternalTransactionResult
@FrameworkPostMapping(value="/handle-external-transaction-result/{gatewayType}", consumes="application/json") @Policy(permissionRoots={"EXTERNAL_TRANSACTION_RESULT","HYDRATED_EXTERNAL_TRANSACTION_RESULT"}) public TransactionExecutionResponse handleExternalTransactionResult(@PathVariable("gatewayType") String gatewayType, @RequestBody Map<String, String> params, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
handleExternalTransactionResultHydrated
@FrameworkPostMapping(value="/handle-external-transaction-result/{gatewayType}/hydrated", consumes="application/json") @Policy(permissionRoots="HYDRATED_EXTERNAL_TRANSACTION_RESULT") public TransactionExecutionResponse handleExternalTransactionResultHydrated(@PathVariable("gatewayType") String gatewayType, @RequestBody Map<String, String> params, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
lookupExternalTransactionResult
@FrameworkGetMapping("/lookup-external-transaction-result/{id}") @Policy(permissionRoots={"EXTERNAL_TRANSACTION_RESULT","HYDRATED_EXTERNAL_TRANSACTION_RESULT"}) public TransactionExecutionResponse lookupExternalTransactionResult(@PathVariable("id") String paymentId, @RequestParam("requestId") String requestId, PaymentLockInfo paymentLockInfo, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
lookupExternalTransactionResultHydrated
@FrameworkGetMapping("/lookup-external-transaction-result/{id}/hydrated") @Policy(permissionRoots="HYDRATED_EXTERNAL_TRANSACTION_RESULT") public TransactionExecutionResponse lookupExternalTransactionResultHydrated(@PathVariable("id") String paymentId, @RequestParam("requestId") String requestId, PaymentLockInfo paymentLockInfo, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
hydrateOwningEntityPayments
protected TransactionExecutionResponse hydrateOwningEntityPayments(@NonNull @NonNull TransactionExecutionResponse transactionExecutionResponse, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getExternalTransactionResultService
-
getPaymentService
-
getPaymentTransactionService
-
setPaymentSummaryService
-
getPaymentSummaryService
-