Package vn.payos.service.async.webhook
Class WebhooksServiceImpl
- All Implemented Interfaces:
WebhooksService
WebhooksServiceImpl
-
Field Summary
Fields inherited from class vn.payos.core.APIService
client -
Constructor Summary
Constructors -
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.
-
Constructor Details
-
WebhooksServiceImpl
WebhooksServiceImpl- Parameters:
client- client
-
-
Method Details
-
confirm
public CompletableFuture<ConfirmWebhookResponse> confirm(ConfirmWebhookRequest webhookConfirmRequest, RequestOptions<ConfirmWebhookRequest> options) Description copied from interface:WebhooksServiceValidate 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.- Specified by:
confirmin interfaceWebhooksService- Parameters:
webhookConfirmRequest- Object containing your webhook URL endpoint that will receive payment notifications.options- Additional options.- Returns:
- Confirm result.
-
confirm
public CompletableFuture<ConfirmWebhookResponse> confirm(ConfirmWebhookRequest webhookConfirmRequest) Description copied from interface:WebhooksServiceValidate 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.- Specified by:
confirmin interfaceWebhooksService- Parameters:
webhookConfirmRequest- Object containing your webhook URL endpoint that will receive payment notifications.- Returns:
- Confirm result.
-
confirm
public CompletableFuture<ConfirmWebhookResponse> confirm(String webhookUrl, RequestOptions<ConfirmWebhookRequest> options) Description copied from interface:WebhooksServiceValidate 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.- Specified by:
confirmin interfaceWebhooksService- Parameters:
webhookUrl- Your webhook URL endpoint that will receive payment notifications.options- Additional options.- Returns:
- Confirm result.
-
confirm
Description copied from interface:WebhooksServiceValidate 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.- Specified by:
confirmin interfaceWebhooksService- Parameters:
webhookUrl- Your webhook URL endpoint that will receive payment notifications.- Returns:
- Confirm result.
-
verify
Description copied from interface:WebhooksServiceVerify the webhook data sent from payOS.- Specified by:
verifyin interfaceWebhooksService- Parameters:
webhook- The request body receive from payOS.- Returns:
- The verified webhook data.
-