• Resolved mpsegerson

    (@mpsegerson)


    Hi,

    Could you please advise with respect to the following email that I received from Stripe? I’ve been testing Stripe and PayPal in the Sandbox mode a lot over the last few days and all of a sudden I got this email from Stripe just today…

    “Hi there,We’ve had some trouble sending requests in test mode to a webhook endpoint associated with your www…….com account. Stripe sends webhook events to your server to notify you of activity in your Stripe account, such as a completed payout or a newly-created invoice.The URL of the failing webhook endpoint is: https://…………com/wp-json/wc-stripe/v1/webhook You (or someone on your team) configured your Stripe account to send events to that URL. You can change your account’s webhook endpoints from the Dashboard.In most cases, a failing webhook does not impact your payments or payouts. However:

    — If you use subscriptions we rely on your webhook endpoint to notify you of new invoices. These invoices may be delayed for up to three days if your endpoint is unable to successfully receive them.

    — If you use Checkout and rely on the checkout.session.completedevent as part of your purchase fulfillment process, you should review your completed payments to ensure you have fulfilled all recent purchases.

    We’ve attempted to send event notifications to this endpoint 19 times since the first failure on October 8, 2023 at 6:57:50 PM UTC. If this endpoint is important to your application, please try and fix the issue. If you do not need this webhook endpoint, you can remove it from your Stripe webhook settings. We will stop sending event notifications to this webhook endpoint by October 17, 2023 at 6:57:50 PM UTC.

    Here is the summary of errors we received while attempting to send webhook events:

    19 requests had other errors while sending the webhook event.

    You need to return any status code between HTTP 200 to 299 for Stripe to consider the webhook event successfully delivered.

    For more details on these errors and to review your account’s recent activity, you can find the full set of events and request logs on the Dashboard.

    For more in-depth information on how to use webhooks, we recommend reviewing our documentation.Yours,The Stripe team”

    How do I determine if this endpoint is “important to my application”?

    Thanks,

    • This topic was modified 2 years, 8 months ago by Jan Dembowski. Reason: Fixed formatting and removed all tracking URLs from the email copy
    • This topic was modified 2 years, 8 months ago by Jan Dembowski.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @mpsegerson

    You can go to stripe.com > developers > webhooks and see the exact reason for the failed webhook notifications. If you’re testing, then you likely updated the test mode API keys within the plugin which means a different account webhook secret is being used.

    Kind Regards

    Thread Starter mpsegerson

    (@mpsegerson)

    I don’t think I’m understanding completely. I did check the webhooks and it shows three identical webhooks… https://…………com/wp-json/wc-stripe/v1/webhook

    Two of them have 100% fail and this notice:

    {

    “code”: “webhook-error”,

    “message”: “Invalid signature received. Verify that your webhook secret is correct.”,

    “data”: {

    “status”: 401

    }}

    And one is 0% fail and has this notice:

    HTTP status code

    200 (OK)

    []

    Are you saying that everything is fine, and that those notifications are due to being in sandbox mode?

    Plugin Author Clayton R

    (@mrclayton)

    Two of them have 100% fail and this notice:

    You can delete those 2 webhooks. They’re failing because the webhook secret in the plugin settings does not pertain to those two webhooks.

    And one is 0% fail and has this notice:

    That’s the correct webhook. The webhook secret saved in the plugin settings matches with this webhook.

    Are you saying that everything is fine, and that those notifications are due to being in sandbox mode?

    You need to delete the 2 failing webhooks since they’re duplicates. Keep the webhook that has 0% failure rate.

    Kind Regards

    Thread Starter mpsegerson

    (@mpsegerson)

    I’ve gone ahead and done that as instructed. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Stripe webhook delivery issues’ is closed to new replies.