title: Stripe PHP Webhook Test TLS Error & 502 Error
body: <p>I am attempting to setup a webhook with the stripe-php library that will detect a "checkout.session.completed" event.  For some reason, I keep getting errors while testing the webhook on the Stripe site.</p>
  
  <p>My server is running Centos 7 and PHP 7.2.21.  I've literally tried to replace my webhook with code to just give a HTTP 200 status code and it still gives the error.  Also, I recently installed my SSL certificate on this server.</p>
  
  <pre><code>&lt;?php
  http_response_code(200);
  ?&gt;
  </code></pre>
  
  <p>The code above works perfectly fine in my browser when I access the link but for some reason still gives me this error on Stripe.</p>
  
  <p><a href="https://i.gyazo.com/f659d8fe4bfe53b84a592ec6009199a0.png" rel="nofollow noreferrer">https://i.gyazo.com/f659d8fe4bfe53b84a592ec6009199a0.png</a>
  ("TLS Failure")</p>
  
  <p>It will also give me this error periodically, without changing the code at all:</p>
  
  <p><a href="https://i.gyazo.com/eef09716e18d1e0de692c5a102076c1b.png" rel="nofollow noreferrer">https://i.gyazo.com/eef09716e18d1e0de692c5a102076c1b.png</a>
  ("502 Error")</p>
  
  <p>I've been trying to figure this out for the past 2 hours and haven't had any luck.</p>
  
  <p>Thanks,</p>
  
  <p>Jake</p>
  
  <p>Edit:  Thanks to Paul, I was able to boil my issue down to something wrong with my server.  Instead of using webhooks, I've decided to just poll for successful checkout events.</p>