• Resolved ptahaua

    (@ptahaua)


    How can I fix this? I got a message from Stripe:

    We’re still having trouble sending requests in test mode to a webhook endpoint associated with your 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://{site-ur}/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.completed event as part of your purchase fulfillment process, you should review your completed payments to ensure you have fulfilled all recent purchases.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @ptahaua

    If your webhook is failing you should:

    1. Login to stripe.com > developers > webhooks.
    2. Click on the failing webhook and review the responses as they will have an error message describing the issue.

    What do the error messages say for the failed webhook requests? Your webhook secret is either incorrect or you have a 3rd party plugin installed that’s blocking access to the WordPress REST API.

    Kind Regards

    Thread Starter ptahaua

    (@ptahaua)


    {

    “code”: “rest_cannot_access”,

    “message”: “Only authenticated users can access the REST API.”,

    “data”: {

    “status”: 401

    }

    }

    • This reply was modified 2 years, 8 months ago by ptahaua.
    Plugin Author Clayton R

    (@mrclayton)

    Hi @ptahaua

    The error message is showing you have some plugin that’s blocking access to the WordPress REST API. You will need to find which plugin that is and make sure the Stripe plugin’s rest path /wc-stripe/v1 is added to the exclusion list.

    Kind Regards

    Thread Starter ptahaua

    (@ptahaua)

    Yeah, that was the problem. Thanks for your help!

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

The topic ‘Webhook Stripe error’ is closed to new replies.