title: PayPal WebHooks - Paypal-cert-url
body: <p>I'm having an issue with PayPal webhooks, i will receive all webhooks except for ones dealing with activating a purchase like <code>BILLING.SUBSCRIPTION.ACTIVATED</code></p>
  <p>i'm thinking it has something to do with my code here:</p>
  <pre><code>$signatureVerification = new VerifyWebhookSignature();
  $signatureVerification-&gt;setAuthAlgo($headers['PAYPAL-AUTH-ALGO']);
  $signatureVerification-&gt;setTransmissionId($headers['PAYPAL-TRANSMISSION-ID']);
  //$signatureVerification-&gt;setCertUrl($headers['PAYPAL-CERT-URL']);
  $signatureVerification-&gt;setWebhookId(&quot;###########&quot;); 
  $signatureVerification-&gt;setTransmissionSig($headers['PAYPAL-TRANSMISSION-SIG']);
  $signatureVerification-&gt;setTransmissionTime($headers['PAYPAL-TRANSMISSION-TIME']);
  </code></pre>
  <p>I'm sure it has to do with the cert-url being commented out, but when i uncomment it, it causes a 500 error, and i can't find anything to do with it, if i call paypal their tech support has &quot;no idea what a webhook is&quot; so i'm sitting here scratching my head figuring out how to get payment activation notices, i receive the ones about subscriptions being canceled, or suspended etc. but activation, re-activation etc don't come through.</p>
  <p>Edit: <a href="https://paypal.github.io/PayPal-PHP-SDK/sample/doc/notifications/ValidateWebhookEvent.html" rel="nofollow noreferrer">paypal webbhook documentation</a></p>
  <p>Edit 2: Webhook Event Detail</p>
  <pre><code>{
  &quot;id&quot;: &quot;##########&quot;,
  &quot;create_time&quot;: &quot;2021-07-16T17:09:06.604Z&quot;,
  &quot;resource_type&quot;: &quot;subscription&quot;,
  &quot;event_type&quot;: &quot;BILLING.SUBSCRIPTION.ACTIVATED&quot;,
  &quot;summary&quot;: &quot;Subscription activated&quot;,
  &quot;resource&quot;: {
      &quot;quantity&quot;: &quot;1&quot;,
      &quot;subscriber&quot;: {
          &quot;email_address&quot;: &quot;#####&quot;,
          &quot;payer_id&quot;: &quot;#####&quot;,
          &quot;name&quot;: {
              &quot;given_name&quot;: &quot;####&quot;,
              &quot;surname&quot;: &quot;###&quot;
          },
          &quot;shipping_address&quot;: {
              &quot;name&quot;: {
                  &quot;full_name&quot;: &quot;### ###&quot;
              },
              &quot;address&quot;: {
                  &quot;address_line_1&quot;: &quot;####&quot;,
                  &quot;admin_area_2&quot;: &quot;######&quot;,
                  &quot;admin_area_1&quot;: &quot;##&quot;,
                  &quot;postal_code&quot;: &quot;#####&quot;,
                  &quot;country_code&quot;: &quot;##&quot;
              }
          }
      },
      &quot;create_time&quot;: &quot;2021-07-16T15:46:02Z&quot;,
      &quot;plan_overridden&quot;: false,
      &quot;shipping_amount&quot;: {
          &quot;currency_code&quot;: &quot;USD&quot;,
          &quot;value&quot;: &quot;0.0&quot;
      },
      &quot;start_time&quot;: &quot;2021-07-16T15:45:34Z&quot;,
      &quot;update_time&quot;: &quot;2021-07-16T17:08:52Z&quot;,
      &quot;billing_info&quot;: {
          &quot;outstanding_balance&quot;: {
              &quot;currency_code&quot;: &quot;USD&quot;,
              &quot;value&quot;: &quot;0.0&quot;
          },
          &quot;cycle_executions&quot;: [
              {
                  &quot;tenure_type&quot;: &quot;REGULAR&quot;,
                  &quot;sequence&quot;: 1,
                  &quot;cycles_completed&quot;: 1,
                  &quot;cycles_remaining&quot;: 0,
                  &quot;current_pricing_scheme_version&quot;: 5,
                  &quot;total_cycles&quot;: 0
              }
          ],
          &quot;last_payment&quot;: {
              &quot;amount&quot;: {
                  &quot;currency_code&quot;: &quot;USD&quot;,
                  &quot;value&quot;: &quot;1.0&quot;
              },
              &quot;time&quot;: &quot;2021-07-16T15:46:03Z&quot;
          },
          &quot;next_billing_time&quot;: &quot;2021-08-16T10:00:00Z&quot;,
          &quot;failed_payments_count&quot;: 0
      },
      &quot;links&quot;: [
          {
              &quot;href&quot;: &quot;https://api.paypal.com/v1/billing/subscriptions/#####/cancel&quot;,
              &quot;rel&quot;: &quot;cancel&quot;,
              &quot;method&quot;: &quot;POST&quot;,
              &quot;encType&quot;: &quot;application/json&quot;
          },
          {
              &quot;href&quot;: &quot;https://api.paypal.com/v1/billing/subscriptions/#####&quot;,
              &quot;rel&quot;: &quot;edit&quot;,
              &quot;method&quot;: &quot;PATCH&quot;,
              &quot;encType&quot;: &quot;application/json&quot;
          },
          {
              &quot;href&quot;: &quot;https://api.paypal.com/v1/billing/subscriptions/######&quot;,
              &quot;rel&quot;: &quot;self&quot;,
              &quot;method&quot;: &quot;GET&quot;,
              &quot;encType&quot;: &quot;application/json&quot;
          },
          {
              &quot;href&quot;: &quot;https://api.paypal.com/v1/billing/subscriptions/#####/suspend&quot;,
              &quot;rel&quot;: &quot;suspend&quot;,
              &quot;method&quot;: &quot;POST&quot;,
              &quot;encType&quot;: &quot;application/json&quot;
          },
          {
              &quot;href&quot;: &quot;https://api.paypal.com/v1/billing/subscriptions/###/capture&quot;,
              &quot;rel&quot;: &quot;capture&quot;,
              &quot;method&quot;: &quot;POST&quot;,
              &quot;encType&quot;: &quot;application/json&quot;
          }
      ],
      &quot;id&quot;: &quot;#######&quot;,
      &quot;plan_id&quot;: &quot;#####&quot;,
      &quot;status&quot;: &quot;ACTIVE&quot;,
      &quot;status_update_time&quot;: &quot;2021-07-16T17:08:52Z&quot;
  },
  &quot;status&quot;: &quot;PENDING&quot;,
  &quot;transmissions&quot;: [
      {
          &quot;webhook_url&quot;: &quot;https://####.com/#####/agreementmade.php&quot;,
          &quot;http_status&quot;: 500,
          &quot;reason_phrase&quot;: &quot;HTTP/1.1 200 Connection established&quot;,
          &quot;response_headers&quot;: {
              &quot;Server&quot;: &quot;Apache&quot;,
              &quot;content-Security-Policy&quot;: &quot;upgrade-insecure-requests&quot;,
              &quot;Connection&quot;: &quot;Upgrade, close&quot;,
              &quot;Content-Length&quot;: &quot;0&quot;,
              &quot;Upgrade&quot;: &quot;h2,h2c&quot;,
              &quot;Date&quot;: &quot;Fri, 16 Jul 2021 18:37:56 GMT&quot;,
              &quot;Content-Type&quot;: &quot;text/html; charset=UTF-8&quot;
          },
          &quot;transmission_id&quot;: &quot;######&quot;,
          &quot;status&quot;: &quot;PENDING&quot;,
          &quot;timestamp&quot;: &quot;2021-07-16T18:20:34Z&quot;
      }
  ],
  &quot;links&quot;: [
      {
          &quot;href&quot;: &quot;https://api.paypal.com/v1/notifications/webhooks-events/WH-7XU19530D58819401-6WM79832N6059693G&quot;,
          &quot;rel&quot;: &quot;self&quot;,
          &quot;method&quot;: &quot;GET&quot;,
          &quot;encType&quot;: &quot;application/json&quot;
      },
      {
          &quot;href&quot;: &quot;https://api.paypal.com/v1/notifications/webhooks-events/WH-7XU19530D58819401-6WM79832N6059693G/resend&quot;,
          &quot;rel&quot;: &quot;resend&quot;,
          &quot;method&quot;: &quot;POST&quot;,
          &quot;encType&quot;: &quot;application/json&quot;
      }
  ],
  &quot;event_version&quot;: &quot;1.0&quot;,
  &quot;resource_version&quot;: &quot;2.0&quot;
   }
  </code></pre>
  <p>Edit 3: SSL Logs</p>
  <pre><code>173.0.81.65 - - [16/Jul/2021:13:21:29 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:21:42 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:22:05 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:22:37 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:22:48 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 200 - &quot;-&quot; &quot;PayPal/AUHD-214.0-55756836&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:23:15 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  114.119.132.34 - - [16/Jul/2021:13:23:35 -0500] &quot;GET /profile.php?id=868&amp;area=videos HTTP/1.1&quot; 406 226 &quot;-&quot; &quot;Mozilla/5.0 (Linux; Android 7.0;) AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; PetalBot;+https://webmaster.petalsearch.com/site/petalbot)&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:23:47 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:24:01 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:24:33 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:24:35 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:25:14 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:25:39 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:26:00 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:26:48 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:27:29 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:28:10 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:28:55 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:29:22 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  114.119.151.170 - - [16/Jul/2021:13:29:38 -0500] &quot;GET /blog.php?id=1163 HTTP/1.1&quot; 406 226 &quot;-&quot; &quot;Mozilla/5.0 (Linux; Android 7.0;) AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; PetalBot;+https://webmaster.petalsearch.com/site/petalbot)&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:30:10 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  173.0.81.65 - - [16/Jul/2021:13:31:14 -0500] &quot;POST /skivecare/agreementmade.php HTTP/1.1&quot; 500 - &quot;-&quot; &quot;PayPal/AUHR-214.0-55756836&quot; skivecore.com 192.185.36.129
  </code></pre>