Using Webhooks

May 2, 2012 at 1:26 AM

Hello,

I am attempting to solve how to use ChargifyNET.WebhookHandler to process Webhook POST data.  I am using a generic handler page that Chargify posts to when a webhook needs to be sent (ChargifyHandler.ashx)...

Any ideas on how to get started using this method?  Is it even valid?  I assume it goes in this event on the generic handler page...

    public void ProcessRequest (HttpContext context)
    {

    }

Thanks, and if more explanation is needed, I will attempt to do so.

Jun 16, 2012 at 9:26 PM

Any ideas at all on this?  Does it have anything to do with using...

ChargifyHandler Handler = new ChargifyHandler();
Handler.ProcessRequest(context);

Thanks for any help.

Coordinator
Jul 11, 2012 at 2:01 PM

Hey,

Take a look at the following example: http://chargify.codeplex.com/SourceControl/changeset/view/76862#1329408

Just inherit from ChargifyNET.WebhookHandler and override the method OnChargifyUpdate(..)