Class TransactionWebhookEndpoint
java.lang.Object
com.broadleafcommerce.paymenttransaction.web.endpoint.TransactionWebhookEndpoint
@FrameworkRestController
@FrameworkMapping("/webhooks")
@DataRouteByKey("paymentTransaction")
public class TransactionWebhookEndpoint
extends Object
- Author:
- Dima Myroniuk (dmyroniuk)
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTransactionWebhookEndpoint
(TransactionWebhookService transactionWebhookService) -
Method Summary
Modifier and TypeMethodDescriptionprotected SavedPaymentMethodWebhookService
protected TransactionWebhookService
org.springframework.http.ResponseEntity<?>
handleSavedPaymentMethodWebhook
(String gatewayType, org.springframework.http.HttpHeaders headers, Map<String, String> parameters, jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<?>
handleWebhook
(String gatewayType, org.springframework.http.HttpHeaders headers, Map<String, String> parameters, jakarta.servlet.http.HttpServletRequest request) void
setSavedPaymentMethodWebhookService
(SavedPaymentMethodWebhookService savedPaymentMethodWebhookService)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
TransactionWebhookEndpoint
-
-
Method Details
-
handleWebhook
@FrameworkPostMapping("/{gatewayType}") public org.springframework.http.ResponseEntity<?> handleWebhook(@PathVariable("gatewayType") String gatewayType, @RequestHeader org.springframework.http.HttpHeaders headers, @RequestParam(required=false) Map<String, String> parameters, jakarta.servlet.http.HttpServletRequest request) -
handleSavedPaymentMethodWebhook
@FrameworkPostMapping("/saved-payment-method/{gatewayType}") public org.springframework.http.ResponseEntity<?> handleSavedPaymentMethodWebhook(@PathVariable("gatewayType") String gatewayType, @RequestHeader org.springframework.http.HttpHeaders headers, @RequestParam(required=false) Map<String, String> parameters, jakarta.servlet.http.HttpServletRequest request) -
getTransactionWebhookService
-
getSavedPaymentMethodWebhookService
-
setSavedPaymentMethodWebhookService
@Autowired(required=false) public void setSavedPaymentMethodWebhookService(@Nullable SavedPaymentMethodWebhookService savedPaymentMethodWebhookService)
-