Skip to content

Instantly share code, notes, and snippets.

@boxbilling
Created June 29, 2012 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boxbilling/3018605 to your computer and use it in GitHub Desktop.
Save boxbilling/3018605 to your computer and use it in GitHub Desktop.
BoxBilling new event hook
public static function onAfterAdminOrderActivate(Box_Event $event)
{
$api = $event->getApiAdmin();
$params = $event->getParameters();
$order_id = $params['id'];
$order = $api->order_get(array('id'=>$order_id));
$service = $api->order_service(array('id'=>$order_id));
$product = $api->product_get(array('id'=>$order['product_id']));
// do your stuff here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment