id; $orderProductName = $product->name; $orderProductSku = $product->sku; $orderProductAmount = $product->amount; $orderProductQuantity = $product->quantity; $orderProductTotal = $product->total; // amount * quantity $orderProductIsRecurring = $product->is_recurring; // true, false $orderProductRecurringAmount = $product->recurring_amount; // amount charged every rebill period $orderProductRebillPeriod = $product->rebill_period; // integer - complete rebill period is a combination of rebill period // and frequency i.e. 1 months, 30 days, 2 weeks, etc. $orderProductRebillFrequency = $product->rebill_frequency; // days, weeks, months, years } // access coupons associated with the order $coupons = json_decode(stripslashes($_GET["order_coupons"])); foreach($coupons as $coupon) { $couponId = $coupon->id; $couponName = $coupon->name; $couponCode = $coupon->code; } // ---- EVENT TYPES ---- $PRODUCT_PURCHASE = "mm_product_purchase"; // ---- PERFORM ACTION BASED ON EVENT TYPE ---- switch($eventType) { case $PRODUCT_PURCHASE: // do something break; }