Permalink
Browse files

ecpss yeepay

Signed-off-by: sidealice <it@cosmocommerce.com>
  • Loading branch information...
1 parent 8a25ed4 commit 810143d64ba69bfcc72de9b04832424ec9832db1 sidealice committed Oct 30, 2009
Showing with 2,892 additions and 0 deletions.
  1. BIN Ecpss/release/Cosmo_Community_EcpssPaymentGateway-1.3.2.4.tgz
  2. +25 −0 Ecpss/trunk/app/code/community/CosmoCommerce/Ecpss/Block/Error.php
  3. +31 −0 Ecpss/trunk/app/code/community/CosmoCommerce/Ecpss/Block/Form.php
  4. +50 −0 Ecpss/trunk/app/code/community/CosmoCommerce/Ecpss/Block/Redirect.php
  5. +27 −0 Ecpss/trunk/app/code/community/CosmoCommerce/Ecpss/Helper/Data.php
  6. +29 −0 Ecpss/trunk/app/code/community/CosmoCommerce/Ecpss/Model/Api/Debug.php
  7. +29 −0 Ecpss/trunk/app/code/community/CosmoCommerce/Ecpss/Model/Mysql4/Api/Debug.php
  8. +30 −0 Ecpss/trunk/app/code/community/CosmoCommerce/Ecpss/Model/Mysql4/Api/Debug/Collection.php
  9. +26 −0 Ecpss/trunk/app/code/community/CosmoCommerce/Ecpss/Model/Mysql4/Setup.php
  10. +311 −0 Ecpss/trunk/app/code/community/CosmoCommerce/Ecpss/Model/Payment.php
  11. +39 −0 Ecpss/trunk/app/code/community/CosmoCommerce/Ecpss/Model/Source/Language.php
  12. +32 −0 Ecpss/trunk/app/code/community/CosmoCommerce/Ecpss/Model/Source/Transport.php
  13. +327 −0 Ecpss/trunk/app/code/community/CosmoCommerce/Ecpss/controllers/PaymentController.php
  14. +155 −0 Ecpss/trunk/app/code/community/CosmoCommerce/Ecpss/etc/config.xml
  15. +161 −0 Ecpss/trunk/app/code/community/CosmoCommerce/Ecpss/etc/system.xml
  16. +24 −0 Ecpss/trunk/app/code/community/CosmoCommerce/Ecpss/sql/ecpss_setup/mysql4-install-0.1.0.php
  17. +27 −0 Ecpss/trunk/app/design/frontend/default/default/template/ecpss/error.phtml
  18. +36 −0 Ecpss/trunk/app/design/frontend/default/default/template/ecpss/form.phtml
  19. +35 −0 Ecpss/trunk/app/etc/modules/CosmoCommerce_Ecpss.xml
  20. +43 −0 Ecpss/trunk/app/locale/en_US/CosmoCommerce_Ecpss.csv
  21. +31 −0 Ecpss/trunk/app/locale/zh_CN/CosmoCommerce_Ecpss.csv
  22. BIN Ecpss/trunk/skin/frontend/default/default/images/media/visa.gif
  23. BIN Yeepay/release/Cosmo_Community_YeepayPaymentGateway-1.3.2.4.tgz
  24. +25 −0 Yeepay/trunk/app/code/community/CosmoCommerce/Yeepay/Block/Error.php
  25. +31 −0 Yeepay/trunk/app/code/community/CosmoCommerce/Yeepay/Block/Form.php
  26. +50 −0 Yeepay/trunk/app/code/community/CosmoCommerce/Yeepay/Block/Redirect.php
  27. +26 −0 Yeepay/trunk/app/code/community/CosmoCommerce/Yeepay/Helper/Data.php
  28. +29 −0 Yeepay/trunk/app/code/community/CosmoCommerce/Yeepay/Model/Api/Debug.php
  29. +30 −0 Yeepay/trunk/app/code/community/CosmoCommerce/Yeepay/Model/Mysql4/Api/Debug.php
  30. +30 −0 Yeepay/trunk/app/code/community/CosmoCommerce/Yeepay/Model/Mysql4/Api/Debug/Collection.php
  31. +27 −0 Yeepay/trunk/app/code/community/CosmoCommerce/Yeepay/Model/Mysql4/Setup.php
  32. +360 −0 Yeepay/trunk/app/code/community/CosmoCommerce/Yeepay/Model/Payment.php
  33. +40 −0 Yeepay/trunk/app/code/community/CosmoCommerce/Yeepay/Model/Source/Language.php
  34. +35 −0 Yeepay/trunk/app/code/community/CosmoCommerce/Yeepay/Model/Source/Servicetype.php
  35. +33 −0 Yeepay/trunk/app/code/community/CosmoCommerce/Yeepay/Model/Source/Transport.php
  36. +233 −0 Yeepay/trunk/app/code/community/CosmoCommerce/Yeepay/controllers/PaymentController.php
  37. +125 −0 Yeepay/trunk/app/code/community/CosmoCommerce/Yeepay/etc/config.xml
  38. +145 −0 Yeepay/trunk/app/code/community/CosmoCommerce/Yeepay/etc/system.xml
  39. +25 −0 Yeepay/trunk/app/code/community/CosmoCommerce/Yeepay/sql/yeepay_setup/mysql4-install-0.1.0.php
  40. +27 −0 Yeepay/trunk/app/design/frontend/default/default/template/yeepay/error.phtml
  41. +54 −0 Yeepay/trunk/app/design/frontend/default/default/template/yeepay/form.phtml
  42. +26 −0 Yeepay/trunk/app/etc/modules/CosmoCommerce_Yeepay.xml
  43. +43 −0 Yeepay/trunk/app/locale/en_US/CosmoCommerce_Yeepay.csv
  44. +30 −0 Yeepay/trunk/app/locale/zh_CN/CosmoCommerce_Yeepay.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_Ecpss
+ * @copyright Copyright (c) 2009 CosmoCommerce,LLC. (http://www.cosmocommerce.com)
+ * @contact :
+ * T: +86-021-66346672
+ * L: Shanghai,China
+ * M:sales@cosmocommerce.com
+ */
+class CosmoCommerce_Ecpss_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_Ecpss
+ * @copyright Copyright (c) 2009 CosmoCommerce,LLC. (http://www.cosmocommerce.com)
+ * @contact :
+ * T: +86-021-66346672
+ * L: Shanghai,China
+ * M:sales@cosmocommerce.com
+ */
+class CosmoCommerce_Ecpss_Block_Form extends Mage_Payment_Block_Form
+{
+ protected function _construct()
+ {
+ $this->setTemplate('ecpss/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_Ecpss
+ * @copyright Copyright (c) 2009 CosmoCommerce,LLC. (http://www.cosmocommerce.com)
+ * @contact :
+ * T: +86-021-66346672
+ * L: Shanghai,China
+ * M:sales@cosmocommerce.com
+ */
+class CosmoCommerce_Ecpss_Block_Redirect extends Mage_Core_Block_Abstract
+{
+
+ protected function _toHtml()
+ {
+ $standard = Mage::getModel('ecpss/payment');
+ $form = new Varien_Data_Form();
+ $form->setAction($standard->getEcpssUrl())
+ ->setId('ecpss_payment_checkout')
+ ->setName('ecpss_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 Ecpss in a few seconds.');
+ $html.= $formHTML;
+ $html.= '<script type="text/javascript">document.getElementById("ecpss_payment_checkout").submit();</script>';
+ $html.= '</body></html>';
+
+
+ return $html;
+ }
+}
@@ -0,0 +1,27 @@
+<?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_Ecpss
+ * @copyright Copyright (c) 2009 CosmoCommerce,LLC. (http://www.cosmocommerce.com)
+ * @contact :
+ * T: +86-021-66346672
+ * L: Shanghai,China
+ * M:sales@cosmocommerce.com
+ */
+class CosmoCommerce_Ecpss_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_Ecpss
+ * @copyright Copyright (c) 2009 CosmoCommerce,LLC. (http://www.cosmocommerce.com)
+ * @contact :
+ * T: +86-021-66346672
+ * L: Shanghai,China
+ * M:sales@cosmocommerce.com
+ */
+class CosmoCommerce_Ecpss_Model_Api_Debug extends Mage_Core_Model_Abstract
+{
+ protected function _construct()
+ {
+ $this->_init('ecpss/api_debug');
+ }
+}
@@ -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_Ecpss
+ * @copyright Copyright (c) 2009 CosmoCommerce,LLC. (http://www.cosmocommerce.com)
+ * @contact :
+ * T: +86-021-66346672
+ * L: Shanghai,China
+ * M:sales@cosmocommerce.com
+ */
+class CosmoCommerce_Ecpss_Model_Mysql4_Api_Debug extends Mage_Core_Model_Mysql4_Abstract
+{
+ protected function _construct()
+ {
+ $this->_init('ecpss/api_debug', 'debug_id');
+ }
+}
@@ -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_Ecpss
+ * @copyright Copyright (c) 2009 CosmoCommerce,LLC. (http://www.cosmocommerce.com)
+ * @contact :
+ * T: +86-021-66346672
+ * L: Shanghai,China
+ * M:sales@cosmocommerce.com
+ */
+
+class CosmoCommerce_Ecpss_Model_Mysql4_Api_Debug_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
+{
+ protected function _construct()
+ {
+ $this->_init('ecpss/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_Ecpss
+ * @copyright Copyright (c) 2009 CosmoCommerce,LLC. (http://www.cosmocommerce.com)
+ * @contact :
+ * T: +86-021-66346672
+ * L: Shanghai,China
+ * M:sales@cosmocommerce.com
+ */
+class CosmoCommerce_Ecpss_Model_Mysql4_Setup extends Mage_Eav_Model_Entity_Setup
+{
+
+}
Oops, something went wrong.

0 comments on commit 810143d

Please sign in to comment.