title: How to get response from IPN cryptocurrencies
body: <p>We're trying to receive payment with cryptocurrencies using coinpayment IPN. We are able to create a request and able to do a payment. However, not able to get success or failure response while user come back to the seller side.</p>
  
  <p>Here is how payment request created:</p>
  
  <pre><code>public ActionResult IPN()
  {                        
  
      var uri = new UriBuilder("https://www.coinpayments.net/index.php");
      uri.SetQueryParam("cmd", "_pay_auto"); 
      uri.SetQueryParam("merchant", "merchant_key");
      uri.SetQueryParam("allow_extra", "0");
      uri.SetQueryParam("currency", "USD"); 
      uri.SetQueryParam("reset", "1");
      uri.SetQueryParam("success_url", "http://localhost:49725/home/SuccessResponse"); //todo: redirect to confirm success page
      uri.SetQueryParam("key", "wc_order_5b7b84b91a882");
      uri.SetQueryParam("cancel_url", "http://localhost:49725/home/FailiureResponse");
      uri.SetQueryParam("order_id", "36");
      uri.SetQueryParam("invoice", "PREFIX-36");
      uri.SetQueryParam("ipn_url", "http://localhost:49725/?wc-api=WC_Gateway_Coinpayments");
      uri.SetQueryParam("first_name", "John");
      uri.SetQueryParam("last_name", "Smith");
      uri.SetQueryParam("email", "a@a.com");
      uri.SetQueryParam("want_shipping", "1");
      uri.SetQueryParam("address1", "228 Park Ave S&amp;address2");
      uri.SetQueryParam("city", "New York");
      uri.SetQueryParam("state", "NY");
      uri.SetQueryParam("zip", "10003-1502");
      uri.SetQueryParam("country", "US");
      uri.SetQueryParam("item_name", "Order 33");
      uri.SetQueryParam("quantity", "1");
      uri.SetQueryParam("amountf", "100.00000000");
      uri.SetQueryParam("shippingf", "0.00000000");            
  
      return Redirect(uri.ToString());
  } 
  </code></pre>
  
  <p>This will be redirected to the coinpayment site, once payment done, it is showing the following screen.</p>
  
  <p><a href="https://i.stack.imgur.com/fuxa9.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/fuxa9.jpg" alt="enter image description here"></a></p>
  
  <p>And trying to get data when user click on back to seller's site, I have tried to get data using <code>Request.Form</code>, but not getting any value in form.</p>
  
  <p>The same thing, working with <a href="https://pastebin.com/R7DPytqk" rel="noreferrer">this woocommerce code</a>, but I have no idea of PHP and how they are dealing with it.</p>
  
  <p>Any thought to get IPN response? </p>
  
  <p>Note: there is no development documentation or sample code available for IPN in .NET </p>
  
  <p><strong>Edit</strong>
  I'm trying to get value from IPN success </p>
  
  <pre><code>Public ActionResult SuccessResponse()
  {
      var ipn_version = Request.Form["ipn_version"];
      var ipn_id = Request.Form["ipn_id"];
      var ipn_mode = Request.Form["ipn_mode"];
      var merchant = Request.Form["merchant"];
      var txn_id = Request.Form["txn_id"];
      var status = Request.Form["status"];
  
      return Content(status);
  }
  </code></pre>