Class ExternalTransactionResultEndpoint

java.lang.Object
com.broadleafcommerce.paymenttransaction.web.endpoint.ExternalTransactionResultEndpoint

@FrameworkRestController @FrameworkMapping @DataRouteByKey("paymentTransaction") public class ExternalTransactionResultEndpoint extends Object
Author:
Sgupta
  • Constructor Details

  • 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

      protected ExternalTransactionResultService getExternalTransactionResultService()
    • getPaymentService

      protected PaymentService<Payment> getPaymentService()
    • getPaymentTransactionService

      protected PaymentTransactionService<PaymentTransaction> getPaymentTransactionService()
    • setPaymentSummaryService

      @Autowired public void setPaymentSummaryService(PaymentSummaryService paymentSummaryService)
    • getPaymentSummaryService

      protected PaymentSummaryService getPaymentSummaryService()