title: How do you process a paypal webhook event in PHP with Laravel?
body: <p>I'm trying to integrate Paypal functionality into my site. I have installed the SDK and I'm able to make calls to the Paypal API.</p>
  
  <p>My main task is to create invoices and then update the database when the customer pays the invoice. I'm able to create invoices properly, they show up under my sandbox notifications. I've also setup a sandbox webhook in my REST API app on Paypal, with a url provided. However, when I try to use the webhook simulator to generate an event (Invoice Paid), it doesn't seem that the function I've assigned to handle the post request is triggering.</p>
  
  <p>So to review my issue...</p>
  
  <ul>
  <li><p>A sandbox webhook is setup on Paypal for url <a href="https://www.example.com/webhook_test" rel="noreferrer">https://www.example.com/webhook_test</a>.</p></li>
  <li><p>In my routes file, I have the following code to handle post requests.</p></li>
  </ul>
  
  <p>Route::post('/webhook_test', 'WebhookController@InvoicePaid');</p>
  
  <ul>
  <li><p>The InvoicePaid function is simply updating a table.</p></li>
  <li><p>I try to use the webhook simulator on Paypal to simulate an "Invoice Paid" event to the url I've identified above, but when I check my table, nothing seems to have been updated.</p></li>
  </ul>
  
  <p>Is there a step I'm missing in the overall setup? Any help would be appreciated!</p>