Permalink
Browse files

init

Signed-off-by: sidealice <it@cosmocommerce.com>
  • Loading branch information...
1 parent 7c9e6ae commit 8a25ed48be7b34a775f50760bdc6a3ca5f6cc646 sidealice committed Oct 30, 2009
Showing with 3,035 additions and 0 deletions.
  1. BIN 99Bill/release/Cosmo_Community_99BillPaymentGateway-1.3.2.4.tgz
  2. +25 −0 99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Block/Error.php
  3. +31 −0 99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Block/Form.php
  4. +50 −0 99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Block/Redirect.php
  5. +26 −0 99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Helper/Data.php
  6. +29 −0 99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Model/Api/Debug.php
  7. +30 −0 99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Model/Mysql4/Api/Debug.php
  8. +29 −0 99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Model/Mysql4/Api/Debug/Collection.php
  9. +26 −0 99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Model/Mysql4/Setup.php
  10. +365 −0 99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Model/Payment.php
  11. +39 −0 99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Model/Source/Language.php
  12. +36 −0 99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Model/Source/Servicetype.php
  13. +33 −0 99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/Model/Source/Transport.php
  14. +233 −0 99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/controllers/PaymentController.php
  15. +155 −0 99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/etc/config.xml
  16. +225 −0 99Bill/trunk/app/code/community/CosmoCommerce/Cosmo99Bill/etc/system.xml
  17. +25 −0 ...trunk/app/code/community/CosmoCommerce/Cosmo99Bill/sql/cosmo99bill_setup/mysql4-install-0.1.0.php
  18. +27 −0 99Bill/trunk/app/design/frontend/default/default/template/cosmo99bill/error.phtml
  19. +43 −0 99Bill/trunk/app/design/frontend/default/default/template/cosmo99bill/form.phtml
  20. +35 −0 99Bill/trunk/app/etc/modules/CosmoCommerce_Cosmo99Bill.xml
  21. +43 −0 99Bill/trunk/app/locale/en_US/CosmoCommerce_Cosmo99Bill.csv
  22. +41 −0 99Bill/trunk/app/locale/zh_CN/CosmoCommerce_Cosmo99Bill.csv
  23. BIN 99Bill/trunk/skin/frontend/default/default/images/cosmo99bill/99bill.gif
  24. BIN 99Bill/trunk/skin/frontend/default/default/images/cosmo99bill/bank_boc.gif
  25. BIN 99Bill/trunk/skin/frontend/default/default/images/cosmo99bill/bank_bosh.gif
  26. BIN 99Bill/trunk/skin/frontend/default/default/images/cosmo99bill/bank_ccb.gif
  27. BIN 99Bill/trunk/skin/frontend/default/default/images/cosmo99bill/bank_cib.gif
  28. BIN 99Bill/trunk/skin/frontend/default/default/images/cosmo99bill/bank_cmb.gif
  29. BIN 99Bill/trunk/skin/frontend/default/default/images/cosmo99bill/bank_cmbc.gif
  30. BIN 99Bill/trunk/skin/frontend/default/default/images/cosmo99bill/bank_gdb.gif
  31. BIN 99Bill/trunk/skin/frontend/default/default/images/cosmo99bill/bank_hxb.gif
  32. BIN 99Bill/trunk/skin/frontend/default/default/images/cosmo99bill/bank_icbc.gif
  33. BIN 99Bill/trunk/skin/frontend/default/default/images/cosmo99bill/bank_spdb.gif
  34. BIN 99Bill/trunk/skin/frontend/default/default/images/cosmo99bill/ljzf02.gif
  35. BIN 99Bill/trunk/skin/frontend/default/default/images/cosmo99bill/logo_99bill.gif
  36. BIN Alipay/release/Cosmo_Community_AlipayPaymentGateway-1.3.2.4.tgz
  37. +25 −0 Alipay/trunk/app/code/community/CosmoCommerce/Alipay/Block/Error.php
  38. +31 −0 Alipay/trunk/app/code/community/CosmoCommerce/Alipay/Block/Form.php
  39. +50 −0 Alipay/trunk/app/code/community/CosmoCommerce/Alipay/Block/Redirect.php
  40. +26 −0 Alipay/trunk/app/code/community/CosmoCommerce/Alipay/Helper/Data.php
  41. +29 −0 Alipay/trunk/app/code/community/CosmoCommerce/Alipay/Model/Api/Debug.php
  42. +30 −0 Alipay/trunk/app/code/community/CosmoCommerce/Alipay/Model/Mysql4/Api/Debug.php
  43. +30 −0 Alipay/trunk/app/code/community/CosmoCommerce/Alipay/Model/Mysql4/Api/Debug/Collection.php
  44. +27 −0 Alipay/trunk/app/code/community/CosmoCommerce/Alipay/Model/Mysql4/Setup.php
  45. +323 −0 Alipay/trunk/app/code/community/CosmoCommerce/Alipay/Model/Payment.php
  46. +40 −0 Alipay/trunk/app/code/community/CosmoCommerce/Alipay/Model/Source/Language.php
  47. +35 −0 Alipay/trunk/app/code/community/CosmoCommerce/Alipay/Model/Source/Servicetype.php
  48. +32 −0 Alipay/trunk/app/code/community/CosmoCommerce/Alipay/Model/Source/Transport.php
  49. +275 −0 Alipay/trunk/app/code/community/CosmoCommerce/Alipay/controllers/PaymentController.php
  50. +155 −0 Alipay/trunk/app/code/community/CosmoCommerce/Alipay/etc/config.xml
  51. +163 −0 Alipay/trunk/app/code/community/CosmoCommerce/Alipay/etc/system.xml
  52. +25 −0 Alipay/trunk/app/code/community/CosmoCommerce/Alipay/sql/alipay_setup/mysql4-install-0.1.0.php
  53. +27 −0 Alipay/trunk/app/design/frontend/default/default/template/alipay/error.phtml
  54. +57 −0 Alipay/trunk/app/design/frontend/default/default/template/alipay/form.phtml
  55. +35 −0 Alipay/trunk/app/etc/modules/CosmoCommerce_Alipay.xml
  56. +43 −0 Alipay/trunk/app/locale/en_US/CosmoCommerce_Alipay.csv
  57. +31 −0 Alipay/trunk/app/locale/zh_CN/CosmoCommerce_Alipay.csv
@@ -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
+{
+
+}
Oops, something went wrong.

0 comments on commit 8a25ed4

Please sign in to comment.