title: How do I process a response from a remote REST API (Paypal)?
body: <p>I'm trying to figure out the <a href="https://developer.paypal.com/webapps/developer/docs/api/#create-a-payment" rel="nofollow">Paypal REST API</a>.</p>
  
  <p>I have an action for the ReturnURL (<code>/payment/return</code>) and an action for the CancelUrl (<code>/payment/cancel</code>).</p>
  
  <p>When I generate the Payment: <code>Payment createdPayment = pymnt.Create(this.accessToken);</code></p>
  
  <p>I get the <code>approved_url</code> which I need to redirect for my user so he/she can make the actual Paypal Payment. When the user is done, Paypal sends back an approved Payment object (JSON).</p>
  
  <p>I am trying to get my hands on that JSON in the return action so it will bind to the Payment object.</p>
  
  <p>This does not work:</p>
  
  <pre><code>public ActionResult Return(Payment payment)
  {
      payerId = Request.Params["PayerID"];
      var paymentId = payment.id; // NullException
      var result = paypalService.ExecutePayment(paymentId, payerId);
      return this.View();
  }
  </code></pre>
  
  <p>How do I bind the response JSON?</p>