{"id":14361139,"date":"2021-04-25T06:14:39","date_gmt":"2021-04-25T06:14:39","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/paypal-webhook-failures\/"},"modified":"2021-04-25T06:14:39","modified_gmt":"2021-04-25T06:14:39","slug":"paypal-webhook-failures","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/paypal-webhook-failures\/","title":{"rendered":"paypal webhook failures"},"content":{"rendered":"<p>Hi we are having a very strange issue.<\/p>\n<p>After weeks of troubleshooting mostly we have our GiveWP setup working and payments succeeding without much problems. There is however a persistent webhook failure reported in GiveWP logs.<\/p>\n<p>It seems even after completing payments, payments coming off account, marked as completed at GiveWP side there&#8217;s one last webhook which keeps failure.<\/p>\n<p>We managed to narrow it down to an access token issue, it seems PayPal is expecting an access token for this last attempt which it is not receiving.<\/p>\n<p>This problem happens regardless whether any caching is running or not, we&#8217;ve testing this with every single kind of cache completely disabled and clearer and it still persists.<\/p>\n<p>We&#8217;ve removed everything that we thought could have been interrupting the process of communication between givewp and paypal including security patches and plugins.<\/p>\n<p>Part of the webhook failure log contains the following<\/p>\n<pre><code>[body] =&gt; {&quot;error&quot;:&quot;invalid_token&quot;,&quot;error_description&quot;:&quot;Access Token not found in cache&quot;}\n    [response] =&gt; Array<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-14361139","topic","type-topic","status-publish","hentry","topic-tag-paypal","topic-tag-webhook"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14361139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14361139\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14361139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}