• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP BOL_BillingService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中BOL_BillingService的典型用法代码示例。如果您正苦于以下问题:PHP BOL_BillingService类的具体用法?PHP BOL_BillingService怎么用?PHP BOL_BillingService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了BOL_BillingService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct($affiliateId)
 {
     parent::__construct();
     $service = OCSAFFILIATES_BOL_Service::getInstance();
     $affiliate = $service->findAffiliateById($affiliateId);
     if (!$affiliate) {
         $this->setVisible(false);
         return;
     }
     $billingService = BOL_BillingService::getInstance();
     $this->assign('currency', $billingService->getActiveCurrency());
     $clicksCount = $service->countClicksForAffiliate($affiliateId);
     $this->assign('clicksCount', $clicksCount);
     $signupCount = $service->countRegistrationsForAffiliate($affiliateId);
     $this->assign('signupCount', $signupCount);
     $salesCount = $service->countSalesForAffiliate($affiliateId);
     $this->assign('salesCount', $salesCount);
     $clicksSum = $service->getClicksSumForAffiliate($affiliateId);
     $this->assign('clicksSum', $clicksSum);
     $signupSum = $service->getRegistrationsSumForAffiliate($affiliateId);
     $this->assign('signupSum', $signupSum);
     $salesSum = $service->getSalesSumForAffiliate($affiliateId);
     $this->assign('salesSum', $salesSum);
     $earnings = $clicksSum + $signupSum + $salesSum;
     $this->assign('earnings', $earnings);
     $payouts = $service->getPayoutSum($affiliateId);
     $this->assign('payouts', $payouts);
     $balance = $earnings - $payouts;
     $this->assign('balance', $balance);
     $this->assign('affiliate', $affiliate);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:31,代码来源:affiliate_stats.php


示例2: index

 /**
  * Finance list page controller
  *
  * @param array $params
  */
 public function index(array $params)
 {
     $service = BOL_BillingService::getInstance();
     $lang = OW::getLanguage();
     $page = isset($_GET['page']) ? $_GET['page'] : 1;
     $onPage = 20;
     $list = $service->getFinanceList($page, $onPage);
     $userIdList = array();
     foreach ($list as $sale) {
         if (isset($sale['userId']) && !in_array($sale['userId'], $userIdList)) {
             array_push($userIdList, $sale['userId']);
         }
     }
     $displayNames = BOL_UserService::getInstance()->getDisplayNamesForList($userIdList);
     $userNames = BOL_UserService::getInstance()->getUserNamesForList($userIdList);
     $this->assign('list', $list);
     $this->assign('displayNames', $displayNames);
     $this->assign('userNames', $userNames);
     $total = $service->countSales();
     // Paging
     $pages = (int) ceil($total / $onPage);
     $paging = new BASE_CMP_Paging($page, $pages, 10);
     $this->assign('paging', $paging->render());
     $this->assign('total', $total);
     $stats = $service->getTotalIncome();
     $this->assign('stats', $stats);
     OW::getDocument()->setHeading($lang->text('admin', 'page_title_finance'));
     OW::getDocument()->setHeadingIconClass('ow_ic_app');
 }
开发者ID:vazahat,项目名称:dudex,代码行数:34,代码来源:finance.php


示例3: payeer_add_admin_notification

function payeer_add_admin_notification(BASE_CLASS_EventCollector $coll)
{
    $billingService = BOL_BillingService::getInstance();
    if (!mb_strlen($billingService->getGatewayConfigValue(BILLINGPAYEER_CLASS_PayeerAdapter::GATEWAY_KEY, 'm_key')) && !mb_strlen($billingService->getGatewayConfigValue(BILLINGPAYEER_CLASS_PayeerAdapter::GATEWAY_KEY, 'm_shop'))) {
        $coll->add(OW::getLanguage()->text('billingpayeer', 'plugin_configuration_notice', array('url' => OW::getRouter()->urlForRoute('billing_payeer_admin'))));
    }
}
开发者ID:vazahat,项目名称:dudex,代码行数:7,代码来源:init.php


示例4: addAdminNotification

 public function addAdminNotification(BASE_CLASS_EventCollector $coll)
 {
     $billingService = BOL_BillingService::getInstance();
     if (!mb_strlen($billingService->getGatewayConfigValue(BILLINGPAYPAL_CLASS_PaypalAdapter::GATEWAY_KEY, 'business'))) {
         $coll->add(OW::getLanguage()->text('billingpaypal', 'plugin_configuration_notice', array('url' => OW::getRouter()->urlForRoute('billing_paypal_admin'))));
     }
 }
开发者ID:vazahat,项目名称:dudex,代码行数:7,代码来源:event_handler.php


示例5: __construct

 public function __construct($params = array())
 {
     parent::__construct();
     $service = BOL_BillingService::getInstance();
     $gateway = $service->findGatewayByKey($params['gateway']);
     if (!$gateway || $gateway->dynamic) {
         $this->setVisible(false);
         return;
     }
     $event = new BASE_CLASS_EventCollector('base.billing_add_gateway_product');
     OW::getEventManager()->trigger($event);
     $data = $event->getData();
     $eventProducts = array();
     if ($data) {
         foreach ($data as $plugin) {
             foreach ($plugin as $product) {
                 $id = $service->addGatewayProduct($gateway->id, $product['pluginKey'], $product['entityType'], $product['entityId']);
                 $product['id'] = $id;
                 $eventProducts[] = $product;
             }
         }
     }
     $products = $service->findGatewayProductList($gateway->id);
     foreach ($eventProducts as &$prod) {
         $prod['productId'] = !empty($products[$prod['id']]) ? $products[$prod['id']]['dto']->productId : null;
         $prod['plugin'] = !empty($products[$prod['id']]) ? $products[$prod['id']]['plugin'] : null;
     }
     $this->assign('products', $eventProducts);
     $this->assign('actionUrl', OW::getRouter()->urlFor('BASE_CTRL_Billing', 'saveGatewayProduct'));
     $this->assign('backUrl', urlencode(OW::getRouter()->getBaseUrl() . OW::getRouter()->getUri()));
 }
开发者ID:vazahat,项目名称:dudex,代码行数:31,代码来源:billing_gateway_products.php


示例6: getInstance

 /**
  * Singleton instance.
  *
  * @return BOL_BillingService
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
开发者ID:ZyXelP,项目名称:oxwall,代码行数:12,代码来源:billing_service.php


示例7: index

 public function index()
 {
     $language = OW::getLanguage();
     $billingService = BOL_BillingService::getInstance();
     $adminForm = new Form('adminForm');
     $element = new TextField('creditValue');
     $element->setRequired(true);
     $element->setLabel($language->text('billingcredits', 'admin_usd_credit_value'));
     $element->setDescription($language->text('billingcredits', 'admin_usd_credit_value_desc'));
     $element->setValue($billingService->getGatewayConfigValue('billingcredits', 'creditValue'));
     $validator = new FloatValidator(0.1);
     $validator->setErrorMessage($language->text('billingcredits', 'invalid_numeric_format'));
     $element->addValidator($validator);
     $adminForm->addElement($element);
     $element = new Submit('saveSettings');
     $element->setValue($language->text('billingcredits', 'admin_save_settings'));
     $adminForm->addElement($element);
     if (OW::getRequest()->isPost()) {
         if ($adminForm->isValid($_POST)) {
             $values = $adminForm->getValues();
             $billingService->setGatewayConfigValue('billingcredits', 'creditValue', $values['creditValue']);
             OW::getFeedback()->info($language->text('billingcredits', 'user_save_success'));
         }
     }
     $this->addForm($adminForm);
     $this->setPageHeading(OW::getLanguage()->text('billingcredits', 'config_page_heading'));
     $this->setPageTitle(OW::getLanguage()->text('billingcredits', 'config_page_heading'));
     $this->setPageHeadingIconClass('ow_ic_app');
 }
开发者ID:vazahat,项目名称:dudex,代码行数:29,代码来源:admin.php


示例8: index

    public function index()
    {
        $this->addComponent('menu', $this->getMenu('list'));
        $lang = OW::getLanguage();
        $limit = 20;
        $page = !empty($_GET['page']) ? abs((int) $_GET['page']) : 1;
        $offset = ($page - 1) * $limit;
        $sortFields = $this->service->getSortFields();
        $sortBy = !empty($_GET['sort']) && in_array($_GET['sort'], $sortFields) ? $_GET['sort'] : 'registerStamp';
        $sortOrder = !empty($_GET['order']) && in_array($_GET['order'], array('asc', 'desc')) ? $_GET['order'] : 'desc';
        $sortUrls = array();
        $baseUrl = OW::getRouter()->urlForRoute('ocsaffiliates.admin') . '/?';
        foreach ($sortFields as $field) {
            $sortUrls[$field] = $baseUrl . 'sort=' . $field . '&order=' . ($sortBy != $field ? 'desc' : ($sortOrder == 'desc' ? 'asc' : 'desc'));
        }
        $this->assign('sortUrls', $sortUrls);
        $list = $this->service->getAffiliateList($offset, $limit, $sortBy, $sortOrder);
        $this->assign('list', $list);
        $total = $this->service->countAffiliates();
        $unverified = $this->service->countUnverifiedAffiliates();
        $this->assign('unverified', $unverified);
        // Paging
        $pages = (int) ceil($total / $limit);
        $paging = new BASE_CMP_Paging($page, $pages, $limit);
        $this->assign('paging', $paging->render());
        $billingService = BOL_BillingService::getInstance();
        $this->assign('currency', $billingService->getActiveCurrency());
        $logo = OW::getPluginManager()->getPlugin('ocsaffiliates')->getStaticUrl() . 'img/oxwallcandystore-logo.jpg';
        $this->assign('logo', $logo);
        $script = '$(".action_delete").click(function(){

            if ( !confirm(' . json_encode($lang->text('ocsaffiliates', 'delete_confirm')) . ') )
            {
                return false;
            }
            var affId = $(this).attr("affid");
            $.ajax({
                url: ' . json_encode(OW::getRouter()->urlForRoute('ocsaffiliates.action_delete')) . ',
                type: "POST",
                data: { affiliateId: affId },
                dataType: "json",
                success: function(data)
                {
                    if ( data.result == true )
                    {
                        document.location.reload();
                    }
                    else if ( data.error != undefined )
                    {
                        OW.warning(data.error);
                    }
                }
            });
        });';
        OW::getDocument()->addOnloadScript($script);
        // TODO: remove this code when a sale event is available
        $this->service->processUntrackedSales();
        OW::getDocument()->setHeading($lang->text('ocsaffiliates', 'admin_page_heading'));
    }
开发者ID:vazahat,项目名称:dudex,代码行数:59,代码来源:admin.php


示例9: process

 public function process()
 {
     $values = $this->getValues();
     $billingService = BOL_BillingService::getInstance();
     $gwKey = BILLINGPAYPAL_CLASS_PaypalAdapter::GATEWAY_KEY;
     $billingService->setGatewayConfigValue($gwKey, 'business', $values['business']);
     $billingService->setGatewayConfigValue($gwKey, 'sandboxMode', $values['sandboxMode']);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:8,代码来源:admin.php


示例10: ocsbillingmoneybookers_add_admin_notification

function ocsbillingmoneybookers_add_admin_notification(BASE_CLASS_EventCollector $coll)
{
    $billingService = BOL_BillingService::getInstance();
    $gwKey = OCSBILLINGMONEYBOOKERS_CLASS_MoneybookersAdapter::GATEWAY_KEY;
    if (!mb_strlen($billingService->getGatewayConfigValue($gwKey, 'merchantId')) || !mb_strlen($billingService->getGatewayConfigValue($gwKey, 'merchantEmail')) || !mb_strlen($billingService->getGatewayConfigValue($gwKey, 'secret'))) {
        $coll->add(OW::getLanguage()->text('ocsbillingmoneybookers', 'plugin_configuration_notice', array('url' => OW::getRouter()->urlForRoute('ocsbillingmoneybookers.admin'))));
    }
}
开发者ID:vazahat,项目名称:dudex,代码行数:8,代码来源:init.php


示例11: process

 public function process()
 {
     $values = $this->getValues();
     $billingService = BOL_BillingService::getInstance();
     $gwKey = OCSBILLINGICEPAY_CLASS_IcepayAdapter::GATEWAY_KEY;
     $billingService->setGatewayConfigValue($gwKey, 'merchantId', $values['merchantId']);
     $billingService->setGatewayConfigValue($gwKey, 'encryptionCode', $values['encryptionCode']);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:8,代码来源:admin.php


示例12: ocsbillingicepay_add_admin_notification

function ocsbillingicepay_add_admin_notification(BASE_CLASS_EventCollector $coll)
{
    $billingService = BOL_BillingService::getInstance();
    $gwKey = OCSBILLINGICEPAY_CLASS_IcepayAdapter::GATEWAY_KEY;
    if (!mb_strlen($billingService->getGatewayConfigValue($gwKey, 'merchantId')) || !mb_strlen($billingService->getGatewayConfigValue($gwKey, 'encryptionCode'))) {
        $coll->add(OW::getLanguage()->text('ocsbillingicepay', 'plugin_configuration_notice', array('url' => OW::getRouter()->urlForRoute('ocsbillingicepay.admin'))));
    }
}
开发者ID:vazahat,项目名称:dudex,代码行数:8,代码来源:init.php


示例13: process

 public function process()
 {
     $values = $this->getValues();
     $billingService = BOL_BillingService::getInstance();
     $gwKey = BILLINGPAYEER_CLASS_PayeerAdapter::GATEWAY_KEY;
     $billingService->setGatewayConfigValue($gwKey, 'm_key', $values['m_key']);
     $billingService->setGatewayConfigValue($gwKey, 'm_shop', $values['m_shop']);
     $billingService->setGatewayConfigValue($gwKey, 'm_curr', $values['m_curr']);
     $billingService->setGatewayConfigValue($gwKey, 'lang', $values['lang']);
     $billingService->setGatewayConfigValue($gwKey, 'tabNum', $values['tabNum']);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:11,代码来源:admin.php


示例14: __construct

 public function __construct(BASE_CLASS_WidgetParameter $params)
 {
     parent::__construct();
     $goalId = $params->customParamList['goal'];
     $service = OCSFUNDRAISING_BOL_Service::getInstance();
     if ($goalId) {
         $goal = $service->getGoalById($goalId);
         if (!$goal) {
             $this->assign('error', OW::getLanguage()->text('ocsfundraising', 'goal_not_found'));
             return;
         }
         $goal['dto']->description = mb_substr($goal['dto']->description, 0, 250) . (mb_strlen($goal['dto']->description) > 250 ? '...' : '');
         $this->assign('goal', $goal);
     } else {
         $this->assign('goal', null);
         return;
     }
     $userIdList = array();
     $showTop = $params->customParamList['show_top'];
     if ($showTop) {
         $top = $service->getDonationList($goalId, 'top', 1, 3);
         if ($top) {
             foreach ($top as $d) {
                 if ($d['dto']->userId && !in_array($d['dto']->userId, $userIdList)) {
                     array_push($userIdList, $d['dto']->userId);
                 }
             }
         }
         $this->assign('top', $top);
     }
     $this->assign('showTop', $showTop);
     $showLatest = $params->customParamList['show_latest'];
     if ($showLatest) {
         $latest = $service->getDonationList($goalId, 'latest', 1, 3);
         if ($latest) {
             foreach ($latest as $d) {
                 if ($d['dto']->userId && !in_array($d['dto']->userId, $userIdList)) {
                     array_push($userIdList, $d['dto']->userId);
                 }
             }
         }
         $this->assign('latest', $latest);
     }
     $this->assign('showLatest', $showLatest);
     $avatars = BOL_AvatarService::getInstance()->getDataForUserAvatars($userIdList);
     $this->assign('avatars', $avatars);
     $this->assign('currency', BOL_BillingService::getInstance()->getActiveCurrency());
     $this->assign('donators', (int) $service->countGoalDonators($goalId));
     $image = $goal['dto']->image ? $service->generateImageUrl($goal['dto']->image, true) : null;
     $this->assign('image', $image);
     $js = UTIL_JsGenerator::newInstance()->jQueryEvent('.btn-donate-goal-' . $goal['dto']->id, 'click', 'document.location.href = e.data.href', array('e'), array('href' => OW::getRouter()->urlForRoute('ocsfundraising.donate', array('goalId' => $goal['dto']->id))))->jQueryEvent('.btn-details-goal-' . $goal['dto']->id, 'click', 'document.location.href = e.data.href', array('e'), array('href' => OW::getRouter()->urlForRoute('ocsfundraising.project', array('id' => $goal['dto']->id))));
     OW::getDocument()->addOnloadScript($js);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:53,代码来源:goal_widget.php


示例15: index

 public function index()
 {
     if (!OW::getUser()->isAuthenticated()) {
         throw new AuthenticateException();
     }
     $form = new BuyCreditsForm();
     $this->addForm($form);
     $creditService = USERCREDITS_BOL_CreditsService::getInstance();
     if (OW::getRequest()->isPost() && $form->isValid($_POST)) {
         $values = $form->getValues();
         $lang = OW::getLanguage();
         $userId = OW::getUser()->getId();
         $billingService = BOL_BillingService::getInstance();
         if (empty($values['gateway']['url']) || empty($values['gateway']['key']) || !($gateway = $billingService->findGatewayByKey($values['gateway']['key']) || !$gateway->active)) {
             OW::getFeedback()->error($lang->text('base', 'billing_gateway_not_found'));
             $this->redirect();
         }
         if (!($pack = $creditService->findPackById($values['pack']))) {
             OW::getFeedback()->error($lang->text('usercredits', 'pack_not_found'));
             $this->redirect();
         }
         // create pack product adapter object
         $productAdapter = new USERCREDITS_CLASS_UserCreditsPackProductAdapter();
         // sale object
         $sale = new BOL_BillingSale();
         $sale->pluginKey = 'usercredits';
         $sale->entityDescription = strip_tags($creditService->getPackTitle($pack->price, $pack->credits));
         $sale->entityKey = $productAdapter->getProductKey();
         $sale->entityId = $pack->id;
         $sale->price = floatval($pack->price);
         $sale->period = 30;
         $sale->userId = $userId ? $userId : 0;
         $sale->recurring = 0;
         $saleId = $billingService->initSale($sale, $values['gateway']['key']);
         if ($saleId) {
             // sale Id is temporarily stored in session
             $billingService->storeSaleInSession($saleId);
             $billingService->setSessionBackUrl($productAdapter->getProductOrderUrl());
             // redirect to gateway form page
             OW::getApplication()->redirect($values['gateway']['url']);
         }
     }
     $lang = OW::getLanguage();
     $accountTypeId = $creditService->getUserAccountTypeId(OW::getUser()->getId());
     $packs = $creditService->getPackList($accountTypeId);
     $this->assign('packs', $packs);
     $this->setPageHeading($lang->text('usercredits', 'buy_credits_page_heading'));
     $this->setPageHeadingIconClass('ow_ic_user');
     OW::getDocument()->setTitle($lang->text('usercredits', 'meta_title_buy_credits'));
     OW::getNavigation()->activateMenuItem(OW_Navigation::MAIN, 'base', 'dashboard');
 }
开发者ID:hardikamutech,项目名称:loov,代码行数:51,代码来源:buy_credits.php


示例16: index

 public function index(array $params)
 {
     if (!($goalId = $params['goalId'])) {
         throw new Redirect404Exception();
     }
     $fundraisingService = OCSFUNDRAISING_BOL_Service::getInstance();
     $billingService = BOL_BillingService::getInstance();
     $this->assign('currency', $billingService->getActiveCurrency());
     if (!($goal = $fundraisingService->getGoalById($goalId))) {
         throw new Redirect404Exception();
     }
     $this->assign('goal', $goal);
     $lang = OW::getLanguage();
     $userId = OW::getUser()->getId();
     $this->assign('userId', $userId);
     $form = new DonateForm($userId);
     $this->addForm($form);
     $form->getElement('amount')->setValue(floatval($goal['dto']->amountMin));
     if (OW::getRequest()->isPost() && $form->isValid($_POST)) {
         $values = $form->getValues();
         if (empty($values['gateway']['url']) || empty($values['gateway']['key']) || !($gateway = $billingService->findGatewayByKey($values['gateway']['key']) || !$gateway->active)) {
             OW::getFeedback()->error($lang->text('base', 'billing_gateway_not_found'));
             $this->redirectToAction('index');
         }
         // create donation product adapter object
         $productAdapter = new OCSFUNDRAISING_CLASS_DonationProductAdapter();
         // sale object
         $sale = new BOL_BillingSale();
         $sale->pluginKey = 'ocsfundraising';
         $sale->entityDescription = $goal['dto']->name;
         $sale->entityKey = $productAdapter->getProductKey();
         $sale->entityId = $goalId;
         $sale->price = floatval($values['amount']);
         $sale->userId = $userId ? $userId : 0;
         $sale->recurring = false;
         if (!$userId && !empty($values['username'])) {
             $sale->setExtraData(array('username' => $values['username']));
         }
         $saleId = $billingService->initSale($sale, $values['gateway']['key']);
         if ($saleId) {
             // sale Id is temporarily stored in session
             $billingService->storeSaleInSession($saleId);
             $billingService->setSessionBackUrl(OW::getRouter()->urlForRoute(OCSFUNDRAISING_CLASS_DonationProductAdapter::RETURN_ROUTE, array('goalId' => $goalId)));
             // redirect to gateway form page
             $this->redirect($values['gateway']['url']);
         }
     }
     $this->setPageHeading($goal['dto']->name);
     $this->setPageHeadingIconClass('ow_ic_user');
 }
开发者ID:vazahat,项目名称:dudex,代码行数:50,代码来源:donate.php


示例17: __construct

 public function __construct($affiliateId, $adminMode = false)
 {
     parent::__construct();
     $service = OCSAFFILIATES_BOL_Service::getInstance();
     $affiliate = $service->findAffiliateById($affiliateId);
     if (!$affiliate) {
         $this->setVisible(false);
         return;
     }
     $this->assign('payoutList', $service->getPayoutListForAffiliate($affiliateId));
     $billingService = BOL_BillingService::getInstance();
     $this->assign('currency', $billingService->getActiveCurrency());
     $this->assign('adminMode', $adminMode);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:14,代码来源:affiliate_payouts.php


示例18: __construct

 public function __construct(BASE_CLASS_WidgetParameter $params)
 {
     parent::__construct();
     $userId = $params->additionalParamList['entityId'];
     $service = OCSFUNDRAISING_BOL_Service::getInstance();
     $projects = $service->getUserGoalsList($userId, 1, 2);
     $this->assign('projects', $projects);
     $this->assign('currency', BOL_BillingService::getInstance()->getActiveCurrency());
     /*$js = UTIL_JsGenerator::newInstance()
                 ->jQueryEvent('.btn-donate-goal-'.$goal['dto']->id, 'click', 'document.location.href = e.data.href', array('e'),
                     array('href' => OW::getRouter()->urlForRoute('ocsfundraising.donate', array('goalId' => $goal['dto']->id))
                 ));
     
             OW::getDocument()->addOnloadScript($js);*/
 }
