예제 #1
0
 public static function createAttachedOrder($oA, $campaign_id, $isPayment = false)
 {
     // make sure the order is in the right stats
     if ($oA->status != 'ok' || !$oA->isFlag('paid')) {
         return false;
     }
     // use the webservice WS class to build the order
     $attachedWS = new WS();
     $order_id = @$attachedWS->attachedOrder($oA, $campaign_id, $isPayment);
     unset($ws);
     return $order_id;
 }