Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: it <it@cosmocommerce.com>
- Loading branch information
it
committed
Oct 30, 2009
1 parent
7c9e6ae
commit 83d2c84
Showing
57 changed files
with
3,035 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
25 changes: 25 additions & 0 deletions
25
99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Block/Error.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 | |||
{ | |||
} |
31 changes: 31 additions & 0 deletions
31
99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Block/Form.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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(); | |||
} | |||
|
|||
} |
50 changes: 50 additions & 0 deletions
50
99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Block/Redirect.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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; | |||
} | |||
} |
26 changes: 26 additions & 0 deletions
26
99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Helper/Data.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 | |||
{ | |||
|
|||
} |
29 changes: 29 additions & 0 deletions
29
99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Model/Api/Debug.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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'); | |||
} | |||
} |
30 changes: 30 additions & 0 deletions
30
99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Model/Mysql4/Api/Debug.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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'); | |||
} | |||
} |
29 changes: 29 additions & 0 deletions
29
.../trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Model/Mysql4/Api/Debug/Collection.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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'); | |||
} | |||
} |
26 changes: 26 additions & 0 deletions
26
99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Model/Mysql4/Setup.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 | |||
{ | |||
|
|||
} |
Oops, something went wrong.