开发者ID:vazahat,项目名称:dudex,代码行数:15,代码来源:user_projects_widget.php


示例19: __construct

 public function __construct()
 {
     parent::__construct('moneybookers-config-form');
     $language = OW::getLanguage();
     $billingService = BOL_BillingService::getInstance();
     $gwKey = OCSBILLINGMONEYBOOKERS_CLASS_MoneybookersAdapter::GATEWAY_KEY;
     $merchantId = new TextField('merchantId');
     $merchantId->setValue($billingService->getGatewayConfigValue($gwKey, 'merchantId'));
     $merchantId->setRequired(true);
     $merchantId->setLabel($language->text('ocsbillingmoneybookers', 'merchant_id'));
     $this->addElement($merchantId);
     $merchantEmail = new TextField('merchantEmail');
     $merchantEmail->setValue($billingService->getGatewayConfigValue($gwKey, 'merchantEmail'));
     $merchantEmail->setRequired(true);
     $merchantEmail->setLabel($language->text('ocsbillingmoneybookers', 'merchant_email'));
     $this->addElement($merchantEmail);
     $secret = new TextField('secret');
     $secret->setValue($billingService->getGatewayConfigValue($gwKey, 'secret'));
     $secret->setRequired(true);
     $secret->setLabel($language->text('ocsbillingmoneybookers', 'secret'));
     $this->addElement($secret);
     $sandboxMode = new CheckboxField('sandboxMode');
     $sandboxMode->setValue($billingService->getGatewayConfigValue($gwKey, 'sandboxMode'));
     $sandboxMode->setLabel($language->text('ocsbillingmoneybookers', 'sandbox_mode'));
     $this->addElement($sandboxMode);
     $desc = new TextField('recipientDescription');
     $desc->setValue($billingService->getGatewayConfigValue($gwKey, 'recipientDescription'));
     $desc->setLabel($language->text('ocsbillingmoneybookers', 'recipient_description'));
     $this->addElement($desc);
     $lang = new Selectbox('language');
     $lang->setLabel($language->text('ocsbillingmoneybookers', 'language'));
     $lang->addOptions(array('EN' => 'EN', 'DE' => 'DE', 'ES' => 'ES', 'FR' => 'FR', 'IT' => 'IT', 'PL' => 'PL', 'GR' => 'GR', 'RO' => 'PO', 'RU' => 'RU', 'TR' => 'TR', 'CN' => 'CN', 'CZ' => 'CZ', 'NL' => 'NL', 'DA' => 'DA', 'SV' => 'SV', 'FI' => 'FI'));
     $lang->setRequired(true);
     $lang->setValue($billingService->getGatewayConfigValue($gwKey, 'language'));
     $this->addElement($lang);
     // submit
     $submit = new Submit('save');
     $submit->setValue($language->text('ocsbillingmoneybookers', 'btn_save'));
     $this->addElement($submit);
 }
