Support » Plugin: GiveWP - Donation Plugin and Fundraising Platform » PayPal API Generate Token 401 Unauthorized

  • Hello Support,

    On the site I have linked to Query Monitor is throwing a 401 Error. It is in relation to the PayPal API. From the start – PayPal is working on the site in 2 places – GiveWP Donations and WooCommerce PayPal Standard gateway. Both are working without issue.

    The GiveWP Plugin is the latest version 2.21.0. WordPress is version 6.0 and all plugins and the Theme are the latest versions.

    However the Query Monitor plugin is showing this (Click link to the Gyazo screenshot)

    The Details are
    Method: POST
    Status: 401 Unauthorized
    Stack Trace:


    GiveWP is configured to use PayPal Donations and this is a verified charity with PayPal.

    I cannot figure out why this is happening – so I thought I had better let you know.

    I can give you admin access to the site to take a look if you wish? If so please use the Contact Form on a3rev to send me an email and I’ll set that up for you.

    Thank you

    • This topic was modified 1 month, 3 weeks ago by Steve Truman.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Rick Alday


    Hi @a3rev,

    That error can usually be resolved by disconnecting and reconnecting PayPal. You need go to Donations > Settings > Payment Gateways > PayPal and clicking the “Disconnect” link in “PayPal Connection”.

    For a bit of context, in order to process payments over Paypal’s API, third parties (like GiveWP) have to store what’s called a “token” and send that token along with the payment information. The token verifies that the application is allowed to do transactions over the API. If Paypal is unable to verify the token it will throw that error message.

    If disconnecting and reconnecting PayPal does not fix the issue, I’d recommend reaching out to them. The form on our site at goes directly to them, to an email that they claim is staffed by folks familiar with the issues, who can help.

    GiveWP is very limited in how much we can do about failed token generation error because it isn’t happening in GiveWP, it is happening in Paypal.
    Paypal needs to look into what is happening. They need to see why their verification token isn’t being verified on their end.

    I wish I had better news or another way to help! But, in this case, Paypal needs to look at the verification token to resolve the issue.

    If you have any other questions, I’m happy to help. Have a great day!`

    Thread Starter Steve Truman


    Hey Rick @mrdaro

    Thanks very much for your informative reply. I disconnected and reconnected the Pay Pal account and hey presto – issue resolved.

    Rick I have another issue – but I’ll mark this one as resolved and open a new ticket.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.