Interface SavedPaymentMethodWebhookService
- All Known Implementing Classes:
DefaultSavedPaymentMethodWebhookService
public interface SavedPaymentMethodWebhookService
The service that is responsible to process the saved payment method webhooks. It uses
PaymentGatewaySavedPaymentMethodWebhookHandler to read the request and update the
appropriate SavedPaymentMethod.
This webhook service is used to update the saved payment method based on the event.
- Author:
- Dima Myroniuk (dmyroniuk)
-
Method Summary
-
Method Details
-
handleWebhook
org.springframework.http.ResponseEntity<?> handleWebhook(String gatewayType, org.springframework.http.HttpHeaders headers, String rawRequestBody, Map<String, String> parameters) Handles the saved payment method webhook request for the specified gateway type.- Parameters:
gatewayType- the gateway type that is used to identify the appropriatePaymentGatewaySavedPaymentMethodWebhookHandlerheaders- the webhook request headersrawRequestBody- the webhook request bodyparameters- the webhook request parameters- Returns:
- a
ResponseEntitymeant to communicate to the gateway with the processing result of the webhook.
-