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

    Modifier and Type
    Method
    Description
    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.
  • 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 appropriate PaymentGatewaySavedPaymentMethodWebhookHandler
      headers - the webhook request headers
      rawRequestBody - the webhook request body
      parameters - the webhook request parameters
      Returns:
      a ResponseEntity meant to communicate to the gateway with the processing result of the webhook.