Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Edgar Rasquin 283 posts 802 karma points
    Sep 27, 2021 @ 09:28
    Edgar Rasquin
    0

    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

  • Matt Brailsford 3689 posts 19400 karma points MVP 9x c-trib
    Sep 27, 2021 @ 09:32
    Matt Brailsford
    0

    If it's failed and not simply 404 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

  • Edgar Rasquin 283 posts 802 karma points
    Sep 27, 2021 @ 09:56
    Edgar Rasquin
    0

    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:

    {"@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)

  • Matt Brailsford 3689 posts 19400 karma points MVP 9x c-trib
    Sep 27, 2021 @ 10:10
    Matt Brailsford
    100

    Have you configured the test webhook secret in the provider settings?

  • Edgar Rasquin 283 posts 802 karma points
    Sep 27, 2021 @ 10:36
    Edgar Rasquin
    0

    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

  • Matt Brailsford 3689 posts 19400 karma points MVP 9x c-trib
    Sep 27, 2021 @ 10:47
    Matt Brailsford
    0

    No problem at all.

    Glad we got it working 👍

Please Sign in or register to post replies

Write your reply to:

Draft