Interface WebhooksService

All Known Implementing Classes:
WebhooksServiceImpl

public interface WebhooksService
WebhooksService
  • Method Details

    • confirm

      Validate and register a webhook URL with payOS. payOS will test the webhook endpoint by sending a validation request to it. If the webhook responds correctly, it will be registered for payment notifications.
      Parameters:
      webhookUrl - Your webhook URL endpoint that will receive payment notifications.
      options - Additional options.
      Returns:
      Confirm webhook result.
    • confirm

      ConfirmWebhookResponse confirm(String webhookUrl)
      Validate and register a webhook URL with payOS. payOS will test the webhook endpoint by sending a validation request to it. If the webhook responds correctly, it will be registered for payment notifications.
      Parameters:
      webhookUrl - Your webhook URL endpoint that will receive payment notifications.
      Returns:
      Confirm webhook result.
    • confirm

      Validate and register a webhook URL with payOS. payOS will test the webhook endpoint by sending a validation request to it. If the webhook responds correctly, it will be registered for payment notifications.
      Parameters:
      webhookConfirmRequest - Object containing your webhook URL endpoint that will receive payment notifications.
      options - Additional options.
      Returns:
      Confirm webhook result.
    • confirm

      ConfirmWebhookResponse confirm(ConfirmWebhookRequest webhookConfirmRequest)
      Validate and register a webhook URL with payOS. payOS will test the webhook endpoint by sending a validation request to it. If the webhook responds correctly, it will be registered for payment notifications.
      Parameters:
      webhookConfirmRequest - Object containing your webhook URL endpoint that will receive payment notifications.
      Returns:
      Confirm webhook result.
    • verify

      WebhookData verify(Object webhook)
      Verify the webhook data sent from payOS.
      Parameters:
      webhook - The request body receive from payOS.
      Returns:
      The verified webhook data.