setParam('id', $bundle->id); $api->setParam('obj', 'transaction'); $api->setParam('action', 'list'); $api->setParam('endUserId', $endUserAreaId.'/'.getUserId()); $res=$api->callOnIncomingUrlAction($priceplanId, '/quick_provision'); if ($api->getErrorCode()<>0){ wp_redirect($_SERVER['HTTP_REFERER'].'&bErrorStr='.urlencode($api->getErrorMessage())); return false; } $error=''; if (!$res){ $error=__('There was an error while trying to list the active subscriptions', 'bachbill'); } if ($res['error']){ $error=$res['error']['message']; }else { $res=$res['QuickProvisionResponse']; if ($res['code']==0){ }else { $error=__('There was an error while trying to list the transactions', 'bachbill'); } } get_header(); ?>