JSON Webhooks
Hello,
This is my first venture into webhooks. I am trying to read a response from ChargeOver and insert it into a database. For now, I am just dumping it to a txt file to see what it looks like. My current code is:
<cfset HTTPRequestData = deserializeJSON(ToString(getHTTPRequestData().content))>
<cfdump var="#form#" output="C:/webhook.txt">
The webhook is posting something like this:
{
"context_str": "package",
"context_id": "556",
"event": "status",
"data": {
"package": {
"terms_id": 2,
"currency_id": 1,
"external_key": null,
"token": "ozevrx738b02",
"nickname": "",
"paymethod": "inv",
"paycycle": "yrl",
"bill_addr1": null,
"bill_addr2": null,
...etc
My webhook.txt file shows over and over:
struct [empty]
************************************************************************************
What am I missing?
Thanks in advance!
Gary
