title: Setting up callback urls to receive information
body: <p>I am trying to figure out how to setup a callback url to receive payment status information from a payment gateway. </p>
  
  <p>Here's a summary of the whole setup. There is a backend (API endpoints)built with Laravel 5.8 that will be consumed by a react app and a mobile app. Both apps will be using the payment gateway's web and mobile sdks to initiate payment transactions.</p>
  
  <p>Then the payment gateway should respond with a payment status by calling the callback api I need to set up. </p>
  
  <p>This is my first attempt at doing something like this so pardon me if I am way off but here's what I have written</p>
  
  <p>Callback endpoint</p>
  
  <pre><code>Route::post('order/payment/status', 'PaymentController@getStatus'); // receives payment status
  </code></pre>
  
  <p>PaymentController <code>getstatus()</code> method</p>
  
  <pre><code>public function getStatus(Request $request)
      {
          $paymentMethod          = $request-&gt;paymentMethod;
          $amount                 = $request-&gt;amount;
          $providerCode           = $request-&gt;provider;
          $customerName           = $request-&gt;customerName;
          $customerEmail          = $request-&gt;customerEmail;
          $paymentDescription     = $request-&gt;paymentDescription;
          $paymentStatus          = $request-&gt;paaymentStatus;
          $transactionReference   = $request-&gt;transactionReference;
  
          // update my record based on the paymentStatus
      }
  </code></pre>
  
  <p>Is this the proper way to do it? I feel like it should be a <code>get</code> request and not a <code>post</code>. Please help.</p>