#Stone-Webhook
1 messages · Page 1 of 1 (latest)
yes
Can you share with me the complete error message and your code?
public String orderPayResultV2(HttpServletRequest request, String payload){
String sigHeader = request.getHeader("Stripe-Signature");
try {
event = Webhook.constructEvent(payload, sigHeader, STRIPE_WEBHOOK_SECRET);
} catch (SignatureVerificationException e) {
// Invalid signature
throw new MissingServletRequestParameterException("error","sig");
}
}
.support.DefaultHandlerExceptionResolver. logException 207 : Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required request parameter 'error' for method parameter type sig is not present]
OK. Please check if you passing the correct webhook secret. The secret you get from dashboard is different from the one generated in Stripe CLI
I am sure that STRIPE_WEBHOOK_SECRET is correctly my web secrect on test mode.
Did you get this webhook secret from dashboard directly?
The exact error is "No signatures found matching the expected signature for payload"
Sure
I never used Stripe CLI
Hello Jack.
What's the matter?
I think i am wrong.
I use like this we_1IuxmrIXF5VHSVPpVX0nLXXX
Hmm, how did you create the payload? are you using the example from https://stripe.com/docs/webhooks/quickstart ?
I correct that, use the key like whsec_xxxxx
OK, is your problem resolved?