-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example of how to use webhooks with payload signing is missing #10
Comments
hi @franck102 , thank you for your question but I am not sure we understand what is the problem you are running into or trying to achieve with it. How the payload signing can be used is defined here https://github.com/wallee-payment/java-sdk?tab=readme-ov-file#integrating-webhook-payload-signing-mechanism-into-webhook-callback-handler |
Hi Thibault, The sample you mention explains how to extract and verify the signature when receiving an event. [EDIT]: I found WebhookListenerCreate.enablePayloadSignatureAndState(true) which does enable signatures & state, problem solved. |
So another issue, I have two problems after using this code to create my listener:
|
Despite searching through the entire documentation and SDK source code I cannot figure out how to enable payload signing for webhooks with the SDK?
There is a WebhookIdentity entity that we can configure on a webhook create request, but no API to create or retrieve it?
And the WebhookEncryptionService lets you retrieve a public key, but how do you create the key pair in the first place?
A complete example would be most useful...
The text was updated successfully, but these errors were encountered: