<p>Instant Payment Notification callbacks are POSTed in the form of JSON data.  The issue may be that you're attempting to iterate over regular http params that aren't there, instead of parsing the response body as JSON.  I've never used ASP.net before but this topic looks like it may help:</p>

<p><a href="https://stackoverflow.com/questions/3398926/how-to-retrieve-json-via-asp-net-context-request/3411775">https://stackoverflow.com/questions/3398926/how-to-retrieve-json-via-asp-net-context-request/3411775</a></p>

CC BY-SA 3.0
2013-10-22T23:40:37.977Z
Thanks for answer, Coinbase did contact me and confirm that the JSON data isn't being posted for test page, and they are working on a fix!
Tom Gullen
CC BY-SA 3.0
2013-10-21T23:25:42.837Z
2013-10-21T23:25:42.837Z
2017-05-23T12:34:59.703Z
cilphex
<p>On Coinbase under <code>Merchant Profile</code> I'm entering the URL:
<a href="https://www.scirra.com/handlers/coinbasecallback.ashx" rel="nofollow">https://www.scirra.com/handlers/coinbasecallback.ashx</a></p>

<p>For the IPN tester.  This <code>ashx</code> page has the code:</p>

<pre><code>var r = "";
foreach(string name in context.Request.Form)
{
    r +=(name + " = " + context.Request.Form[name] + "&lt;br&gt;&lt;br&gt;");
}
r += "&lt;br&gt;&lt;br&gt;" + context.Request.QueryString;
Amazon.Emailer.SendEmail("xxx@domain.com","xxx@domain.com","Callback Dat", r);
</code></pre>

<p>The email I receive contains absolutely no data, although the logs page on Coinbase implies it's posting JSON data and returning <code>HTTP 200 (success)</code>.</p>

<p>Am I doing something wrong?  Or is this a broken feature?  Can I (semi) safely assume that it posts the JSON in live mode?  And if so, do I simply <code>Request.Form[0]</code> to retrieve it or does it have a string index?</p>

<p>Thanks for any help!</p>

<payment><coinbase.com><c#><payment-processors>
Coinbase IPN test page not posting data?
Tom Gullen
# Coinbase IPN test page not posting data?

(Asked by: username_0 on 2013-10-17)

On Coinbase under `Merchant Profile` I'm entering the URL:
<https://www.scirra.com/handlers/coinbasecallback.ashx>

For the IPN tester. This `ashx` page has the code:

```
var r = "";
foreach(string name in context.Request.Form)
{
    r +=(name + " = " + context.Request.Form[name] + "<br><br>");
}
r += "<br><br>" + context.Request.QueryString;
Amazon.Emailer.SendEmail("xxx@domain.com","xxx@domain.com","Callback Dat", r);

```

The email I receive contains absolutely no data, although the logs page on Coinbase implies it's posting JSON data and returning `HTTP 200 (success)`.

Am I doing something wrong? Or is this a broken feature? Can I (semi) safely assume that it posts the JSON in live mode? And if so, do I simply `Request.Form[0]` to retrieve it or does it have a string index?

Thanks for any help!

**Tags:** payment, coinbase.com, c#, payment-processors


---

## 1 answers

### Answer by username_1 on 2013-10-21. Score: 1

Instant Payment Notification callbacks are POSTed in the form of JSON data. The issue may be that you're attempting to iterate over regular http params that aren't there, instead of parsing the response body as JSON. I've never used ASP.net before but this topic looks like it may help:

<https://stackoverflow.com/questions/3398926/how-to-retrieve-json-via-asp-net-context-request/3411775>

> **Comments:**
> **username_0**: Thanks for answer, Coinbase did contact me and confirm that the JSON data isn't being posted for test page, and they are working on a fix!  

---

