In the read me it states that you can see the recurly.api.php file for more information on that hook. Where is this file? I have looked through the module folder and the library folder and could not find it. Is this actually supposed to reference the recurly api documentation site?

I have also browsed the module file and did find some documentation for the recurly_process_push_notification function. I tried setting up my own hook in a custom module but cant seem to get it to fire at all. Every thing else works fine. Drupal accounts sync up with my recurly sandbox and I can cancel and renew with out any problems. I am sure this is an issue with my function. Can anyone offer a simple example of this hook? Perhaps just showing how to get the $notification object ?

CommentFileSizeAuthor
#3 recurly_api_docs.patch5.8 KBquicksketch

Comments

G Gavitt’s picture

Turns out my hook was firing.. I was not understanding exactly what was going on in the process.

I used this to log the notification object to my drupal_debug.txt file.


function YOURMODULENAME_recurly_process_push_notification($subdomain, $notification) {
drupal_debug($notification , $label = NULL);
}

Couldn't be easier :]

quicksketch’s picture

Category: support » task

Thanks, yeah I thought we'd started an API file, but I guess not. Let's keep this open until we have at least the basics of documentation.

quicksketch’s picture

Status: Active » Fixed
StatusFileSize
new5.8 KB

I've committed this file that adds basic hook documentation.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Trying to Make Question Clearer