Umbraco version 8.11.1
Vendr v1.8.1
Dont know where to find the Version of the Stripe payment provider
I get the following line in the log:
{"@t":"2021-09-27T09:18:43.8612156Z","@mt":"Stripe - GetWebhookStripeEvent","@l":"Error","@x":"System.NullReferenceException: Object reference not set to an instance of an object.\r\n at Stripe.EventUtility.ParseStripeSignature(String stripeSignatureHeader)\r\n
at Stripe.EventUtility.ValidateSignature(String json, String stripeSignatureHeader, String secret, Int64 tolerance, Int64 utcNow)\r\n at Stripe.EventUtility.ValidateSignature(String json, String stripeSignatureHeader, String secret, Int64 tolerance)\r\n
at Vendr.PaymentProviders.Stripe.StripePaymentProviderBase`1.GetWebhookStripeEvent(HttpRequestBase request, String webhookSigningSecret)","SourceContext":"Vendr.PaymentProviders.Stripe.StripePaymentProviderBase`1[[Vendr.PaymentProviders.Stripe.StripeCheckoutSettings, Vendr.PaymentProviders.Stripe, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null]]","ProcessId":27204,"ProcessName":"w3wp","ThreadId":29,"AppDomainId":2,"AppDomainAppId":"LMW3SVC4ROOT","MachineName":"VS246773","Log4NetLevel":"ERROR","HttpRequestNumber":4,"HttpRequestId":"d7677cc0-4471-459d-a63f-79ce12ea5624"}
In Webhook atempts the HTTP status code is:
400 (Bad Request)
stripe webhook URL Failed
Hi Matt,
in Stripe I have set up a webhook like so:
https://mydomain.com/umbraco/vendr/payment/callback/stripe-checkout/paymentMethodId
Unfotunately, in the list of webhook events in stripe backend, the status of the webhook events is "Failed".
Is there a way of testing to find out whether the URL provided above works?
Thanks. Edgar
If it's
failed
and not simply404
then I would believe that the URL is correct.It might be worth checking your Umbraco trace log to see if anything is being written to it related to the issue.
By default, the payment provider will return a bad request if it can't process the order for some reason.
I'd need to know what version of Umbraco, Vendr and the Stripe payment provider you are running to suggest more.
Matt
Thanks for your reply.
Umbraco version 8.11.1 Vendr v1.8.1 Dont know where to find the Version of the Stripe payment provider
I get the following line in the log:
In Webhook atempts the HTTP status code is: 400 (Bad Request)
Have you configured the test webhook secret in the provider settings?
You are absolutely right. It was my mistake. I had copied the Test Webhook Signing Secret into the Live Webhook Signing Secret key.
Now that I have changed it, everything works just fine!
Thank you so much!
Edgar
No problem at all.
Glad we got it working 👍
is working on a reply...