Skip to content

Commit

Permalink
Signed-off-by: it <it@cosmocommerce.com>
Browse files Browse the repository at this point in the history
  • Loading branch information
it committed Oct 30, 2009
1 parent 7c9e6ae commit 83d2c84
Show file tree
Hide file tree
Showing 57 changed files with 3,035 additions and 0 deletions.
Binary file not shown.
@@ -0,0 +1,25 @@
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* @category CosmoCommerce
* @package CosmoCommerce_99Bill
* @copyright Copyright (c) 2009 CosmoCommerce,LLC. (http://www.cosmocommerce.com)
* @contact :
* T: +86-021-66346672
* L: Shanghai,China
* M:sales@cosmocommerce.com
*/
class CosmoCommerce_Cosmo99Bill_Block_Error extends Mage_Core_Block_Template
{
}
@@ -0,0 +1,31 @@
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* @category CosmoCommerce
* @package CosmoCommerce_99Bill
* @copyright Copyright (c) 2009 CosmoCommerce,LLC. (http://www.cosmocommerce.com)
* @contact :
* T: +86-021-66346672
* L: Shanghai,China
* M:sales@cosmocommerce.com
*/
class CosmoCommerce_Cosmo99Bill_Block_Form extends Mage_Payment_Block_Form
{
protected function _construct()
{
$this->setTemplate('cosmo99bill/form.phtml');
parent::_construct();
}

}
@@ -0,0 +1,50 @@
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* @category CosmoCommerce
* @package CosmoCommerce_99Bill
* @copyright Copyright (c) 2009 CosmoCommerce,LLC. (http://www.cosmocommerce.com)
* @contact :
* T: +86-021-66346672
* L: Shanghai,China
* M:sales@cosmocommerce.com
*/
class CosmoCommerce_Cosmo99Bill_Block_Redirect extends Mage_Core_Block_Abstract
{

protected function _toHtml()
{
$standard = Mage::getModel('cosmo99bill/payment');
$form = new Varien_Data_Form();
$form->setAction($standard->getCosmo99BillUrl())
->setId('cosmo99bill_payment_checkout')
->setName('cosmo99bill_payment_checkout')
->setMethod('GET')
->setUseContainer(true);
foreach ($standard->setOrder($this->getOrder())->getStandardCheckoutFormFields() as $field => $value) {
$form->addField($field, 'hidden', array('name' => $field, 'value' => $value));
}

$formHTML = $form->toHtml();

$html = '<html><body>';
$html.= $this->__('You will be redirected to 99Bill in a few seconds.');
$html.= $formHTML;
$html.= '<script type="text/javascript">document.getElementById("cosmo99bill_payment_checkout").submit();</script>';
$html.= '</body></html>';


return $html;
}
}
@@ -0,0 +1,26 @@
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* @category CosmoCommerce
* @package CosmoCommerce_99Bill
* @copyright Copyright (c) 2009 CosmoCommerce,LLC. (http://www.cosmocommerce.com)
* @contact :
* T: +86-021-66346672
* L: Shanghai,China
* M:sales@cosmocommerce.com
*/
class CosmoCommerce_Cosmo99Bill_Helper_Data extends Mage_Core_Helper_Abstract
{

}
@@ -0,0 +1,29 @@
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* @category CosmoCommerce
* @package CosmoCommerce_99Bill
* @copyright Copyright (c) 2009 CosmoCommerce,LLC. (http://www.cosmocommerce.com)
* @contact :
* T: +86-021-66346672
* L: Shanghai,China
* M:sales@cosmocommerce.com
*/
class CosmoCommerce_Cosmo99Bill_Model_Api_Debug extends Mage_Core_Model_Abstract
{
protected function _construct()
{
$this->_init('cosmo99bill/api_debug');
}
}
@@ -0,0 +1,30 @@
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* @category CosmoCommerce
* @package CosmoCommerce_99Bill
* @copyright Copyright (c) 2009 CosmoCommerce,LLC. (http://www.cosmocommerce.com)
* @contact :
* T: +86-021-66346672
* L: Shanghai,China
* M:sales@cosmocommerce.com
*/

class CosmoCommerce_Cosmo99Bill_Model_Mysql4_Api_Debug extends Mage_Core_Model_Mysql4_Abstract
{
protected function _construct()
{
$this->_init('cosmo99bill/api_debug', 'debug_id');
}
}
@@ -0,0 +1,29 @@
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* @category CosmoCommerce
* @package CosmoCommerce_99Bill
* @copyright Copyright (c) 2009 CosmoCommerce,LLC. (http://www.cosmocommerce.com)
* @contact :
* T: +86-021-66346672
* L: Shanghai,China
* M:sales@cosmocommerce.com
*/
class CosmoCommerce_Cosmo99Bill_Model_Mysql4_Api_Debug_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
{
protected function _construct()
{
$this->_init('cosmo99bill/api_debug');
}
}
@@ -0,0 +1,26 @@
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* @category CosmoCommerce
* @package CosmoCommerce_99Bill
* @copyright Copyright (c) 2009 CosmoCommerce,LLC. (http://www.cosmocommerce.com)
* @contact :
* T: +86-021-66346672
* L: Shanghai,China
* M:sales@cosmocommerce.com
*/
class CosmoCommerce_Cosmo99Bill_Model_Mysql4_Setup extends Mage_Eav_Model_Entity_Setup
{

}

0 comments on commit 83d2c84

Please sign in to comment.