Interface WebhooksService
- All Known Implementing Classes:
WebhooksServiceImpl
public interface WebhooksService
WebhooksService
-
Method Summary
Modifier and TypeMethodDescriptionValidate and register a webhook URL with payOS. payOS will test the webhook endpoint by sending a validation request to it.confirm(String webhookUrl, RequestOptions<ConfirmWebhookRequest> options) Validate and register a webhook URL with payOS. payOS will test the webhook endpoint by sending a validation request to it.confirm(ConfirmWebhookRequest webhookConfirmRequest) Validate and register a webhook URL with payOS. payOS will test the webhook endpoint by sending a validation request to it.confirm(ConfirmWebhookRequest webhookConfirmRequest, RequestOptions<ConfirmWebhookRequest> options) Validate and register a webhook URL with payOS. payOS will test the webhook endpoint by sending a validation request to it.Verify the webhook data sent from payOS.
-
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
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
ConfirmWebhookResponse confirm(ConfirmWebhookRequest webhookConfirmRequest, RequestOptions<ConfirmWebhookRequest> options) 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
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
Verify the webhook data sent from payOS.- Parameters:
webhook- The request body receive from payOS.- Returns:
- The verified webhook data.
-