コード例 #1
0
ファイル: paypalapi.php プロジェクト: cuongnd/etravelservice
 function displayExtraPluginInfo()
 {
     $extraInfo = '';
     //if ($this->customerData->getVar('cc_number') && $this->validate()) {
     if ($this->customerData->getVar('cc_number')) {
         $cc_number = "**** **** **** " . substr($this->customerData->getVar('cc_number'), -4);
         $creditCardInfos = '<br /><span class="vmpayment_cardinfo">' . tsmText::_('VMPAYMENT_PAYPAL_CC_CCTYPE') . $this->customerData->getVar('cc_type') . '<br />';
         $creditCardInfos .= tsmText::_('VMPAYMENT_PAYPAL_CC_CCNUM') . $cc_number . '<br />';
         $creditCardInfos .= tsmText::_('VMPAYMENT_PAYPAL_CC_CVV2') . '****' . '<br />';
         $creditCardInfos .= tsmText::_('VMPAYMENT_PAYPAL_CC_EXDATE') . $this->customerData->getVar('cc_expire_month') . '/' . $this->customerData->getVar('cc_expire_year');
         $creditCardInfos .= "</span>";
         $extraInfo .= $creditCardInfos;
     } else {
         //$extraInfo .= '<br/><a href="' . JRoute::_('index.php?option=com_virtuemart&view=cart&task=editpayment&Itemid=' . vRequest::getInt('Itemid'), false) . '">' . vmText::_('VMPAYMENT_PAYPAL_CC_ENTER_INFO') . '</a>';
     }
     $extraInfo .= parent::getExtraPluginInfo();
     return $extraInfo;
 }
コード例 #2
0
 function getExtraPluginInfo()
 {
     $extraInfo = '';
     //Are we coming back from Express Checkout?
     $expressCheckout = vRequest::getVar('expresscheckout', '');
     if ($expressCheckout == 'cancel') {
         $this->customerData->clear();
         if (!class_exists('VirtueMartCart')) {
             require JPATH_VM_SITE . DS . 'helpers' . DS . 'cart.php';
         }
         $cart = VirtueMartCart::getCart();
         $cart->virtuemart_paymentmethod_id = 0;
         $cart->setCartIntoSession();
     }
     if (!$this->customerData->getVar('token')) {
         $this->getToken();
     } elseif ($expressCheckout == 'done') {
         $this->getExpressCheckoutDetails();
     }
     $extraInfo .= parent::getExtraPluginInfo();
     return $extraInfo;
 }
コード例 #3
0
ファイル: paypalexp.php プロジェクト: kosmosby/medicine-prof
	function getExtraPluginInfo () {
		$extraInfo = '';

		//Are we coming back from Express Checkout?
		$expressCheckout = vRequest::getVar('SetExpressCheckout', '');

		if (!$this->customerData->getVar('token')) {
			$this->getToken();
		} elseif ($expressCheckout == 'done') {
			$this->getExpressCheckoutDetails();
		}

		$extraInfo .= parent::getExtraPluginInfo();
		return $extraInfo;
	}