开发者ID:vazahat,项目名称:dudex,代码行数:40,代码来源:admin.php


示例20:

<?php

/**
 * EXHIBIT A. Common Public Attribution License Version 1.0
 * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy of the License at
 * http://opensource.org/licenses/CPAL-1.0. Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language
 * governing rights and limitations under the License.
 * The Initial Developer of the Original Code is Oxwall CandyStore (http://oxcandystore.com/).
 * All portions of the code written by Oxwall CandyStore are Copyright (c) 2013. All Rights Reserved.
 * EXHIBIT B. Attribution Information
 * Attribution Copyright Notice: Copyright 2013 Oxwall CandyStore. All rights reserved.
 * Attribution Phrase (not exceeding 10 words): Powered by Oxwall CandyStore
 * Attribution URL: http://oxcandystore.com/
 * Graphic Image as provided in the Covered Code.
 * Display of Attribution Information is required in Larger Works which are defined in the CPAL as a work
 * which combines Covered Code or portions thereof with code not governed by the terms of the CPAL.
 */
/**
 * /deactivate.php
 * 
 * @author Oxwall CandyStore <[email protected]>
 * @package ow.ow_plugins.ocs_billing_moneybookers
 * @since 1.2.6
 */
BOL_BillingService::getInstance()->deactivateGateway('ocsbillingmoneybookers');
开发者ID:vazahat,项目名称:dudex,代码行数:27,代码来源:deactivate.php



注:本文中的BOL_BillingService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP BOL_ComponentAdminService类代码示例发布时间:2022-05-23
下一篇:
PHP BOL_AvatarService类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap