Smart2Pay - Version 1.0.1

Version Notes

Smart2Pay API integration

Download this release

Release Info

Developer Stefan Iancu
Extension Smart2Pay
Version 1.0.1
Comparing to
See all releases


Version 1.0.1

Files changed (223) hide show
  1. app/code/community/Smart2pay/Globalpay/Block/Info.php +26 -0
  2. app/code/community/Smart2pay/Globalpay/Block/Paymethod/Form.php +42 -0
  3. app/code/community/Smart2pay/Globalpay/Block/Paymethod/Sendform.php +74 -0
  4. app/code/community/Smart2pay/Globalpay/Helper/Data.php +37 -0
  5. app/code/community/Smart2pay/Globalpay/Helper/Helper.php +9 -0
  6. app/code/community/Smart2pay/Globalpay/Model/Country.php +11 -0
  7. app/code/community/Smart2pay/Globalpay/Model/Countrymethod.php +11 -0
  8. app/code/community/Smart2pay/Globalpay/Model/GlobalpayLog.php +7 -0
  9. app/code/community/Smart2pay/Globalpay/Model/Logger.php +38 -0
  10. app/code/community/Smart2pay/Globalpay/Model/Method.php +12 -0
  11. app/code/community/Smart2pay/Globalpay/Model/Pay.php +67 -0
  12. app/code/community/Smart2pay/Globalpay/Model/Resource/Country.php +9 -0
  13. app/code/community/Smart2pay/Globalpay/Model/Resource/Country/Collection.php +8 -0
  14. app/code/community/Smart2pay/Globalpay/Model/Resource/Countrymethod.php +9 -0
  15. app/code/community/Smart2pay/Globalpay/Model/Resource/Countrymethod/Collection.php +9 -0
  16. app/code/community/Smart2pay/Globalpay/Model/Resource/Logger.php +9 -0
  17. app/code/community/Smart2pay/Globalpay/Model/Resource/Logger/Collection.php +9 -0
  18. app/code/community/Smart2pay/Globalpay/Model/Resource/Method.php +9 -0
  19. app/code/community/Smart2pay/Globalpay/Model/Resource/Method/Collection.php +8 -0
  20. app/code/community/Smart2pay/Globalpay/Model/Resource/Setup.php +5 -0
  21. app/code/community/Smart2pay/Globalpay/Model/Source/Displaymodes.php +34 -0
  22. app/code/community/Smart2pay/Globalpay/Model/Source/Methods.php +46 -0
  23. app/code/community/Smart2pay/Globalpay/Model/Source/Testlive.php +31 -0
  24. app/code/community/Smart2pay/Globalpay/controllers/IndexController.php +199 -0
  25. app/code/community/Smart2pay/Globalpay/controllers/TestsController.php +13 -0
  26. app/code/community/Smart2pay/Globalpay/etc/config.xml +124 -0
  27. app/code/community/Smart2pay/Globalpay/etc/system.xml +383 -0
  28. app/code/community/Smart2pay/Globalpay/sql/globalpay_setup/mysql4-install-0.1.0.php +545 -0
  29. app/design/frontend/base/default/layout/globalpay.xml +19 -0
  30. app/design/frontend/base/default/template/smart2pay/globalpay/info.phtml +3 -0
  31. app/design/frontend/base/default/template/smart2pay/globalpay/paymethod/form.phtml +155 -0
  32. app/design/frontend/base/default/template/smart2pay/globalpay/paymethod/sendform.phtml +247 -0
  33. app/etc/modules/Smart2Pay_Globalpay.xml +12 -0
  34. app/locale/en_US/Smart2Pay_Globalpay.csv +122 -0
  35. app/locale/en_US/template/email/smart2pay/globalpay/payment_confirmation.html +24 -0
  36. package.xml +85 -0
  37. skin/frontend/base/default/images/smart2pay/methods/ABN-AMRO.jpg +0 -0
  38. skin/frontend/base/default/images/smart2pay/methods/FPX.gif +0 -0
  39. skin/frontend/base/default/images/smart2pay/methods/FPX_grey.gif +0 -0
  40. skin/frontend/base/default/images/smart2pay/methods/Frieslandbank.jpg +0 -0
  41. skin/frontend/base/default/images/smart2pay/methods/RBS.jpg +0 -0
  42. skin/frontend/base/default/images/smart2pay/methods/abaqoos.gif +0 -0
  43. skin/frontend/base/default/images/smart2pay/methods/abaqoos_grey.gif +0 -0
  44. skin/frontend/base/default/images/smart2pay/methods/ach.gif +0 -0
  45. skin/frontend/base/default/images/smart2pay/methods/ach_grey.gif +0 -0
  46. skin/frontend/base/default/images/smart2pay/methods/alipay.jpg +0 -0
  47. skin/frontend/base/default/images/smart2pay/methods/alipay_grey.jpg +0 -0
  48. skin/frontend/base/default/images/smart2pay/methods/alliance_online.gif +0 -0
  49. skin/frontend/base/default/images/smart2pay/methods/alliance_online_grey.gif +0 -0
  50. skin/frontend/base/default/images/smart2pay/methods/ambankgroup.gif +0 -0
  51. skin/frontend/base/default/images/smart2pay/methods/ambankgroup_grey.gif +0 -0
  52. skin/frontend/base/default/images/smart2pay/methods/american_express.jpg +0 -0
  53. skin/frontend/base/default/images/smart2pay/methods/american_express_grey.jpg +0 -0
  54. skin/frontend/base/default/images/smart2pay/methods/arztebank.jpg +0 -0
  55. skin/frontend/base/default/images/smart2pay/methods/arztebank_grey.jpg +0 -0
  56. skin/frontend/base/default/images/smart2pay/methods/asn_bank_logo.jpg +0 -0
  57. skin/frontend/base/default/images/smart2pay/methods/banco_do_brasil.jpg +0 -0
  58. skin/frontend/base/default/images/smart2pay/methods/banco_do_brasil_grey.jpg +0 -0
  59. skin/frontend/base/default/images/smart2pay/methods/bank_austria.jpg +0 -0
  60. skin/frontend/base/default/images/smart2pay/methods/bank_austria_grey.jpg +0 -0
  61. skin/frontend/base/default/images/smart2pay/methods/bank_burgeland.jpg +0 -0
  62. skin/frontend/base/default/images/smart2pay/methods/bank_burgeland_grey.jpg +0 -0
  63. skin/frontend/base/default/images/smart2pay/methods/bank_transfer_logo_v2.png +0 -0
  64. skin/frontend/base/default/images/smart2pay/methods/bank_transfer_logo_v3.png +0 -0
  65. skin/frontend/base/default/images/smart2pay/methods/bank_transfer_logo_v4.png +0 -0
  66. skin/frontend/base/default/images/smart2pay/methods/bank_transfer_logo_v5.gif +0 -0
  67. skin/frontend/base/default/images/smart2pay/methods/bank_transfer_logo_v5_grey.gif +0 -0
  68. skin/frontend/base/default/images/smart2pay/methods/bawag.jpg +0 -0
  69. skin/frontend/base/default/images/smart2pay/methods/bawag_grey.jpg +0 -0
  70. skin/frontend/base/default/images/smart2pay/methods/beeline.gif +0 -0
  71. skin/frontend/base/default/images/smart2pay/methods/beeline_grey.gif +0 -0
  72. skin/frontend/base/default/images/smart2pay/methods/boleto.jpg +0 -0
  73. skin/frontend/base/default/images/smart2pay/methods/boleto_grey.jpg +0 -0
  74. skin/frontend/base/default/images/smart2pay/methods/bradesco.jpg +0 -0
  75. skin/frontend/base/default/images/smart2pay/methods/bradesco_grey.jpg +0 -0
  76. skin/frontend/base/default/images/smart2pay/methods/bradesco_transferencia.jpg +0 -0
  77. skin/frontend/base/default/images/smart2pay/methods/bradesco_transferencia_grey.jpg +0 -0
  78. skin/frontend/base/default/images/smart2pay/methods/cabal.jpg +0 -0
  79. skin/frontend/base/default/images/smart2pay/methods/cabal_grey.jpg +0 -0
  80. skin/frontend/base/default/images/smart2pay/methods/cards_brl.gif +0 -0
  81. skin/frontend/base/default/images/smart2pay/methods/cards_brl_grey.gif +0 -0
  82. skin/frontend/base/default/images/smart2pay/methods/cards_colombia.jpg +0 -0
  83. skin/frontend/base/default/images/smart2pay/methods/cards_colombia_grey.jpg +0 -0
  84. skin/frontend/base/default/images/smart2pay/methods/cards_logo.jpg +0 -0
  85. skin/frontend/base/default/images/smart2pay/methods/cards_logo_grey.jpg +0 -0
  86. skin/frontend/base/default/images/smart2pay/methods/cashu.gif +0 -0
  87. skin/frontend/base/default/images/smart2pay/methods/cashu_grey.gif +0 -0
  88. skin/frontend/base/default/images/smart2pay/methods/cimb_clicks.gif +0 -0
  89. skin/frontend/base/default/images/smart2pay/methods/cimb_clicks_grey.gif +0 -0
  90. skin/frontend/base/default/images/smart2pay/methods/cuentadigital.gif +0 -0
  91. skin/frontend/base/default/images/smart2pay/methods/cuentadigital_grey.gif +0 -0
  92. skin/frontend/base/default/images/smart2pay/methods/debito.jpg +0 -0
  93. skin/frontend/base/default/images/smart2pay/methods/debito_bradesco.jpg +0 -0
  94. skin/frontend/base/default/images/smart2pay/methods/debito_bradesco_grey.jpg +0 -0
  95. skin/frontend/base/default/images/smart2pay/methods/debitobdb.jpg +0 -0
  96. skin/frontend/base/default/images/smart2pay/methods/debitobdb_grey.jpg +0 -0
  97. skin/frontend/base/default/images/smart2pay/methods/dineromail.gif +0 -0
  98. skin/frontend/base/default/images/smart2pay/methods/dineromail_grey.gif +0 -0
  99. skin/frontend/base/default/images/smart2pay/methods/dineromail_v2.gif +0 -0
  100. skin/frontend/base/default/images/smart2pay/methods/dineromail_v2_grey.gif +0 -0
  101. skin/frontend/base/default/images/smart2pay/methods/diners_club.jpg +0 -0
  102. skin/frontend/base/default/images/smart2pay/methods/diners_club_grey.jpg +0 -0
  103. skin/frontend/base/default/images/smart2pay/methods/discover.jpg +0 -0
  104. skin/frontend/base/default/images/smart2pay/methods/discover_grey.jpg +0 -0
  105. skin/frontend/base/default/images/smart2pay/methods/dp24_sofort.gif +0 -0
  106. skin/frontend/base/default/images/smart2pay/methods/dp24_sofort_grey.gif +0 -0
  107. skin/frontend/base/default/images/smart2pay/methods/easybank.jpg +0 -0
  108. skin/frontend/base/default/images/smart2pay/methods/easybank_grey.jpg +0 -0
  109. skin/frontend/base/default/images/smart2pay/methods/ebanka.jpg +0 -0
  110. skin/frontend/base/default/images/smart2pay/methods/ebanka_grey.jpg +0 -0
  111. skin/frontend/base/default/images/smart2pay/methods/enets.gif +0 -0
  112. skin/frontend/base/default/images/smart2pay/methods/enets_grey.gif +0 -0
  113. skin/frontend/base/default/images/smart2pay/methods/eps-e-payment-standard.gif +0 -0
  114. skin/frontend/base/default/images/smart2pay/methods/eps-e-payment-standard_grey.gif +0 -0
  115. skin/frontend/base/default/images/smart2pay/methods/erste.jpg +0 -0
  116. skin/frontend/base/default/images/smart2pay/methods/erste_grey.jpg +0 -0
  117. skin/frontend/base/default/images/smart2pay/methods/gartnerbank.jpg +0 -0
  118. skin/frontend/base/default/images/smart2pay/methods/gartnerbank_grey.jpg +0 -0
  119. skin/frontend/base/default/images/smart2pay/methods/gash.gif +0 -0
  120. skin/frontend/base/default/images/smart2pay/methods/gash_grey.gif +0 -0
  121. skin/frontend/base/default/images/smart2pay/methods/giropay.gif +0 -0
  122. skin/frontend/base/default/images/smart2pay/methods/giropay_grey.gif +0 -0
  123. skin/frontend/base/default/images/smart2pay/methods/gluepay.jpg +0 -0
  124. skin/frontend/base/default/images/smart2pay/methods/gluepay_grey.jpg +0 -0
  125. skin/frontend/base/default/images/smart2pay/methods/hipercard.jpg +0 -0
  126. skin/frontend/base/default/images/smart2pay/methods/hipercard_grey.jpg +0 -0
  127. skin/frontend/base/default/images/smart2pay/methods/hong_leong.gif +0 -0
  128. skin/frontend/base/default/images/smart2pay/methods/hong_leong_grey.gif +0 -0
  129. skin/frontend/base/default/images/smart2pay/methods/hypo.jpg +0 -0
  130. skin/frontend/base/default/images/smart2pay/methods/hypo_grey.jpg +0 -0
  131. skin/frontend/base/default/images/smart2pay/methods/ideal.jpg +0 -0
  132. skin/frontend/base/default/images/smart2pay/methods/ideal_grey.jpg +0 -0
  133. skin/frontend/base/default/images/smart2pay/methods/maestro.jpg +0 -0
  134. skin/frontend/base/default/images/smart2pay/methods/maestro_grey.jpg +0 -0
  135. skin/frontend/base/default/images/smart2pay/methods/mandiri.gif +0 -0
  136. skin/frontend/base/default/images/smart2pay/methods/mandiri_grey.gif +0 -0
  137. skin/frontend/base/default/images/smart2pay/methods/mastercard.jpg +0 -0
  138. skin/frontend/base/default/images/smart2pay/methods/mastercard_grey.jpg +0 -0
  139. skin/frontend/base/default/images/smart2pay/methods/maybank2u.gif +0 -0
  140. skin/frontend/base/default/images/smart2pay/methods/maybank2u_grey.gif +0 -0
  141. skin/frontend/base/default/images/smart2pay/methods/mazooma.gif +0 -0
  142. skin/frontend/base/default/images/smart2pay/methods/mazooma_grey.gif +0 -0
  143. skin/frontend/base/default/images/smart2pay/methods/megafon.jpg +0 -0
  144. skin/frontend/base/default/images/smart2pay/methods/megafon_v1.gif +0 -0
  145. skin/frontend/base/default/images/smart2pay/methods/megafon_v1_grey.gif +0 -0
  146. skin/frontend/base/default/images/smart2pay/methods/megafon_v2.gif +0 -0
  147. skin/frontend/base/default/images/smart2pay/methods/megafon_v2_grey.gif +0 -0
  148. skin/frontend/base/default/images/smart2pay/methods/meps_cash.gif +0 -0
  149. skin/frontend/base/default/images/smart2pay/methods/meps_cash_grey.gif +0 -0
  150. skin/frontend/base/default/images/smart2pay/methods/mercadopago.jpg +0 -0
  151. skin/frontend/base/default/images/smart2pay/methods/mercadopago_grey.jpg +0 -0
  152. skin/frontend/base/default/images/smart2pay/methods/mobile_money.gif +0 -0
  153. skin/frontend/base/default/images/smart2pay/methods/mobile_money_grey.gif +0 -0
  154. skin/frontend/base/default/images/smart2pay/methods/moneta.gif +0 -0
  155. skin/frontend/base/default/images/smart2pay/methods/moneta_grey.gif +0 -0
  156. skin/frontend/base/default/images/smart2pay/methods/moneta_v2.gif +0 -0
  157. skin/frontend/base/default/images/smart2pay/methods/moneta_v2_grey.gif +0 -0
  158. skin/frontend/base/default/images/smart2pay/methods/mozca.jpg +0 -0
  159. skin/frontend/base/default/images/smart2pay/methods/mozca_grey.jpg +0 -0
  160. skin/frontend/base/default/images/smart2pay/methods/mrcash.gif +0 -0
  161. skin/frontend/base/default/images/smart2pay/methods/mrcash_grey.gif +0 -0
  162. skin/frontend/base/default/images/smart2pay/methods/mts.gif +0 -0
  163. skin/frontend/base/default/images/smart2pay/methods/mts_grey.gif +0 -0
  164. skin/frontend/base/default/images/smart2pay/methods/onecard.gif +0 -0
  165. skin/frontend/base/default/images/smart2pay/methods/onecard_grey.gif +0 -0
  166. skin/frontend/base/default/images/smart2pay/methods/p24.gif +0 -0
  167. skin/frontend/base/default/images/smart2pay/methods/p24_grey.gif +0 -0
  168. skin/frontend/base/default/images/smart2pay/methods/pagtotal.jpg +0 -0
  169. skin/frontend/base/default/images/smart2pay/methods/pagtotal_grey.jpg +0 -0
  170. skin/frontend/base/default/images/smart2pay/methods/payeasy.gif +0 -0
  171. skin/frontend/base/default/images/smart2pay/methods/payeasy_grey.gif +0 -0
  172. skin/frontend/base/default/images/smart2pay/methods/payment_in_cash.gif +0 -0
  173. skin/frontend/base/default/images/smart2pay/methods/payment_in_cash_grey.gif +0 -0
  174. skin/frontend/base/default/images/smart2pay/methods/payment_references.gif +0 -0
  175. skin/frontend/base/default/images/smart2pay/methods/payment_references_grey.gif +0 -0
  176. skin/frontend/base/default/images/smart2pay/methods/paypal.jpg +0 -0
  177. skin/frontend/base/default/images/smart2pay/methods/paypal_grey.jpg +0 -0
  178. skin/frontend/base/default/images/smart2pay/methods/paysafecard.gif +0 -0
  179. skin/frontend/base/default/images/smart2pay/methods/paysafecard_grey.gif +0 -0
  180. skin/frontend/base/default/images/smart2pay/methods/paysbuy.gif +0 -0
  181. skin/frontend/base/default/images/smart2pay/methods/paysbuy_grey.gif +0 -0
  182. skin/frontend/base/default/images/smart2pay/methods/poli.gif +0 -0
  183. skin/frontend/base/default/images/smart2pay/methods/poli_grey.gif +0 -0
  184. skin/frontend/base/default/images/smart2pay/methods/poli_v2.gif +0 -0
  185. skin/frontend/base/default/images/smart2pay/methods/poli_v2_grey.gif +0 -0
  186. skin/frontend/base/default/images/smart2pay/methods/pse.gif +0 -0
  187. skin/frontend/base/default/images/smart2pay/methods/pse_grey.gif +0 -0
  188. skin/frontend/base/default/images/smart2pay/methods/qiwi_wallet.gif +0 -0
  189. skin/frontend/base/default/images/smart2pay/methods/qiwi_wallet_grey.gif +0 -0
  190. skin/frontend/base/default/images/smart2pay/methods/qiwi_wallet_v2.gif +0 -0
  191. skin/frontend/base/default/images/smart2pay/methods/qiwi_wallet_v2_grey.gif +0 -0
  192. skin/frontend/base/default/images/smart2pay/methods/rhb.gif +0 -0
  193. skin/frontend/base/default/images/smart2pay/methods/rhb_grey.gif +0 -0
  194. skin/frontend/base/default/images/smart2pay/methods/secure_vault.gif +0 -0
  195. skin/frontend/base/default/images/smart2pay/methods/secure_vault_grey.gif +0 -0
  196. skin/frontend/base/default/images/smart2pay/methods/sibs_mb.gif +0 -0
  197. skin/frontend/base/default/images/smart2pay/methods/sibs_mb_grey.gif +0 -0
  198. skin/frontend/base/default/images/smart2pay/methods/sorocred.jpg +0 -0
  199. skin/frontend/base/default/images/smart2pay/methods/sorocred_grey.jpg +0 -0
  200. skin/frontend/base/default/images/smart2pay/methods/sparda.jpg +0 -0
  201. skin/frontend/base/default/images/smart2pay/methods/sparda_grey.jpg +0 -0
  202. skin/frontend/base/default/images/smart2pay/methods/svp_grey.png +0 -0
  203. skin/frontend/base/default/images/smart2pay/methods/todito_cash.gif +0 -0
  204. skin/frontend/base/default/images/smart2pay/methods/todito_cash_grey.gif +0 -0
  205. skin/frontend/base/default/images/smart2pay/methods/ukash.gif +0 -0
  206. skin/frontend/base/default/images/smart2pay/methods/ukash_grey.gif +0 -0
  207. skin/frontend/base/default/images/smart2pay/methods/umb.gif +0 -0
  208. skin/frontend/base/default/images/smart2pay/methods/umb_grey.gif +0 -0
  209. skin/frontend/base/default/images/smart2pay/methods/visa.jpg +0 -0
  210. skin/frontend/base/default/images/smart2pay/methods/visa_electron.jpg +0 -0
  211. skin/frontend/base/default/images/smart2pay/methods/visa_electron_grey.jpg +0 -0
  212. skin/frontend/base/default/images/smart2pay/methods/visa_grey.jpg +0 -0
  213. skin/frontend/base/default/images/smart2pay/methods/volksbank.jpg +0 -0
  214. skin/frontend/base/default/images/smart2pay/methods/volksbank_grey.jpg +0 -0
  215. skin/frontend/base/default/images/smart2pay/methods/web_cash.gif +0 -0
  216. skin/frontend/base/default/images/smart2pay/methods/web_cash_grey.gif +0 -0
  217. skin/frontend/base/default/images/smart2pay/methods/webmoney.jpg +0 -0
  218. skin/frontend/base/default/images/smart2pay/methods/webmoney_v1.gif +0 -0
  219. skin/frontend/base/default/images/smart2pay/methods/webmoney_v1_grey.gif +0 -0
  220. skin/frontend/base/default/images/smart2pay/methods/webtopay_v3.gif +0 -0
  221. skin/frontend/base/default/images/smart2pay/methods/webtopay_v3_grey.gif +0 -0
  222. skin/frontend/base/default/images/smart2pay/methods/yandex_money.gif +0 -0
  223. skin/frontend/base/default/images/smart2pay/methods/yandex_money_grey.gif +0 -0
app/code/community/Smart2pay/Globalpay/Block/Info.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Smart2Pay_Globalpay_Block_Info extends Mage_Core_Block_Template
4
+ {
5
+ public $message;
6
+
7
+ public function __construct()
8
+ {
9
+ $this->message = $this->getMessage();
10
+ parent::__construct();
11
+ }
12
+
13
+ private function getMessage()
14
+ {
15
+ /**@var $paymethod Smart2Pay_Globalpay_Model_Paymethod*/
16
+ $paymethod = Mage::getModel('globalpay/pay');
17
+ $query = $this->getRequest()->getQuery();
18
+ $data = $query['data'];
19
+
20
+ if (in_array($data, array(2, 3, 4, 7))) {
21
+ return $paymethod->method_config['message_data_' . $data];
22
+ } else {
23
+ return $paymethod->method_config['message_data_7'];
24
+ }
25
+ }
26
+ }
app/code/community/Smart2pay/Globalpay/Block/Paymethod/Form.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Smart2Pay_Globalpay_Block_Paymethod_Form extends Mage_Payment_Block_Form {
4
+
5
+ public $method_config = array();
6
+
7
+ protected function _construct() {
8
+ parent::_construct();
9
+ // set template
10
+ $this->setTemplate('smart2pay/globalpay/paymethod/form.phtml');
11
+ // set method config
12
+ $this->method_config = Mage::getModel('globalpay/pay')->method_config;
13
+ }
14
+
15
+ public function getPaymentMethods(){
16
+ $pay_method = Mage::getModel('globalpay/pay');
17
+ $chkout = Mage::getSingleton('checkout/session');
18
+ $quote = $chkout->getQuote();
19
+ $billingAddress = $quote->getBillingAddress();
20
+ $countryCode = $billingAddress->getCountryId();
21
+ $countryId = Mage::getModel('globalpay/country')->load($countryCode, 'code')->getId();
22
+ $collection = Mage::getModel('globalpay/countrymethod')->getCollection();
23
+ $collection->addFieldToSelect('*');
24
+ $collection->addFieldToFilter('country_id', array(
25
+ 'in' => array($countryId)
26
+ ));
27
+ $collection->addFieldToFilter('s2p_gp_methods.method_id', array(
28
+ 'in' => explode(",", $pay_method->method_config['methods'])
29
+ ));
30
+ $collection->addFieldToFilter('active', array(
31
+ 'in' => array(1)
32
+ ));
33
+ $collection->getSelect()->join(
34
+ 's2p_gp_methods',
35
+ 's2p_gp_methods.method_id = main_table.method_id'
36
+ );
37
+ $collection->setOrder('priority', 'ASC');
38
+ return $collection->getData();
39
+ }
40
+ }
41
+
42
+ ?>
app/code/community/Smart2pay/Globalpay/Block/Paymethod/Sendform.php ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smart2Pay_Globalpay_Block_Paymethod_Sendform extends Mage_Core_Block_Template{
3
+ public $form_data;
4
+ public $message_to_hash;
5
+ public $hash;
6
+
7
+ public function __construct() {
8
+ parent::__construct();
9
+
10
+ /** @var Mage_Sales_Model_Order $order */
11
+ $paymentModel = Mage::getModel('globalpay/pay');
12
+ $order_id = Mage::getSingleton('checkout/session')->getLastOrderId();
13
+ $order = Mage::getModel('sales/order');
14
+ $order->load($order_id);
15
+ $order_id = $order->getRealOrderId();
16
+
17
+ // FORM DATA
18
+ $this->form_data = $paymentModel->method_config;
19
+ $this->form_data['method_id'] = $_SESSION['globalpay_method'];
20
+ $this->form_data['order_id'] = $order_id;
21
+ $this->form_data['currency'] = $order->getOrderCurrency()->getCurrencyCode();
22
+ $this->form_data['amount'] = number_format($order->getGrandTotal(), 2)*100;
23
+ $this->form_data['customer_name'] = $order->getCustomerName();
24
+ $this->form_data['customer_email'] = $order->getCustomerEmail();
25
+ $this->form_data['country'] = $order->getBillingAddress()->getCountry();
26
+
27
+ $messageToHash = 'MerchantID'.$this->form_data['mid']
28
+ .'MerchantTransactionID'.$this->form_data['order_id']
29
+ .'Amount'.$this->form_data['amount']
30
+ .'Currency'.$this->form_data['currency']
31
+ .'ReturnURL'.$this->form_data['return_url']
32
+ .'IncludeMethodIDs'.$this->form_data['methods'];
33
+
34
+ if($this->form_data['send_customer_name'])
35
+ $messageToHash .= "CustomerName".$this->form_data['customer_name'];
36
+ if($this->form_data['send_customer_email'])
37
+ $messageToHash .= "CustomerEmail".$this->form_data['customer_email'];
38
+ if($this->form_data['send_country'])
39
+ $messageToHash .= "Country".$this->form_data['country'];
40
+ if($this->form_data['send_payment_method']){
41
+ $messageToHash .= "MethodID".$this->form_data['method_id'];
42
+ }
43
+
44
+ if($this->form_data['send_product_description']){
45
+ if($this->form_data['product_description_ref']){
46
+ $messageToHash .= "Description"."Ref. no.: ".$this->form_data['order_id'];
47
+ }
48
+ else{
49
+ $messageToHash .= "Description".$this->form_data['product_description_custom'];
50
+ }
51
+ }
52
+ if($this->form_data['skip_payment_page']){
53
+ if(!in_array($this->form_data['method_id'], array(1, 20))){
54
+ $messageToHash .= "SkipHpp1";
55
+ }
56
+ }
57
+ if($this->form_data['redirect_in_iframe']){
58
+ $messageToHash .= "RedirectInIframe1";
59
+ }
60
+ if($this->form_data['skin_id']){
61
+ $messageToHash .= "SkinID".$this->form_data['skin_id'];
62
+ }
63
+
64
+ $messageToHash .= $this->form_data['signature'];
65
+
66
+ $this->form_data['hash'] = Mage::helper('globalpay/helper')->computeSHA256Hash($messageToHash);
67
+
68
+ //
69
+ $this->message_to_hash = $messageToHash;
70
+ $this->hash = $this->form_data['hash'];
71
+ //
72
+ }
73
+ }
74
+ ?>
app/code/community/Smart2pay/Globalpay/Helper/Data.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Smart2Pay_Globalpay_Helper_Data extends Mage_Payment_Helper_Data
4
+ {
5
+
6
+ // public function log($logString){
7
+ // $myFile = Mage::getStoreConfig('payment/hpp/logfile');
8
+ // $fh = fopen($myFile, 'a');
9
+ // $time = date('d/m/Y G:i:s', time());
10
+ // fwrite($fh, $time.":".$logString . "\n");
11
+ // fclose($fh);
12
+ //
13
+ // }
14
+ //
15
+ //
16
+ // public function parseResponse($response) {
17
+ // $vars = array();
18
+ // if(!empty($response)){
19
+ // $pairs = explode("&", $response);
20
+ // foreach ($pairs as $pair) {
21
+ // $nv = explode("=", $pair);
22
+ // $name = $nv[0];
23
+ // $vars[$name] = $nv[1];
24
+ // }
25
+ // }
26
+ //
27
+ // return $vars;
28
+ // }
29
+
30
+ public function computeSHA256Hash($message){
31
+ return hash("sha256", strtolower($message));
32
+ }
33
+
34
+ // public function getSignature(){
35
+ // return Mage::getModel('Smart2Pay_HPP_Model_PaymentMethod')->getConfigData('secretwordt');
36
+ // }
37
+ }
app/code/community/Smart2pay/Globalpay/Helper/Helper.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smart2Pay_Globalpay_Helper_Helper{
3
+ public function computeSHA256Hash($message){
4
+ //echo strtolower($message);
5
+ //die();
6
+ return hash("sha256", strtolower($message));
7
+ }
8
+ }
9
+ ?>
app/code/community/Smart2pay/Globalpay/Model/Country.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smart2Pay_Globalpay_Model_Country extends Mage_Core_Model_Abstract
3
+ {
4
+ protected $_resourceCollectionName = 'globalpay/country_collection';
5
+
6
+ protected function _construct()
7
+ {
8
+ $this->_init('globalpay/country');
9
+ }
10
+ }
11
+ ?>
app/code/community/Smart2pay/Globalpay/Model/Countrymethod.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smart2Pay_Globalpay_Model_Countrymethod extends Mage_Core_Model_Abstract
3
+ {
4
+ protected $_resourceCollectionName = 'globalpay/countrymethod_collection';
5
+
6
+ protected function _construct()
7
+ {
8
+ $this->_init('globalpay/countrymethod');
9
+ }
10
+ }
11
+ ?>
app/code/community/Smart2pay/Globalpay/Model/GlobalpayLog.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Smart2Pay_GlobalPay_Model_GlobalpayLog extends Mage_Core_Model_Abstract {
4
+
5
+ }
6
+
7
+ ?>
app/code/community/Smart2pay/Globalpay/Model/Logger.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Smart2Pay_Globalpay_Model_Logger extends Mage_Core_Model_Abstract
4
+ {
5
+ /**
6
+ * Todo:
7
+ * - set loggin true/false
8
+ * - set log_type logged
9
+ */
10
+
11
+ protected $_resourceCollectionName = 'globalpay/logger_collection';
12
+
13
+ protected function _construct()
14
+ {
15
+ $this->_init('globalpay/logger');
16
+ }
17
+
18
+ public function write($message = '', $type = 'info', $file = '', $line = '') {
19
+ try {
20
+ $conn = Mage::getSingleton('core/resource')->getConnection('core_write');
21
+
22
+ $backtrace = debug_backtrace();
23
+ $file = $backtrace[0]['file'];
24
+ $line = $backtrace[0]['line'];
25
+
26
+ $query = 'INSERT INTO s2p_gp_logs
27
+ (log_message, log_type, log_source_file, log_source_file_line)
28
+ VALUES
29
+ (\'' . $message . '\', \'' . $type . '\', \'' . $file . '\', \'' . $line . '\')
30
+ ';
31
+ $conn->query($query);
32
+ } catch (Exception $e) {
33
+ Zend_Debug::dump($e->getMessage());
34
+ die;
35
+ }
36
+ }
37
+
38
+ }
app/code/community/Smart2pay/Globalpay/Model/Method.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smart2Pay_Globalpay_Model_Method extends Mage_Core_Model_Abstract
3
+ {
4
+ protected $_resourceCollectionName = 'globalpay/method_collection';
5
+
6
+ protected function _construct()
7
+ {
8
+ $this->_init('globalpay/method');
9
+ }
10
+
11
+ }
12
+ ?>
app/code/community/Smart2pay/Globalpay/Model/Pay.php ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smart2Pay_Globalpay_Model_Pay extends Mage_Payment_Model_Method_Abstract
3
+ {
4
+ protected $_code = 'globalpay';
5
+
6
+ protected $_formBlockType = 'globalpay/paymethod_form';
7
+
8
+ // method config
9
+ public $method_config = array();
10
+
11
+ public function __construct() {
12
+ parent::__construct();
13
+ // get environment type
14
+ $environment = $this->getConfigData('environment'); // [test | live]
15
+ // get config
16
+ $this->method_config = array(
17
+ 'post_url' => $this->getConfigData('post_url_'.$environment),
18
+ 'signature' => $this->getConfigData('signature_'.$environment),
19
+ 'mid' => $this->getConfigData('mid_'.$environment),
20
+ 'return_url' => $this->getConfigData('return_url'),
21
+ 'methods' => $this->getConfigData('methods'),
22
+ 'methods_display_mode' => $this->getConfigData('methods_display_mode'),
23
+ 'show_text_img' => $this->getConfigData('show_text_img'),
24
+ 'show_methods_in_grid' => $this->getConfigData('show_methods_in_grid'),
25
+ 'grid_column_number' => $this->getConfigData('grid_column_number'),
26
+ 'autoselect_s2p' => $this->getConfigData('autoselect_s2p'),
27
+ 'send_customer_email' => $this->getConfigData('send_customer_email'),
28
+ 'send_customer_name' => $this->getConfigData('send_customer_name'),
29
+ 'send_country' => $this->getConfigData('send_country'),
30
+ 'send_payment_method' => $this->getConfigData('send_payment_method'),
31
+ 'send_product_description' => $this->getConfigData('send_product_description'),
32
+ 'product_description_ref' => $this->getConfigData('product_description_ref'),
33
+ 'product_description_custom' => $this->getConfigData('product_description_custom'),
34
+ 'skip_payment_page' => $this->getConfigData('skip_payment_page'),
35
+ 'debug_form' => $this->getConfigData('debug_form'),
36
+ 'redirect_in_iframe' => $this->getConfigData('redirect_in_iframe'),
37
+ 'skin_id' => $this->getConfigData('skin_id'),
38
+ 'message_data_2' => $this->getConfigData('message_data_2'),
39
+ 'message_data_3' => $this->getConfigData('message_data_3'),
40
+ 'message_data_4' => $this->getConfigData('message_data_4'),
41
+ 'message_data_7' => $this->getConfigData('message_data_7'),
42
+ 'order_status' => $this->getConfigData('order_status'),
43
+ 'order_status_on_2' => $this->getConfigData('order_status_on_2'),
44
+ 'order_status_on_3' => $this->getConfigData('order_status_on_3'),
45
+ 'order_status_on_4' => $this->getConfigData('order_status_on_4'),
46
+ 'order_status_on_5' => $this->getConfigData('order_status_on_5'),
47
+ 'auto_invoice' => $this->getConfigData('auto_invoice'),
48
+ 'auto_ship' => $this->getConfigData('auto_ship'),
49
+ 'notify_customer' => $this->getConfigData('notify_customer'),
50
+ );
51
+ }
52
+
53
+ public function assignData($data)
54
+ {
55
+ if (!($data instanceof Varien_Object)) {
56
+ $data = new Varien_Object($data);
57
+ }
58
+ $_SESSION['globalpay_method'] = $data->getMethodId();
59
+ }
60
+
61
+ public function getOrderPlaceRedirectUrl()
62
+ {
63
+ $_SESSION['s2p_handle_payment'] = true;
64
+ return Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB)."globalpay/";
65
+ }
66
+ }
67
+ ?>
app/code/community/Smart2pay/Globalpay/Model/Resource/Country.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smart2Pay_Globalpay_Model_Resource_Country extends Mage_Core_Model_Resource_Db_Abstract {
3
+
4
+ protected function _construct() {
5
+ $this->_init('globalpay/country', 'country_id');
6
+ }
7
+
8
+ }
9
+ ?>
app/code/community/Smart2pay/Globalpay/Model/Resource/Country/Collection.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smart2Pay_Globalpay_Model_Resource_Country_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract {
3
+
4
+ protected function _construct() {
5
+ $this->_init('globalpay/country');
6
+ }
7
+
8
+ }
app/code/community/Smart2pay/Globalpay/Model/Resource/Countrymethod.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smart2Pay_Globalpay_Model_Resource_Countrymethod extends Mage_Core_Model_Resource_Db_Abstract {
3
+
4
+ protected function _construct() {
5
+ $this->_init('globalpay/countrymethod', 'countrymethod_id');
6
+ }
7
+
8
+ }
9
+ ?>
app/code/community/Smart2pay/Globalpay/Model/Resource/Countrymethod/Collection.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smart2Pay_Globalpay_Model_Resource_Countrymethod_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract {
3
+
4
+ protected function _construct() {
5
+ $this->_init('globalpay/countrymethod');
6
+ }
7
+
8
+ }
9
+ ?>
app/code/community/Smart2pay/Globalpay/Model/Resource/Logger.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smart2Pay_Globalpay_Model_Resource_Logger extends Mage_Core_Model_Resource_Db_Abstract {
3
+
4
+ protected function _construct() {
5
+ $this->_init('globalpay/logger', 'logger_id');
6
+ }
7
+
8
+ }
9
+ ?>
app/code/community/Smart2pay/Globalpay/Model/Resource/Logger/Collection.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smart2Pay_Globalpay_Model_Resource_Logger_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract {
3
+
4
+ protected function _construct() {
5
+ $this->_init('globalpay/logger');
6
+ }
7
+
8
+ }
9
+ ?>
app/code/community/Smart2pay/Globalpay/Model/Resource/Method.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smart2Pay_Globalpay_Model_Resource_Method extends Mage_Core_Model_Resource_Db_Abstract {
3
+
4
+ protected function _construct() {
5
+ $this->_init('globalpay/method', 'method_id');
6
+ }
7
+
8
+ }
9
+ ?>
app/code/community/Smart2pay/Globalpay/Model/Resource/Method/Collection.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smart2Pay_Globalpay_Model_Resource_Method_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract {
3
+
4
+ protected function _construct() {
5
+ $this->_init('globalpay/method');
6
+ }
7
+
8
+ }
app/code/community/Smart2pay/Globalpay/Model/Resource/Setup.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ class Smart2Pay_Globalpay_Model_Resource_Setup extends Mage_Core_Model_Resource_Setup {
3
+
4
+ }
5
+ ?>
app/code/community/Smart2pay/Globalpay/Model/Source/Displaymodes.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Smart2Pay_Globalpay_Model_Source_Displaymodes
4
+ {
5
+
6
+ /**
7
+ * Options getter
8
+ *
9
+ * @return array
10
+ */
11
+ public function toOptionArray()
12
+ {
13
+ return array(
14
+ array('value' => 'logo', 'label' => 'Logo'),
15
+ array('value' => 'text', 'label' => 'Text'),
16
+ array('value' => 'both', 'label' => 'Logo and Text'),
17
+ );
18
+ }
19
+
20
+ /**
21
+ * Get options in "key-value" format
22
+ *
23
+ * @return array
24
+ */
25
+ public function toArray()
26
+ {
27
+ return array(
28
+ 'logo' => 'Logo',
29
+ 'text' => 'Text',
30
+ 'both' => 'Loto and Text'
31
+ );
32
+ }
33
+
34
+ }
app/code/community/Smart2pay/Globalpay/Model/Source/Methods.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smart2Pay_Globalpay_Model_Source_Methods{
3
+
4
+ public $methods = array();
5
+
6
+
7
+ public function __construct() {
8
+ $methods = Mage::getModel('globalpay/method')->getCollection()->toArray();
9
+ foreach($methods['items'] as $item){
10
+ $this->methods[$item['method_id']] = $item['display_name'];
11
+ }
12
+ }
13
+
14
+
15
+ /**
16
+ * Options getter
17
+ *
18
+ * @return array
19
+ */
20
+ public function toOptionArray()
21
+ {
22
+ /*
23
+ return array(
24
+ array('value' => 'test', 'label' => 'Test'),
25
+ array('value' => 'live', 'label' => 'Live'),
26
+ );
27
+ *
28
+ */
29
+ $to_return = array();
30
+ foreach($this->methods as $value => $label){
31
+ array_push($to_return, array('value' => $value, 'label' => $label));
32
+ }
33
+ return $to_return;
34
+ }
35
+
36
+ /**
37
+ * Get options in "key-value" format
38
+ *
39
+ * @return array
40
+ */
41
+ public function toArray()
42
+ {
43
+ return $this->methods;
44
+ }
45
+ }
46
+ ?>
app/code/community/Smart2pay/Globalpay/Model/Source/Testlive.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smart2Pay_Globalpay_Model_Source_Testlive
3
+ {
4
+
5
+ /**
6
+ * Options getter
7
+ *
8
+ * @return array
9
+ */
10
+ public function toOptionArray()
11
+ {
12
+ return array(
13
+ array('value' => 'test', 'label' => 'Test'),
14
+ array('value' => 'live', 'label' => 'Live'),
15
+ );
16
+ }
17
+
18
+ /**
19
+ * Get options in "key-value" format
20
+ *
21
+ * @return array
22
+ */
23
+ public function toArray()
24
+ {
25
+ return array(
26
+ 'test' => 'Test',
27
+ 'live' => 'Live',
28
+ );
29
+ }
30
+
31
+ }
app/code/community/Smart2pay/Globalpay/controllers/IndexController.php ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smart2pay_Globalpay_IndexController extends Mage_Core_Controller_Front_Action{
3
+
4
+ const XML_PATH_EMAIL_PAYMENT_CONFIRMATION = 'payment/globalpay/payment_confirmation_template';
5
+
6
+ /**
7
+ * Loads s2p in iFrame
8
+ * If !isset($_SESSION['s2p_handle_payment']) redirect to cart/checkout
9
+ */
10
+ public function indexAction()
11
+ {
12
+ // check if there is an submited order and a
13
+ if(isset($_SESSION['s2p_handle_payment'])){
14
+ unset($_SESSION['s2p_handle_payment']);
15
+ $this->loadLayout();
16
+ $this->renderLayout();
17
+ }
18
+ else{
19
+ $this->_redirectUrl(Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK) . 'checkout/cart/');
20
+ }
21
+ }
22
+
23
+ /**
24
+ * Process s2p response
25
+ * Expected response content: {"NotificationType":"payment","MethodID":"27","PaymentID":"18899","MerchantTransactionID":"926927","StatusID":"2","Amount":"100","Currency":"EUR","Hash":"fb9810cb1ac334092aa1f3033be20127676244b343f1ef2ffb447b9a8ced04ba"}
26
+ */
27
+ public function handleResponseAction()
28
+ {
29
+ Mage::getModel('globalpay/logger')->write('>>> START HANDLE RESPONSE :::', 'info');
30
+
31
+ // get assets
32
+ /* @var Mage_Sales_Model_Order $order
33
+ * @var Smart2Pay_Globalpay_Model_Pay $payMethod
34
+ */
35
+ $s2pHelper = Mage::helper('globalpay/helper');
36
+ $payMethod = Mage::getModel('globalpay/pay');
37
+ $order = Mage::getModel('sales/order');
38
+
39
+ try {
40
+ parse_str(file_get_contents("php://input"), $response);
41
+ $recomposedHashString = "NotificationType" . $response['NotificationType'] . "MethodID".$response['MethodID']."PaymentID".$response['PaymentID']."MerchantTransactionID".$response['MerchantTransactionID']."StatusID".$response['StatusID']."Amount".$response['Amount']."Currency".$response['Currency'].$payMethod->method_config['signature'];
42
+
43
+ Mage::getModel('globalpay/logger')->write('StatusID = ' . $response['StatusID'], 'info');
44
+ Mage::getModel('globalpay/logger')->write('MerchantTransactionID = ' . $response['MerchantTransactionID'], 'info');
45
+
46
+ // Message is intact
47
+ if($s2pHelper->computeSHA256Hash($recomposedHashString) == $response['Hash']){
48
+
49
+ Mage::getModel('globalpay/logger')->write('Hashes match', 'info');
50
+
51
+ $order->loadByIncrementId($response['MerchantTransactionID']);
52
+
53
+ /**
54
+ * Check status ID
55
+ */
56
+ switch($response['StatusID']){
57
+ // Status = success
58
+ case "2":
59
+ $order->addStatusHistoryComment('Smart2Pay :: order has been paid.', $payMethod->method_config['order_status_on_2']);
60
+ if ($payMethod->method_config['auto_invoice']) {
61
+ // Create and pay Order Invoice
62
+ if($order->canInvoice()) {
63
+ $invoice = Mage::getModel('sales/service_order', $order)->prepareInvoice();
64
+ $invoice->setRequestedCaptureCase(Mage_Sales_Model_Order_Invoice::CAPTURE_OFFLINE);
65
+ $invoice->register();
66
+ $transactionSave = Mage::getModel('core/resource_transaction')
67
+ ->addObject($invoice)
68
+ ->addObject($invoice->getOrder());
69
+ $transactionSave->save();
70
+ $order->addStatusHistoryComment('Smart2Pay :: order has been automatically invoiced.', $payMethod->method_config['order_status_on_2']);
71
+ } else {
72
+ Mage::getModel('globalpay/logger')->write('Order can not be invoiced', 'warning');
73
+ }
74
+ }
75
+ if ($payMethod->method_config['auto_ship']) {
76
+ if ($order->canShip()) {
77
+ $itemQty = $order->getItemsCollection()->count();
78
+ $shipment = Mage::getModel('sales/service_order', $order)->prepareShipment($itemQty);
79
+ $shipment = new Mage_Sales_Model_Order_Shipment_Api();
80
+ $shipmentId = $shipment->create($order->getIncrementId());
81
+ $order->addStatusHistoryComment('Smart2Pay :: order has been automatically shipped.', $payMethod->method_config['order_status_on_2']);
82
+ } else {
83
+ Mage::getModel('globalpay/logger')->write('Order can not be shipped', 'warning');
84
+ }
85
+ }
86
+ if ($payMethod->method_config['notify_customer']) {
87
+ // Inform customer
88
+ $this->informCustomer($order, $response['Amount'], $response['Currency']);
89
+ }
90
+ break;
91
+ // Status = canceled
92
+ case 3:
93
+ $order->addStatusHistoryComment('Smart2Pay :: order payment has been canceled.', $payMethod->method_config['order_status_on_3']);
94
+ if ($order->canCancel()) {
95
+ $order->cancel();
96
+ } else {
97
+ Mage::getModel('globalpay/logger')->write('Can not cancel the order', 'warning');
98
+ }
99
+ break;
100
+ // Status = failed
101
+ case 4:
102
+ $order->addStatusHistoryComment('Smart2Pay :: order payment has failed.', $payMethod->method_config['order_status_on_4']);
103
+ break;
104
+ // Status = expired
105
+ case 5:
106
+ $order->addStatusHistoryComment('Smart2Pay :: order payment has expired.', $payMethod->method_config['order_status_on_5']);
107
+ break;
108
+
109
+ default:
110
+ $order->addStatusHistoryComment('Smart2Pay status "'.$response['StatusID'].'" occurred.', $payMethod->method_config['order_status']);
111
+ break;
112
+ }
113
+
114
+ $order->save();
115
+
116
+ // NotificationType IS payment
117
+ if(strtolower($response['NotificationType']) == 'payment'){
118
+ // prepare string for 'da hash
119
+ $responseHashString = "notificationTypePaymentPaymentId".$response['PaymentID'].$payMethod->method_config['signature'];
120
+ // prepare response data
121
+ $responseData = array(
122
+ 'NotificationType' => 'Payment',
123
+ 'PaymentID' => $response['PaymentID'],
124
+ 'Hash' => $s2pHelper->computeSHA256Hash($responseHashString)
125
+ );
126
+ // output response
127
+ echo "NotificationType=payment&PaymentID=".$responseData['PaymentID']."&Hash=".$responseData['Hash'];
128
+ }
129
+ }
130
+ else{
131
+ Mage::getModel('globalpay/logger')->write('Hashes do not match (received:' . $response['Hash'] . ')(recomposed:' . $s2pHelper->computeSHA256Hash($recomposedHashString) . ')', 'warning');
132
+ }
133
+ } catch (Exception $e) {
134
+ Mage::getModel('globalpay/logger')->write($e->getMessage(), 'exception');
135
+ }
136
+ Mage::getModel('globalpay/logger')->write('::: END HANDLE RESPONSE <<<', 'info');
137
+ }
138
+
139
+ public function informCustomer(Mage_Sales_Model_Order $order, $amount, $currency)
140
+ {
141
+ try{
142
+ /** @var $order Mage_Sales_Model_Order */
143
+ /**
144
+ * get data for template
145
+ */
146
+ $siteUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
147
+ $siteName = Mage::app()->getWebsite(1)->getName();
148
+
149
+ $subject = $siteName." - Payment confirmation";
150
+
151
+ $supportEmail = Mage::getStoreConfig('trans_email/ident_support/email');
152
+ $supportName = Mage::getStoreConfig('trans_email/ident_support/name');
153
+
154
+ $localeCode = Mage::getStoreConfig('general/locale/code', $order->getStoreId());
155
+
156
+ $storeId = Mage::app()->getStore()->getStoreId();
157
+
158
+ $templateId = Mage::getStoreConfig(self::XML_PATH_EMAIL_PAYMENT_CONFIRMATION);
159
+
160
+
161
+ /** @var $mailTemplate Mage_Core_Model_Email_Template */
162
+ $mailTemplate = Mage::getModel('core/email_template');
163
+ if (is_numeric($templateId)) { // loads from database @table core_email_template
164
+ $mailTemplate->load($templateId);
165
+ } else {
166
+ $mailTemplate->loadDefault($templateId, $localeCode);
167
+ }
168
+
169
+ $mailTemplate->setSenderName($supportName);
170
+ $mailTemplate->setSenderEmail($supportEmail);
171
+ $mailTemplate->setTemplateSubject('Payment Confirmation');
172
+ $mailTemplate->setTemplateSubject($subject);
173
+
174
+ $mailTemplate->send($order->getCustomerEmail(), $order->getCustomerName(), array(
175
+ 'site_url' => $siteUrl,
176
+ 'order_increment_id' => $order->getRealOrderId(),
177
+ 'site_name' => $siteName,
178
+ 'customer_name' => $order->getCustomerName(),
179
+ 'order_date' => $order->getCreatedAtDate(),
180
+ 'total_paid' => number_format(($amount / 100), 2),
181
+ 'currency' => $currency,
182
+ 'support_email' => $supportEmail
183
+ )
184
+ );
185
+ } catch (Exception $e) {
186
+ Mage::getModel('globalpay/logger')->write($e->getMessage(), 'exception');
187
+ }
188
+ }
189
+
190
+ public function infoAction()
191
+ {
192
+ $query = $this->getRequest()->getParams();
193
+ if (!isset($query['data'])) {
194
+ $this->_redirectUrl(Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK));
195
+ }
196
+ $this->loadLayout();
197
+ $this->renderLayout();
198
+ }
199
+ }
app/code/community/Smart2pay/Globalpay/controllers/TestsController.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smart2Pay_Globalpay_TestsController extends Mage_Core_Controller_Front_Action
3
+ {
4
+ public function indexAction(){
5
+ $method = Mage::getModel('globalpay/method');
6
+ $collection = $method->getCollection();
7
+ foreach ($collection as $m) {
8
+ echo '"' . $m->getDisplayName() . ' description",' . '"' . htmlspecialchars(str_replace('"', '""', $m->getDescription())) . '"' . '<br />';
9
+ }
10
+ die;
11
+ }
12
+ }
13
+ ?>
app/code/community/Smart2pay/Globalpay/etc/config.xml ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Smart2Pay_Globalpay>
5
+ <version>1.0.1</version>
6
+ </Smart2Pay_Globalpay>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <globalpay>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Smart2Pay_Globalpay</module>
14
+ <frontName>globalpay</frontName>
15
+ </args>
16
+ </globalpay>
17
+ </routers>
18
+ <layout>
19
+ <updates>
20
+ <globalpay>
21
+ <file>globalpay.xml</file>
22
+ </globalpay>
23
+ </updates>
24
+ </layout>
25
+ <translate>
26
+ <modules>
27
+ <Smart2Pay_Globalpay>
28
+ <files>
29
+ <default>Smart2Pay_Globalpay.csv</default>
30
+ </files>
31
+ </Smart2Pay_Globalpay>
32
+ </modules>
33
+ </translate>
34
+ </frontend>
35
+
36
+ <global>
37
+
38
+ <template>
39
+ <email>
40
+ <payment_globalpay_payment_confirmation_template translate="label" module="globalpay">
41
+ <label>Globalpay Confirmation Template</label>
42
+ <file>smart2pay/globalpay/payment_confirmation.html</file>
43
+ <type>html</type>
44
+ </payment_globalpay_payment_confirmation_template>
45
+ </email>
46
+ </template>
47
+
48
+ <resources>
49
+ <globalpay_setup>
50
+ <setup>
51
+ <module>Smart2Pay_Globalpay</module>
52
+ <class>Smart2Pay_Globalpay_Model_Resource_Setup</class>
53
+ </setup>
54
+ </globalpay_setup>
55
+ </resources>
56
+
57
+ <models>
58
+ <globalpay>
59
+ <class>Smart2Pay_Globalpay_Model</class>
60
+ <resourceModel>globalpay_resource</resourceModel>
61
+ </globalpay>
62
+ <globalpay_resource>
63
+ <class>Smart2Pay_Globalpay_Model_Resource</class>
64
+ <entities>
65
+ <country>
66
+ <table>s2p_gp_countries</table>
67
+ </country>
68
+ <method>
69
+ <table>s2p_gp_methods</table>
70
+ </method>
71
+ <countrymethod>
72
+ <table>s2p_gp_countries_methods</table>
73
+ </countrymethod>
74
+ <logger>
75
+ <table>s2p_gp_logs</table>
76
+ </logger>
77
+ </entities>
78
+ </globalpay_resource>
79
+ </models>
80
+ <blocks>
81
+ <globalpay>
82
+ <class>Smart2Pay_Globalpay_Block</class>
83
+ </globalpay>
84
+ </blocks>
85
+ <helpers>
86
+ <globalpay>
87
+ <class>Smart2Pay_Globalpay_Helper</class>
88
+ </globalpay>
89
+ </helpers>
90
+ </global>
91
+ <default>
92
+ <payment>
93
+ <globalpay>
94
+ <active>1</active>
95
+ <model>globalpay/pay</model>
96
+ <order_status>holded</order_status>
97
+ <order_status_on_2>processing</order_status_on_2>
98
+ <order_status_on_3>canceled</order_status_on_3>
99
+ <order_status_on_4>canceled</order_status_on_4>
100
+ <order_status_on_5>canceled</order_status_on_5>
101
+ <title>Alternative payment methods</title>
102
+ <post_url_live>https://api.smart2pay.com</post_url_live>
103
+ <post_url_test>https://apitest.smart2pay.com</post_url_test>
104
+ <methods>1,2,3,4,5,8,9,12,13,14,18,19,20,22,23,24,25,27,28,29,32,33,34,35,36,37,40,42,43,44,46,47,48,49,52,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024</methods>
105
+ <allowspecific>0</allowspecific>
106
+ <autoselect_s2p>1</autoselect_s2p>
107
+ <send_customer_name>1</send_customer_name>
108
+ <send_customer_email>1</send_customer_email>
109
+ <send_country>1</send_country>
110
+ <send_payment_method>1</send_payment_method>
111
+ <send_product_description>1</send_product_description>
112
+ <product_description_ref>1</product_description_ref>
113
+ <skip_payment_page>1</skip_payment_page>
114
+ <debug_form>0</debug_form>
115
+ <grid_column_number>3</grid_column_number>
116
+ <return_url>http://www.example.com/index.php/globalpay/index/info/</return_url>
117
+ <message_data_2>Thank you, the transaction has been processed successfuly. After we receive the final confirmation, we will release the goods.</message_data_2>
118
+ <message_data_4>There was a problem processing your payment. Please try again.</message_data_4>
119
+ <message_data_3>You have canceled the payment.</message_data_3>
120
+ <message_data_7>Thank you, the transaction is pending. After we receive the final confirmation, we will release the goods.</message_data_7>
121
+ </globalpay>
122
+ </payment>
123
+ </default>
124
+ </config>
app/code/community/Smart2pay/Globalpay/etc/system.xml ADDED
@@ -0,0 +1,383 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <sections>
4
+ <payment>
5
+ <groups>
6
+ <globalpay translate="label" module="paygate">
7
+ <label>Smart2Pay Payment Module</label>
8
+ <sort_order>670</sort_order>
9
+ <show_in_default>1</show_in_default>
10
+ <show_in_website>1</show_in_website>
11
+ <show_in_store>1</show_in_store>
12
+ <fields>
13
+ <active translate="label">
14
+ <label>Enabled</label>
15
+ <frontend_type>select</frontend_type>
16
+ <source_model>adminhtml/system_config_source_yesno</source_model>
17
+ <sort_order>0</sort_order>
18
+ <show_in_default>1</show_in_default>
19
+ <show_in_website>1</show_in_website>
20
+ <show_in_store>0</show_in_store>
21
+ </active>
22
+ <environment translate="label">
23
+ <label><![CDATA[<b>&raquo; Environment</b>]]> </label>
24
+ <frontend_type>select</frontend_type>
25
+ <source_model>globalpay/source_testlive</source_model>
26
+ <sort_order>1</sort_order>
27
+ <show_in_default>1</show_in_default>
28
+ <show_in_website>1</show_in_website>
29
+ <show_in_store>0</show_in_store>
30
+ </environment>
31
+ <post_url_live translate="label">
32
+ <label><![CDATA[<b>&raquo; Post URL Live</b>]]></label>
33
+ <comment></comment>
34
+ <frontend_type>text</frontend_type>
35
+ <sort_order>2</sort_order>
36
+ <show_in_default>1</show_in_default>
37
+ <show_in_website>1</show_in_website>
38
+ <show_in_store>0</show_in_store>
39
+ </post_url_live>
40
+ <post_url_test translate="label">
41
+ <label><![CDATA[<b>&raquo; Post URL Test</b>]]></label>
42
+ <comment></comment>
43
+ <frontend_type>text</frontend_type>
44
+ <sort_order>3</sort_order>
45
+ <show_in_default>1</show_in_default>
46
+ <show_in_website>1</show_in_website>
47
+ <show_in_store>0</show_in_store>
48
+ </post_url_test>
49
+ <signature_live translate="label">
50
+ <label><![CDATA[<b>&raquo; Signature Live</b>]]></label>
51
+ <comment></comment>
52
+ <frontend_type>text</frontend_type>
53
+ <sort_order>4</sort_order>
54
+ <show_in_default>1</show_in_default>
55
+ <show_in_website>1</show_in_website>
56
+ <show_in_store>0</show_in_store>
57
+ </signature_live>
58
+ <signature_test translate="label">
59
+ <label><![CDATA[<b>&raquo; Signature Test</b>]]></label>
60
+ <comment></comment>
61
+ <frontend_type>text</frontend_type>
62
+ <sort_order>5</sort_order>
63
+ <show_in_default>1</show_in_default>
64
+ <show_in_website>1</show_in_website>
65
+ <show_in_store>0</show_in_store>
66
+ </signature_test>
67
+ <mid_live translate="label">
68
+ <label><![CDATA[<b>&raquo; MID Live</b>]]></label>
69
+ <comment></comment>
70
+ <frontend_type>text</frontend_type>
71
+ <sort_order>6</sort_order>
72
+ <show_in_default>1</show_in_default>
73
+ <show_in_website>1</show_in_website>
74
+ <show_in_store>0</show_in_store>
75
+ </mid_live>
76
+ <mid_test translate="label">
77
+ <label><![CDATA[<b>&raquo; MID Test</b>]]></label>
78
+ <comment></comment>
79
+ <frontend_type>text</frontend_type>
80
+ <sort_order>7</sort_order>
81
+ <show_in_default>1</show_in_default>
82
+ <show_in_website>1</show_in_website>
83
+ <show_in_store>0</show_in_store>
84
+ </mid_test>
85
+ <return_url translate="label">
86
+ <label><![CDATA[<b>&raquo; Return URL</b>]]></label>
87
+ <comment></comment>
88
+ <frontend_type>text</frontend_type>
89
+ <sort_order>8</sort_order>
90
+ <show_in_default>1</show_in_default>
91
+ <show_in_website>1</show_in_website>
92
+ <show_in_store>1</show_in_store>
93
+ </return_url>
94
+ <title translate="label">
95
+ <label>Title</label>
96
+ <comment>Insert a custom title for this payment module</comment>
97
+ <frontend_type>text</frontend_type>
98
+ <sort_order>9</sort_order>
99
+ <show_in_default>1</show_in_default>
100
+ <show_in_website>1</show_in_website>
101
+ <show_in_store>1</show_in_store>
102
+ </title>
103
+ <methods translate="label">
104
+ <label>Active methods</label>
105
+ <frontend_type>multiselect</frontend_type>
106
+ <sort_order>10</sort_order>
107
+ <source_model>globalpay/source_methods</source_model>
108
+ <show_in_default>1</show_in_default>
109
+ <show_in_website>1</show_in_website>
110
+ <show_in_store>0</show_in_store>
111
+ </methods>
112
+
113
+ <methods_display_mode translate="label">
114
+ <label>Methods display mode</label>
115
+ <frontend_type>select</frontend_type>
116
+ <source_model>globalpay/source_displaymodes</source_model>
117
+ <sort_order>11</sort_order>
118
+ <show_in_default>1</show_in_default>
119
+ <show_in_website>1</show_in_website>
120
+ <show_in_store>0</show_in_store>
121
+ </methods_display_mode>
122
+
123
+ <show_methods_in_grid translate="label">
124
+ <label>Show methods in grid</label>
125
+ <comment>By default, methods will be displayed within a two columns table, having logo/name and description. When set to yes, description is omitted, and columns number can be specified bellow.</comment>
126
+ <frontend_type>select</frontend_type>
127
+ <source_model>adminhtml/system_config_source_yesno</source_model>
128
+ <sort_order>12</sort_order>
129
+ <show_in_default>1</show_in_default>
130
+ <show_in_website>1</show_in_website>
131
+ <show_in_store>0</show_in_store>
132
+ </show_methods_in_grid>
133
+
134
+ <grid_column_number translate="label">
135
+ <label>Grid column number</label>
136
+ <comment>Please provide a number without aditional chars or spaces, otherwise, a default number 3 may be considered (This will be used only if above option is set to yes)</comment>
137
+ <frontend_type>text</frontend_type>
138
+ <sort_order>13</sort_order>
139
+ <show_in_default>1</show_in_default>
140
+ <show_in_website>1</show_in_website>
141
+ <show_in_store>0</show_in_store>
142
+ </grid_column_number>
143
+
144
+ <autoselect_s2p>
145
+ <label>Autoselect Smart2Pay</label>
146
+ <comment>Smart2Pay payment method's radio button will be checked by default if Yes is selected</comment>
147
+ <frontend_type>select</frontend_type>
148
+ <source_model>adminhtml/system_config_source_yesno</source_model>
149
+ <sort_order>14</sort_order>
150
+ <show_in_default>1</show_in_default>
151
+ <show_in_website>1</show_in_website>
152
+ <show_in_store>0</show_in_store>
153
+ </autoselect_s2p>
154
+
155
+ <send_customer_email translate="label">
156
+ <label>Send customer email</label>
157
+ <frontend_type>select</frontend_type>
158
+ <source_model>adminhtml/system_config_source_yesno</source_model>
159
+ <sort_order>15</sort_order>
160
+ <show_in_default>1</show_in_default>
161
+ <show_in_website>1</show_in_website>
162
+ <show_in_store>0</show_in_store>
163
+ </send_customer_email>
164
+ <send_customer_name translate="label">
165
+ <label>Send customer name</label>
166
+ <frontend_type>select</frontend_type>
167
+ <source_model>adminhtml/system_config_source_yesno</source_model>
168
+ <sort_order>16</sort_order>
169
+ <show_in_default>1</show_in_default>
170
+ <show_in_website>1</show_in_website>
171
+ <show_in_store>0</show_in_store>
172
+ </send_customer_name>
173
+ <send_country translate="label">
174
+ <label>Send country</label>
175
+ <frontend_type>select</frontend_type>
176
+ <source_model>adminhtml/system_config_source_yesno</source_model>
177
+ <sort_order>17</sort_order>
178
+ <show_in_default>1</show_in_default>
179
+ <show_in_website>1</show_in_website>
180
+ <show_in_store>0</show_in_store>
181
+ </send_country>
182
+ <send_payment_method translate="label">
183
+ <label>Send payment method</label>
184
+ <frontend_type>select</frontend_type>
185
+ <source_model>adminhtml/system_config_source_yesno</source_model>
186
+ <sort_order>18</sort_order>
187
+ <show_in_default>1</show_in_default>
188
+ <show_in_website>1</show_in_website>
189
+ <show_in_store>0</show_in_store>
190
+ </send_payment_method>
191
+ <send_product_description translate="label">
192
+ <label>Send product description</label>
193
+ <frontend_type>select</frontend_type>
194
+ <source_model>adminhtml/system_config_source_yesno</source_model>
195
+ <sort_order>19</sort_order>
196
+ <show_in_default>1</show_in_default>
197
+ <show_in_website>1</show_in_website>
198
+ <show_in_store>0</show_in_store>
199
+ </send_product_description>
200
+ <product_description_ref translate="label">
201
+ <label>Send product description as REF</label>
202
+ <comment>If "No" is selected, the below custom description will be send</comment>
203
+ <frontend_type>select</frontend_type>
204
+ <source_model>adminhtml/system_config_source_yesno</source_model>
205
+ <sort_order>20</sort_order>
206
+ <show_in_default>1</show_in_default>
207
+ <show_in_website>1</show_in_website>
208
+ <show_in_store>0</show_in_store>
209
+ </product_description_ref>
210
+ <product_description_custom translate="label">
211
+ <label>Custom product description</label>
212
+ <frontend_type>textarea</frontend_type>
213
+ <source_model>adminhtml/system_config_source_yesno</source_model>
214
+ <sort_order>21</sort_order>
215
+ <show_in_default>1</show_in_default>
216
+ <show_in_website>1</show_in_website>
217
+ <show_in_store>0</show_in_store>
218
+ </product_description_custom>
219
+
220
+ <notify_customer translate="label">
221
+ <label>Notify customer by email</label>
222
+ <comment>Send an email notification to the customer containing payment details</comment>
223
+ <frontend_type>select</frontend_type>
224
+ <source_model>adminhtml/system_config_source_yesno</source_model>
225
+ <sort_order>22</sort_order>
226
+ <show_in_default>1</show_in_default>
227
+ <show_in_website>1</show_in_website>
228
+ <show_in_store>0</show_in_store>
229
+ </notify_customer>
230
+ <payment_confirmation_template translate="label">
231
+ <label>Payment Confirmation Template</label>
232
+ <frontend_type>select</frontend_type>
233
+ <source_model>adminhtml/system_config_source_email_template</source_model>
234
+ <sort_order>23</sort_order>
235
+ <show_in_default>1</show_in_default>
236
+ <show_in_website>1</show_in_website>
237
+ <show_in_store>1</show_in_store>
238
+ </payment_confirmation_template>
239
+
240
+ <auto_invoice translate="label">
241
+ <label>Create invoice on success</label>
242
+ <comment>Create an invoice if payment is successfully done. Invoice is automatically set to paid</comment>
243
+ <frontend_type>select</frontend_type>
244
+ <source_model>adminhtml/system_config_source_yesno</source_model>
245
+ <sort_order>24</sort_order>
246
+ <show_in_default>1</show_in_default>
247
+ <show_in_website>1</show_in_website>
248
+ <show_in_store>0</show_in_store>
249
+ </auto_invoice>
250
+
251
+ <auto_ship translate="label">
252
+ <label>Automate shipping</label>
253
+ <frontend_type>select</frontend_type>
254
+ <source_model>adminhtml/system_config_source_yesno</source_model>
255
+ <sort_order>25</sort_order>
256
+ <show_in_default>1</show_in_default>
257
+ <show_in_website>1</show_in_website>
258
+ <show_in_store>0</show_in_store>
259
+ </auto_ship>
260
+
261
+ <order_status translate="label">
262
+ <label>Default Order status</label>
263
+ <frontend_type>select</frontend_type>
264
+ <source_model>adminhtml/system_config_source_order_status</source_model>
265
+ <sort_order>26</sort_order>
266
+ <show_in_default>1</show_in_default>
267
+ <show_in_website>1</show_in_website>
268
+ <show_in_store>0</show_in_store>
269
+ </order_status>
270
+ <order_status_on_2 translate="label">
271
+ <label>Order status on SUCCESS</label>
272
+ <frontend_type>select</frontend_type>
273
+ <source_model>adminhtml/system_config_source_order_status</source_model>
274
+ <sort_order>27</sort_order>
275
+ <show_in_default>1</show_in_default>
276
+ <show_in_website>1</show_in_website>
277
+ <show_in_store>0</show_in_store>
278
+ </order_status_on_2>
279
+ <order_status_on_3 translate="label">
280
+ <label>Order status on CANCEL</label>
281
+ <frontend_type>select</frontend_type>
282
+ <source_model>adminhtml/system_config_source_order_status</source_model>
283
+ <sort_order>28</sort_order>
284
+ <show_in_default>1</show_in_default>
285
+ <show_in_website>1</show_in_website>
286
+ <show_in_store>0</show_in_store>
287
+ </order_status_on_3>
288
+ <order_status_on_4 translate="label">
289
+ <label>Order status on FAIL</label>
290
+ <frontend_type>select</frontend_type>
291
+ <source_model>adminhtml/system_config_source_order_status</source_model>
292
+ <sort_order>29</sort_order>
293
+ <show_in_default>1</show_in_default>
294
+ <show_in_website>1</show_in_website>
295
+ <show_in_store>0</show_in_store>
296
+ </order_status_on_4>
297
+ <order_status_on_5 translate="label">
298
+ <label>Order status on EXPIRED</label>
299
+ <frontend_type>select</frontend_type>
300
+ <source_model>adminhtml/system_config_source_order_status</source_model>
301
+ <sort_order>30</sort_order>
302
+ <show_in_default>1</show_in_default>
303
+ <show_in_website>1</show_in_website>
304
+ <show_in_store>0</show_in_store>
305
+ </order_status_on_5>
306
+
307
+
308
+ <skip_payment_page translate="label">
309
+ <label>Skip payment page</label>
310
+ <frontend_type>select</frontend_type>
311
+ <source_model>adminhtml/system_config_source_yesno</source_model>
312
+ <sort_order>31</sort_order>
313
+ <show_in_default>1</show_in_default>
314
+ <show_in_website>1</show_in_website>
315
+ <show_in_store>0</show_in_store>
316
+ </skip_payment_page>
317
+ <redirect_in_iframe translate="label">
318
+ <label>Redirect in iframe</label>
319
+ <frontend_type>select</frontend_type>
320
+ <source_model>adminhtml/system_config_source_yesno</source_model>
321
+ <sort_order>32</sort_order>
322
+ <show_in_default>1</show_in_default>
323
+ <show_in_website>1</show_in_website>
324
+ <show_in_store>0</show_in_store>
325
+ </redirect_in_iframe>
326
+ <skin_id translate="label">
327
+ <label>Skin ID</label>
328
+ <frontend_type>text</frontend_type>
329
+ <sort_order>33</sort_order>
330
+ <show_in_default>1</show_in_default>
331
+ <show_in_website>1</show_in_website>
332
+ <show_in_store>0</show_in_store>
333
+ </skin_id>
334
+
335
+ <message_data_2 translate="label">
336
+ <label>Message Success</label>
337
+ <frontend_type>textarea</frontend_type>
338
+ <sort_order>34</sort_order>
339
+ <show_in_default>1</show_in_default>
340
+ <show_in_website>1</show_in_website>
341
+ <show_in_store>1</show_in_store>
342
+ </message_data_2>
343
+ <message_data_4 translate="label">
344
+ <label>Message Failed</label>
345
+ <frontend_type>textarea</frontend_type>
346
+ <sort_order>35</sort_order>
347
+ <show_in_default>1</show_in_default>
348
+ <show_in_website>1</show_in_website>
349
+ <show_in_store>1</show_in_store>
350
+ </message_data_4>
351
+ <message_data_3 translate="label">
352
+ <label>Message Canceled</label>
353
+ <frontend_type>textarea</frontend_type>
354
+ <sort_order>36</sort_order>
355
+ <show_in_default>1</show_in_default>
356
+ <show_in_website>1</show_in_website>
357
+ <show_in_store>1</show_in_store>
358
+ </message_data_3>
359
+ <message_data_7 translate="label">
360
+ <label>Message Pending</label>
361
+ <frontend_type>textarea</frontend_type>
362
+ <sort_order>37</sort_order>
363
+ <show_in_default>1</show_in_default>
364
+ <show_in_website>1</show_in_website>
365
+ <show_in_store>1</show_in_store>
366
+ </message_data_7>
367
+
368
+ <debug_form translate="label">
369
+ <label>[ Debug Form ]</label>
370
+ <comment>Show form data before submiting it to Smart2Pay</comment>
371
+ <frontend_type>select</frontend_type>
372
+ <source_model>adminhtml/system_config_source_yesno</source_model>
373
+ <sort_order>38</sort_order>
374
+ <show_in_default>1</show_in_default>
375
+ <show_in_website>1</show_in_website>
376
+ <show_in_store>0</show_in_store>
377
+ </debug_form>
378
+ </fields>
379
+ </globalpay>
380
+ </groups>
381
+ </payment>
382
+ </sections>
383
+ </config>
app/code/community/Smart2pay/Globalpay/sql/globalpay_setup/mysql4-install-0.1.0.php ADDED
@@ -0,0 +1,545 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ //die('Trying to setup Smart2Pay_Globalpay database');
3
+
4
+ $installer = $this;
5
+ $installer->startSetup();
6
+ $installer->run("
7
+
8
+ DROP TABLE IF EXISTS `{$installer->getTable('globalpay/logger')}`;
9
+ CREATE TABLE IF NOT EXISTS `{$installer->getTable('globalpay/logger')}` (
10
+ `log_id` int(11) NOT NULL auto_increment,
11
+ `log_type` varchar(255) collate utf8_unicode_ci default NULL,
12
+ `log_message` text collate utf8_unicode_ci default NULL,
13
+ `log_source_file` varchar(255) collate utf8_unicode_ci default NULL,
14
+ `log_source_file_line` varchar(255) collate utf8_unicode_ci default NULL,
15
+ `log_created` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
16
+ PRIMARY KEY (`log_id`)
17
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
18
+
19
+ DROP TABLE IF EXISTS `{$installer->getTable('globalpay/method')}`;
20
+ CREATE TABLE IF NOT EXISTS `{$installer->getTable('globalpay/method')}` (
21
+ `method_id` int(11) NOT NULL auto_increment,
22
+ `display_name` varchar(255) collate utf8_unicode_ci default NULL,
23
+ `provider_value` varchar(255) collate utf8_unicode_ci default NULL,
24
+ `description` text collate utf8_unicode_ci,
25
+ `logo_url` varchar(255) collate utf8_unicode_ci default NULL,
26
+ `guaranteed` int(1) default NULL,
27
+ `active` int(1) default NULL,
28
+ PRIMARY KEY (`method_id`)
29
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
30
+ INSERT INTO `{$installer->getTable('globalpay/method')}` (`method_id`, `display_name`, `provider_value`, `description`, `logo_url`, `guaranteed`, `active`) VALUES
31
+ (1, 'Bank Transfer', 'banktransfer', 'Bank Transfer description', 'bank_transfer_logo_v5.gif', 1, 1),
32
+ (2, 'iDEAL', 'ideal', 'iDEAL description', 'ideal.jpg', 1, 1),
33
+ (3, 'MrCash', 'mrcash', 'MrCash description', 'mrcash.gif', 1, 1),
34
+ (4, 'Giropay', 'giropay', 'Giropay description', 'giropay.gif', 1, 1),
35
+ (5, 'EPS', 'eps', 'EPS description', 'eps-e-payment-standard.gif', 1, 1),
36
+ (8, 'UseMyFunds', 'umb', 'UseMyFunds description', 'umb.gif', 1, 1),
37
+ (9, 'DirectEbanking', 'dp24', 'DirectEbanking description', 'dp24_sofort.gif', 0, 1),
38
+ (12, 'Przelewy24', 'p24', 'Przelewy24 description', 'p24.gif', 1, 1),
39
+ (13, 'OneCard', 'onecard', 'OneCard description', 'onecard.gif', 1, 1),
40
+ (14, 'CashU', 'cashu', 'CashU description', 'cashu.gif', 1, 1),
41
+ (18, 'POLi', 'poli', 'POLi description', 'poli.gif', 0, 1),
42
+ (19, 'DineroMail', 'dineromail', 'DineroMail description', 'dineromail_v2.gif', 0, 1),
43
+ (20, 'Multibanco SIBS', 'sibs', 'Multibanco SIBS description', 'sibs_mb.gif', 1, 1),
44
+ (22, 'Moneta Wallet', 'moneta', 'Moneta Wallet description', 'moneta_v2.gif', 1, 1),
45
+ (23, 'WebToPay', 'webtopay', 'WebToPay description', 'webtopay_v3.gif', 1, 1),
46
+ (24, 'Alipay', 'alipay', 'Alipay description', 'alipay.jpg', 1, 1),
47
+ (25, 'Abaqoos', 'abaqoos', 'Abaqoos description', 'abaqoos.gif', 1, 1),
48
+ (27, 'eBanka', 'ebanka', 'eBanka description', 'ebanka.jpg', 1, 1),
49
+ (28, 'Ukash', 'ukash', 'Ukash description', 'ukash.gif', 1, 1),
50
+ (29, 'GluePay', 'gluepay', 'GluePay description', 'gluepay.jpg', 1, 1),
51
+ (32, 'Debito Banco do Brasil', 'debitobdb', 'Debito Banco do Brasil description', 'banco_do_brasil.jpg', 1, 1),
52
+ (33, 'CuentaDigital', 'cuentadigital', 'CuentaDigital description', 'cuentadigital.gif', 1, 1),
53
+ (34, 'CardsBrazil', 'cardsbrl', 'CardsBrazil description', 'cards_brl.gif', 0, 1),
54
+ (35, 'PaysBuy', 'paysbuy', 'PaysBuy description', 'paysbuy.gif', 0, 1),
55
+ (36, 'Mazooma', 'mazooma', 'Mazooma description', 'mazooma.gif', 0, 1),
56
+ (37, 'eNETS Debit', 'enets', 'eNETS Debit description', 'enets.gif', 1, 1),
57
+ (40, 'Paysafecard', 'paysafecard', 'Paysafecard description', 'paysafecard.gif', 1, 1),
58
+ (42, 'PayPal', 'paypal', 'PayPal description', 'paypal.jpg', 1, 0),
59
+ (43, 'PagTotal', 'pagtotal', 'PagTotal description', 'pagtotal.jpg', 0, 1),
60
+ (44, 'Payeasy', 'payeasy', 'Payeasy description', 'payeasy.gif', 1, 1),
61
+ (46, 'MercadoPago', 'mercadopago', 'MercadoPago description', 'mercadopago.jpg', 0, 1),
62
+ (47, 'Mozca', 'mozca', 'Mozca description', 'mozca.jpg', 0, 1),
63
+ (48, 'Gash', 'gash', 'Gash description', 'gash.gif', 1, 1),
64
+ (49, 'ToditoCash', 'toditocash', 'ToditoCash description', 'todito_cash.gif', 1, 1),
65
+ (52, 'SecureVaultPayments', 'svp', 'SecureVaultPayments description', 'secure_vault.gif', 1, 1),
66
+ (1000, 'Boleto', 'paganet', 'Boleto description', 'boleto.jpg', 1, 1),
67
+ (1001, 'Debito', 'paganet', 'Debito description', 'debito_bradesco.jpg', 1, 1),
68
+ (1002, 'Transferencia', 'paganet', 'Transferencia description', 'bradesco_transferencia.jpg', 1, 1),
69
+ (1003, 'QIWI Wallet', 'qiwi', 'QIWI Wallet description', 'qiwi_wallet_v2.gif', 1, 1),
70
+ (1004, 'Beeline', 'qiwi', 'Beeline description', 'beeline.gif', 1, 1),
71
+ (1005, 'Megafon', 'qiwi', 'Megafon description', 'megafon_v1.gif', 1, 1),
72
+ (1006, 'MTS', 'qiwi', 'MTS description', 'mts.gif', 1, 1),
73
+ (1007, 'WebMoney', 'moneta', 'WebMoney description', 'webmoney_v1.gif', 1, 1),
74
+ (1008, 'Yandex', 'moneta', 'Yandex description', 'yandex_money.gif', 1, 1),
75
+ (1009, 'Alliance Online', 'asiapay', 'Alliance Online description', 'alliance_online.gif', 1, 1),
76
+ (1010, 'AmBank', 'asiapay', 'AmBank description', 'ambankgroup.gif', 1, 1),
77
+ (1011, 'CIMB Clicks', 'asiapay', 'CIMB Clicks description', 'cimb_clicks.gif', 1, 1),
78
+ (1012, 'FPX', 'asiapay', 'FPX description', 'FPX.gif', 1, 1),
79
+ (1013, 'Hong Leong Bank Transfer', 'asiapay', 'Hong Leong Bank Transfer description', 'hong_leong.gif', 1, 1),
80
+ (1014, 'Maybank2U', 'asiapay', 'Maybank2U description', 'maybank2u.gif', 1, 1),
81
+ (1015, 'Meps Cash', 'asiapay', 'Meps Cash description', 'meps_cash.gif', 1, 1),
82
+ (1016, 'Mobile Money', 'asiapay', 'Mobile Money description', 'mobile_money.gif', 1, 1),
83
+ (1017, 'RHB', 'asiapay', 'RHB description', 'rhb.gif', 1, 1),
84
+ (1018, 'Webcash', 'asiapay', 'Webcash description', 'web_cash.gif', 1, 1),
85
+ (1019, 'Credit Cards Colombia', 'pagosonline', 'Credit Cards Colombia description', 'cards_colombia.jpg', 1, 1),
86
+ (1020, 'PSE', 'pagosonline', 'PSE description', 'pse.gif', 1, 1),
87
+ (1021, 'ACH Debit', 'pagosonline', 'ACH Debit description', 'ACH.gif', 1, 1),
88
+ (1022, 'Via Baloto', 'pagosonline', 'Via Baloto description', 'payment_in_cash.gif', 1, 1),
89
+ (1023, 'Referenced Payment', 'pagosonline', 'Referenced Payment description', 'payment_references.gif', 1, 1),
90
+ (1024, 'Mandiri', 'asiapay', 'Mandiri description', 'mandiri.gif', 1, 1);
91
+
92
+ DROP TABLE IF EXISTS `{$installer->getTable('globalpay/country')}`;
93
+ CREATE TABLE IF NOT EXISTS `{$installer->getTable('globalpay/country')}` (
94
+ `country_id` int(11) NOT NULL auto_increment,
95
+ `code` varchar(3) collate utf8_unicode_ci default NULL,
96
+ `name` varchar(100) collate utf8_unicode_ci default NULL,
97
+ PRIMARY KEY (`country_id`)
98
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
99
+ INSERT INTO `{$installer->getTable('globalpay/country')}` (`country_id`, `code`, `name`) VALUES
100
+ (1, 'AD', 'Andorra'),
101
+ (2, 'AE', 'United Arab Emirates'),
102
+ (3, 'AF', 'Afghanistan'),
103
+ (4, 'AG', 'Antigua and Barbuda'),
104
+ (5, 'AI', 'Anguilla'),
105
+ (6, 'AL', 'Albania'),
106
+ (7, 'AM', 'Armenia'),
107
+ (8, 'AN', 'Netherlands Antilles'),
108
+ (9, 'AO', 'Angola'),
109
+ (10, 'AQ', 'Antarctica'),
110
+ (11, 'AR', 'Argentina'),
111
+ (12, 'AS', 'American Samoa'),
112
+ (13, 'AT', 'Austria'),
113
+ (14, 'AU', 'Australia'),
114
+ (15, 'AW', 'Aruba'),
115
+ (16, 'AZ', 'Azerbaijan'),
116
+ (17, 'BA', 'Bosnia & Herzegowina'),
117
+ (18, 'BB', 'Barbados'),
118
+ (19, 'BD', 'Bangladesh'),
119
+ (20, 'BE', 'Belgium'),
120
+ (21, 'BF', 'Burkina Faso'),
121
+ (22, 'BG', 'Bulgaria'),
122
+ (23, 'BH', 'Bahrain'),
123
+ (24, 'BI', 'Burundi'),
124
+ (25, 'BJ', 'Benin'),
125
+ (26, 'BM', 'Bermuda'),
126
+ (27, 'BN', 'Brunei Darussalam'),
127
+ (28, 'BO', 'Bolivia'),
128
+ (29, 'BR', 'Brazil'),
129
+ (30, 'BS', 'Bahamas'),
130
+ (31, 'BT', 'Bhutan'),
131
+ (32, 'BV', 'Bouvet Island'),
132
+ (33, 'BW', 'Botswana'),
133
+ (34, 'BY', 'Belarus (formerly known as Byelorussia)'),
134
+ (35, 'BZ', 'Belize'),
135
+ (36, 'CA', 'Canada'),
136
+ (37, 'CC', 'Cocos (Keeling) Islands'),
137
+ (38, 'CD', 'Congo, Democratic Republic of the (formerly Zalre)'),
138
+ (39, 'CF', 'Central African Republic'),
139
+ (40, 'CG', 'Congo'),
140
+ (41, 'CH', 'Switzerland'),
141
+ (42, 'CI', 'Ivory Coast (Cote d''Ivoire)'),
142
+ (43, 'CK', 'Cook Islands'),
143
+ (44, 'CL', 'Chile'),
144
+ (45, 'CM', 'Cameroon'),
145
+ (46, 'CN', 'China'),
146
+ (47, 'CO', 'Colombia'),
147
+ (48, 'CR', 'Costa Rica'),
148
+ (49, 'CS', 'Serbia and Montenegro (formerly Yugoslavia)'),
149
+ (50, 'CU', 'Cuba'),
150
+ (51, 'CV', 'Cape Verde'),
151
+ (52, 'CX', 'Christmas Island'),
152
+ (53, 'CY', 'Cyprus'),
153
+ (54, 'CZ', 'Czech Republic'),
154
+ (55, 'DE', 'Germany'),
155
+ (56, 'DJ', 'Djibouti'),
156
+ (57, 'DK', 'Denmark'),
157
+ (58, 'DM', 'Dominica'),
158
+ (59, 'DO', 'Dominican Republic'),
159
+ (60, 'DZ', 'Algeria'),
160
+ (61, 'EC', 'Ecuador'),
161
+ (62, 'EE', 'Estonia'),
162
+ (63, 'EG', 'Egypt'),
163
+ (64, 'EH', 'Western Sahara'),
164
+ (65, 'ER', 'Eritrea'),
165
+ (66, 'ES', 'Spain'),
166
+ (67, 'ET', 'Ethiopia'),
167
+ (68, 'FI', 'Finland'),
168
+ (69, 'FJ', 'Fiji Islands'),
169
+ (70, 'FK', 'Falkland Islands (Malvinas)'),
170
+ (71, 'FM', 'Micronesia, Federated States of'),
171
+ (72, 'FO', 'Faroe Islands'),
172
+ (73, 'FR', 'France'),
173
+ (74, 'FX', 'France, Metropolitan'),
174
+ (75, 'GA', 'Gabon'),
175
+ (76, 'GB', 'United Kingdom'),
176
+ (77, 'GD', 'Grenada'),
177
+ (78, 'GE', 'Georgia'),
178
+ (79, 'GF', 'French Guiana'),
179
+ (80, 'GH', 'Ghana'),
180
+ (81, 'GI', 'Gibraltar'),
181
+ (82, 'GL', 'Greenland'),
182
+ (83, 'GM', 'Gambia'),
183
+ (84, 'GN', 'Guinea'),
184
+ (85, 'GP', 'Guadeloupe'),
185
+ (86, 'GQ', 'Equatorial Guinea'),
186
+ (87, 'GR', 'Greece'),
187
+ (88, 'GS', 'South Georgia and the South Sandwich Islands'),
188
+ (89, 'GT', 'Guatemala'),
189
+ (90, 'GU', 'Guam'),
190
+ (91, 'GW', 'Guinea-Bissau'),
191
+ (92, 'GY', 'Guyana'),
192
+ (93, 'HK', 'Hong Kong'),
193
+ (94, 'HM', 'Heard and McDonald Islands'),
194
+ (95, 'HN', 'Honduras'),
195
+ (96, 'HR', 'Croatia (local name: Hrvatska)'),
196
+ (97, 'HT', 'Haiti'),
197
+ (98, 'HU', 'Hungary'),
198
+ (99, 'ID', 'Indonesia'),
199
+ (100, 'IE', 'Ireland'),
200
+ (101, 'IL', 'Israel'),
201
+ (102, 'IN', 'India'),
202
+ (103, 'IO', 'British Indian Ocean Territory'),
203
+ (104, 'IQ', 'Iraq'),
204
+ (105, 'IR', 'Iran, Islamic Republic of'),
205
+ (106, 'IS', 'Iceland'),
206
+ (107, 'IT', 'Italy'),
207
+ (108, 'JM', 'Jamaica'),
208
+ (109, 'JO', 'Jordan'),
209
+ (110, 'JP', 'Japan'),
210
+ (111, 'KE', 'Kenya'),
211
+ (112, 'KG', 'Kyrgyzstan'),
212
+ (113, 'KH', 'Cambodia (formerly Kampuchea)'),
213
+ (114, 'KI', 'Kiribati'),
214
+ (115, 'KM', 'Comoros'),
215
+ (116, 'KN', 'Saint Kitts (Christopher) and Nevis'),
216
+ (117, 'KP', 'Korea, Democratic People''s Republic of (North Korea)'),
217
+ (118, 'KR', 'Korea, Republic of (South Korea)'),
218
+ (119, 'KW', 'Kuwait'),
219
+ (120, 'KY', 'Cayman Islands'),
220
+ (121, 'KZ', 'Kazakhstan'),
221
+ (122, 'LA', 'Lao People''s Democratic Republic (formerly Laos)'),
222
+ (123, 'LB', 'Lebanon'),
223
+ (124, 'LC', 'Saint Lucia'),
224
+ (125, 'LI', 'Liechtenstein'),
225
+ (126, 'LK', 'Sri Lanka'),
226
+ (127, 'LR', 'Liberia'),
227
+ (128, 'LS', 'Lesotho'),
228
+ (129, 'LT', 'Lithuania'),
229
+ (130, 'LU', 'Luxembourg'),
230
+ (131, 'LV', 'Latvia'),
231
+ (132, 'LY', 'Libyan Arab Jamahiriya'),
232
+ (133, 'MA', 'Morocco'),
233
+ (134, 'MC', 'Monaco'),
234
+ (135, 'MD', 'Moldova, Republic of'),
235
+ (136, 'MG', 'Madagascar'),
236
+ (137, 'MH', 'Marshall Islands'),
237
+ (138, 'MK', 'Macedonia, the Former Yugoslav Republic of'),
238
+ (139, 'ML', 'Mali'),
239
+ (140, 'MM', 'Myanmar (formerly Burma)'),
240
+ (141, 'MN', 'Mongolia'),
241
+ (142, 'MO', 'Macao (also spelled Macau)'),
242
+ (143, 'MP', 'Northern Mariana Islands'),
243
+ (144, 'MQ', 'Martinique'),
244
+ (145, 'MR', 'Mauritania'),
245
+ (146, 'MS', 'Montserrat'),
246
+ (147, 'MT', 'Malta'),
247
+ (148, 'MU', 'Mauritius'),
248
+ (149, 'MV', 'Maldives'),
249
+ (150, 'MW', 'Malawi'),
250
+ (151, 'MX', 'Mexico'),
251
+ (152, 'MY', 'Malaysia'),
252
+ (153, 'MZ', 'Mozambique'),
253
+ (154, 'NA', 'Namibia'),
254
+ (155, 'NC', 'New Caledonia'),
255
+ (156, 'NE', 'Niger'),
256
+ (157, 'NF', 'Norfolk Island'),
257
+ (158, 'NG', 'Nigeria'),
258
+ (159, 'NI', 'Nicaragua'),
259
+ (160, 'NL', 'Netherlands'),
260
+ (161, 'NO', 'Norway'),
261
+ (162, 'NP', 'Nepal'),
262
+ (163, 'NR', 'Nauru'),
263
+ (164, 'NU', 'Niue'),
264
+ (165, 'NZ', 'New Zealand'),
265
+ (166, 'OM', 'Oman'),
266
+ (167, 'PA', 'Panama'),
267
+ (168, 'PE', 'Peru'),
268
+ (169, 'PF', 'French Polynesia'),
269
+ (170, 'PG', 'Papua New Guinea'),
270
+ (171, 'PH', 'Philippines'),
271
+ (172, 'PK', 'Pakistan'),
272
+ (173, 'PL', 'Poland'),
273
+ (174, 'PM', 'St Pierre and Miquelon'),
274
+ (175, 'PN', 'Pitcairn Island'),
275
+ (176, 'PR', 'Puerto Rico'),
276
+ (177, 'PT', 'Portugal'),
277
+ (178, 'PW', 'Palau'),
278
+ (179, 'PY', 'Paraguay'),
279
+ (180, 'QA', 'Qatar'),
280
+ (181, 'RE', 'R'),
281
+ (182, 'RO', 'Romania'),
282
+ (183, 'RU', 'Russian Federation'),
283
+ (184, 'RW', 'Rwanda'),
284
+ (185, 'SA', 'Saudi Arabia'),
285
+ (186, 'SB', 'Solomon Islands'),
286
+ (187, 'SC', 'Seychelles'),
287
+ (188, 'SD', 'Sudan'),
288
+ (189, 'SE', 'Sweden'),
289
+ (190, 'SG', 'Singapore'),
290
+ (191, 'SH', 'St Helena'),
291
+ (192, 'SI', 'Slovenia'),
292
+ (193, 'SJ', 'Svalbard and Jan Mayen Islands'),
293
+ (194, 'SK', 'Slovakia'),
294
+ (195, 'SL', 'Sierra Leone'),
295
+ (196, 'SM', 'San Marino'),
296
+ (197, 'SN', 'Senegal'),
297
+ (198, 'SO', 'Somalia'),
298
+ (199, 'SR', 'Suriname'),
299
+ (200, 'ST', 'Sco Tom'),
300
+ (201, 'SU', 'Union of Soviet Socialist Republics'),
301
+ (202, 'SV', 'El Salvador'),
302
+ (203, 'SY', 'Syrian Arab Republic'),
303
+ (204, 'SZ', 'Swaziland'),
304
+ (205, 'TC', 'Turks and Caicos Islands'),
305
+ (206, 'TD', 'Chad'),
306
+ (207, 'TF', 'French Southern and Antarctic Territories'),
307
+ (208, 'TG', 'Togo'),
308
+ (209, 'TH', 'Thailand'),
309
+ (210, 'TJ', 'Tajikistan'),
310
+ (211, 'TK', 'Tokelau'),
311
+ (212, 'TM', 'Turkmenistan'),
312
+ (213, 'TN', 'Tunisia'),
313
+ (214, 'TO', 'Tonga'),
314
+ (215, 'TP', 'East Timor'),
315
+ (216, 'TR', 'Turkey'),
316
+ (217, 'TT', 'Trinidad and Tobago'),
317
+ (218, 'TV', 'Tuvalu'),
318
+ (219, 'TW', 'Taiwan, Province of China'),
319
+ (220, 'TZ', 'Tanzania, United Republic of'),
320
+ (221, 'UA', 'Ukraine'),
321
+ (222, 'UG', 'Uganda'),
322
+ (223, 'UM', 'United States Minor Outlying Islands'),
323
+ (224, 'US', 'United States of America'),
324
+ (225, 'UY', 'Uruguay'),
325
+ (226, 'UZ', 'Uzbekistan'),
326
+ (227, 'VA', 'Holy See (Vatican City State)'),
327
+ (228, 'VC', 'Saint Vincent and the Grenadines'),
328
+ (229, 'VE', 'Venezuela'),
329
+ (230, 'VG', 'Virgin Islands (British)'),
330
+ (231, 'VI', 'Virgin Islands (US)'),
331
+ (232, 'VN', 'Viet Nam'),
332
+ (233, 'VU', 'Vanautu'),
333
+ (234, 'WF', 'Wallis and Futuna Islands'),
334
+ (235, 'WS', 'Samoa'),
335
+ (236, 'XO', 'West Africa'),
336
+ (237, 'YE', 'Yemen'),
337
+ (238, 'YT', 'Mayotte'),
338
+ (239, 'ZA', 'South Africa'),
339
+ (240, 'ZM', 'Zambia'),
340
+ (241, 'ZW', 'Zimbabwe'),
341
+ (242, 'PS', 'Palestinian Territory');
342
+
343
+
344
+ DROP TABLE IF EXISTS `{$installer->getTable('globalpay/countrymethod')}`;
345
+ CREATE TABLE IF NOT EXISTS `{$installer->getTable('globalpay/countrymethod')}` (
346
+ `id` int(11) NOT NULL auto_increment,
347
+ `country_id` int(11) default NULL,
348
+ `method_id` int(11) default NULL,
349
+ `priority` int(2) default NULL,
350
+ PRIMARY KEY (`id`)
351
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
352
+ INSERT INTO `{$installer->getTable('globalpay/countrymethod')}` (`id`, `country_id`, `method_id`, `priority`) VALUES
353
+ (1, 2, 13, 1),
354
+ (2, 2, 14, 2),
355
+ (3, 11, 19, 1),
356
+ (4, 11, 33, 3),
357
+ (5, 11, 47, 2),
358
+ (6, 13, 1, 5),
359
+ (7, 13, 5, 1),
360
+ (8, 13, 9, 3),
361
+ (9, 13, 28, 4),
362
+ (10, 13, 40, 2),
363
+ (11, 14, 18, 1),
364
+ (12, 14, 28, 2),
365
+ (13, 20, 1, 3),
366
+ (14, 20, 3, 1),
367
+ (15, 20, 28, 4),
368
+ (16, 20, 40, 2),
369
+ (17, 22, 1, 1),
370
+ (18, 23, 13, 1),
371
+ (19, 23, 14, 2),
372
+ (20, 29, 32, 2),
373
+ (21, 29, 34, 3),
374
+ (22, 29, 43, 7),
375
+ (23, 29, 46, 1),
376
+ (24, 29, 47, 8),
377
+ (25, 29, 1000, 4),
378
+ (26, 29, 1001, 5),
379
+ (27, 29, 1002, 6),
380
+ (28, 36, 8, 1),
381
+ (29, 36, 28, 2),
382
+ (30, 41, 1, 1),
383
+ (31, 41, 9, 2),
384
+ (32, 44, 19, 2),
385
+ (33, 44, 47, 3),
386
+ (34, 46, 24, 1),
387
+ (35, 46, 28, 2),
388
+ (36, 47, 19, 7),
389
+ (37, 47, 47, 8),
390
+ (38, 47, 1019, 1),
391
+ (39, 47, 1020, 2),
392
+ (40, 47, 1021, 3),
393
+ (41, 47, 1022, 4),
394
+ (42, 47, 1023, 5),
395
+ (43, 53, 13, 2),
396
+ (44, 53, 14, 3),
397
+ (45, 53, 28, 1),
398
+ (46, 54, 1, 3),
399
+ (47, 54, 27, 1),
400
+ (48, 54, 28, 2),
401
+ (49, 55, 1, 6),
402
+ (50, 55, 4, 1),
403
+ (51, 55, 9, 2),
404
+ (52, 55, 14, 5),
405
+ (53, 55, 28, 4),
406
+ (54, 55, 40, 3),
407
+ (55, 57, 1, 2),
408
+ (56, 57, 28, 3),
409
+ (57, 57, 29, 1),
410
+ (58, 60, 14, 1),
411
+ (59, 62, 1, 4),
412
+ (60, 62, 23, 1),
413
+ (61, 62, 28, 3),
414
+ (62, 62, 29, 2),
415
+ (63, 63, 13, 1),
416
+ (64, 63, 14, 2),
417
+ (65, 66, 1, 2),
418
+ (66, 66, 14, 4),
419
+ (67, 66, 28, 3),
420
+ (68, 66, 29, 1),
421
+ (69, 68, 1, 1),
422
+ (70, 68, 28, 3),
423
+ (71, 68, 29, 2),
424
+ (72, 73, 1, 1),
425
+ (73, 73, 14, 2),
426
+ (74, 76, 1, 1),
427
+ (75, 76, 8, 4),
428
+ (76, 76, 9, 3),
429
+ (77, 76, 14, 5),
430
+ (78, 76, 28, 2),
431
+ (79, 87, 28, 1),
432
+ (80, 93, 48, 1),
433
+ (81, 98, 1, 3),
434
+ (82, 98, 25, 1),
435
+ (83, 98, 28, 2),
436
+ (84, 98, 40, 4),
437
+ (85, 99, 1024, 1),
438
+ (86, 100, 1, 2),
439
+ (87, 100, 14, 3),
440
+ (88, 100, 28, 1),
441
+ (89, 101, 13, 1),
442
+ (90, 101, 14, 2),
443
+ (91, 104, 13, 1),
444
+ (92, 104, 14, 2),
445
+ (93, 107, 1, 2),
446
+ (94, 107, 14, 3),
447
+ (95, 107, 28, 1),
448
+ (96, 109, 13, 1),
449
+ (97, 109, 14, 2),
450
+ (98, 119, 13, 1),
451
+ (99, 121, 1003, 1),
452
+ (100, 121, 1004, 2),
453
+ (101, 121, 1005, 3),
454
+ (102, 121, 1006, 4),
455
+ (103, 123, 13, 1),
456
+ (104, 123, 14, 2),
457
+ (105, 129, 1, 3),
458
+ (106, 129, 23, 1),
459
+ (107, 129, 29, 2),
460
+ (108, 130, 1, 1),
461
+ (109, 131, 23, 1),
462
+ (110, 131, 28, 3),
463
+ (111, 131, 29, 2),
464
+ (112, 151, 19, 2),
465
+ (113, 151, 28, 4),
466
+ (114, 151, 49, 1),
467
+ (115, 152, 1009, 1),
468
+ (116, 152, 1010, 2),
469
+ (117, 152, 1011, 3),
470
+ (118, 152, 1012, 4),
471
+ (119, 152, 1013, 5),
472
+ (120, 152, 1014, 6),
473
+ (121, 152, 1015, 7),
474
+ (122, 152, 1016, 8),
475
+ (123, 152, 1017, 9),
476
+ (124, 152, 1018, 10),
477
+ (125, 158, 14, 1),
478
+ (126, 160, 1, 5),
479
+ (127, 160, 2, 1),
480
+ (128, 160, 9, 2),
481
+ (129, 160, 28, 4),
482
+ (130, 160, 40, 3),
483
+ (131, 161, 1, 1),
484
+ (132, 161, 28, 3),
485
+ (133, 161, 29, 2),
486
+ (134, 165, 18, 2),
487
+ (135, 165, 28, 2),
488
+ (136, 166, 13, 1),
489
+ (137, 166, 14, 2),
490
+ (138, 171, 44, 1),
491
+ (139, 173, 1, 2),
492
+ (140, 173, 12, 1),
493
+ (141, 173, 14, 4),
494
+ (142, 173, 28, 3),
495
+ (143, 173, 40, 5),
496
+ (144, 177, 1, 3),
497
+ (145, 177, 14, 4),
498
+ (146, 177, 20, 1),
499
+ (147, 177, 28, 2),
500
+ (148, 180, 13, 1),
501
+ (149, 180, 14, 2),
502
+ (150, 182, 1, 2),
503
+ (151, 182, 40, 1),
504
+ (152, 183, 22, 1),
505
+ (153, 183, 28, 8),
506
+ (154, 183, 1003, 4),
507
+ (155, 183, 1004, 5),
508
+ (156, 183, 1005, 6),
509
+ (157, 183, 1006, 7),
510
+ (158, 183, 1007, 2),
511
+ (159, 183, 1008, 3),
512
+ (160, 185, 13, 1),
513
+ (161, 185, 14, 2),
514
+ (162, 188, 14, 1),
515
+ (163, 189, 1, 2),
516
+ (164, 189, 28, 3),
517
+ (165, 189, 29, 1),
518
+ (166, 190, 37, 1),
519
+ (167, 192, 14, 2),
520
+ (168, 192, 28, 1),
521
+ (169, 194, 1, 1),
522
+ (170, 209, 35, 1),
523
+ (171, 213, 13, 1),
524
+ (172, 213, 14, 2),
525
+ (173, 216, 1, 1),
526
+ (174, 216, 13, 3),
527
+ (175, 216, 14, 4),
528
+ (176, 216, 28, 5),
529
+ (177, 216, 40, 2),
530
+ (178, 219, 48, 1),
531
+ (179, 221, 22, 1),
532
+ (180, 221, 28, 4),
533
+ (181, 221, 1007, 2),
534
+ (182, 221, 1008, 3),
535
+ (183, 224, 8, 3),
536
+ (184, 224, 36, 1),
537
+ (185, 224, 52, 2),
538
+ (186, 239, 1, 2),
539
+ (187, 239, 28, 1),
540
+ (188, 242, 13, 1),
541
+ (189, 242, 14, 2);
542
+
543
+ ");
544
+ $installer->endSetup();
545
+ ?>
app/design/frontend/base/default/layout/globalpay.xml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <globalpay_index_index>
4
+ <reference name="root">
5
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
6
+ </reference>
7
+ <reference name="content">
8
+ <block type="globalpay/paymethod_sendform" name="globalpay_sendform" template="smart2pay/globalpay/paymethod/sendform.phtml"/>
9
+ </reference>
10
+ </globalpay_index_index>
11
+ <globalpay_index_info>
12
+ <reference name="root">
13
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
14
+ </reference>
15
+ <reference name="content">
16
+ <block type="globalpay/info" name="globalpay_info" template="smart2pay/globalpay/info.phtml"/>
17
+ </reference>
18
+ </globalpay_index_info>
19
+ </layout>
app/design/frontend/base/default/template/smart2pay/globalpay/info.phtml ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php /**@var $this Smart2Pay_Globalpay_Block_Info */ ?>
2
+
3
+ <p><?php echo $this->__($this->message) ?></p>
app/design/frontend/base/default/template/smart2pay/globalpay/paymethod/form.phtml ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $_code = $this->getMethodCode();
3
+ $s2pMethods = $this->getPaymentMethods();
4
+ ?>
5
+
6
+ <input type="hidden" id="s2p-payment-method" name="payment[method_id]" value="<?php echo isset($s2pMethods[0]['method_id']) ? $s2pMethods[0]['method_id'] : ""?>" />
7
+
8
+ <script src=" https://apitest.smart2pay.com/Scripts/jquery-1.7.2.min.js "></script>
9
+
10
+ <script type="text/javascript">
11
+
12
+ jQuery.noConflict();
13
+
14
+ <?php if(empty($s2pMethods)): ?>
15
+ jQuery('#p_method_globalpay').parent().hide();
16
+ <?php endif; ?>
17
+
18
+ function s2pChooseMethod(methodId){
19
+ jQuery('#s2p-payment-method').removeAttr('disabled');
20
+ jQuery('#s2p-payment-method').val(methodId);
21
+ payment.save();
22
+ }
23
+
24
+ <?php if($this->method_config['autoselect_s2p'] && !empty($s2pMethods)): ?>
25
+ jQuery(function(){
26
+ jQuery('html, body').mousemove(function(){
27
+ jQuery('#s2p-payment-method').removeAttr('disabled');
28
+ });
29
+ jQuery('#p_method_globalpay').click();
30
+ });
31
+ <?php endif; ?>
32
+ </script>
33
+
34
+ <div id="payment_form_globalpay" style="display: none;">
35
+ <?php if($this->method_config['send_payment_method'] && !empty($s2pMethods)): ?>
36
+ <p><?php echo $this->__('Please choose one of the following payment methods.'); ?><br /> <i>(<?php echo $this->__('If you choose to simply continue, default method will be'); ?> <?php echo isset($s2pMethods[0]['display_name']) ? $s2pMethods[0]['display_name'] : ""?>)</i></p>
37
+ <table>
38
+ <?php
39
+ if($this->method_config['show_methods_in_grid']): //show methods in grid
40
+ $grid_col_number = ((int) $this->method_config['grid_column_number'] > 0) ? (int) $this->method_config['grid_column_number'] : 3;
41
+ $printed_grid_cols = 0;
42
+ while ($printed_grid_cols <= sizeof($s2pMethods) - 1):
43
+ echo "<tr>";
44
+ for($c=0; $c<$grid_col_number; $c++):
45
+ if(isset($s2pMethods[$printed_grid_cols])):
46
+ $method = $s2pMethods[$printed_grid_cols];
47
+ ?>
48
+ <td style='vertical-align: middle; text-align: center; padding: 15px;'>
49
+ <a style="display: block; text-decoration: none;" title="<?php echo $this->__($method['display_name']); ?>" href="javascript: s2pChooseMethod('<?php echo $method['method_id']?>')">
50
+ <?php if ($this->method_config['methods_display_mode'] == 'text'): ?>
51
+ <span style='display: block; float: left;'>&raquo <?php echo $this->__($method['display_name']); ?></span>
52
+ <?php elseif ($this->method_config['methods_display_mode'] == 'logo'): ?>
53
+ <img alt="<?php echo $this->__($method['display_name']); ?>" height="30" src='<?php echo $this->getSkinUrl('images/smart2pay/methods/'.$method['logo_url'])?>' />
54
+ <?php else: ?>
55
+ <img alt="<?php echo $this->__($method['display_name']); ?>" height="30" src='<?php echo $this->getSkinUrl('images/smart2pay/methods/'.$method['logo_url'])?>' />
56
+ <br />
57
+ <span>&raquo <?php echo $this->__($method['display_name']); ?></span>
58
+ <?php endif; ?>
59
+ </a>
60
+ </td>
61
+ <?php
62
+ else:
63
+ echo "<td></td>";
64
+ endif;
65
+ $printed_grid_cols++;
66
+ endfor;
67
+ echo "</tr>";
68
+ endwhile;
69
+ ?>
70
+
71
+ <?php else: //show methods in 2 column table ?>
72
+ <?php foreach($s2pMethods as $key => $method): ?>
73
+ <tr>
74
+ <td style='vertical-align: middle;'>
75
+ <a style="display: block; text-decoration: none;" title="<?php echo $this->__($method['display_name']); ?>" href="javascript: s2pChooseMethod('<?php echo $method['method_id']?>')">
76
+ <?php if ($this->method_config['methods_display_mode'] == 'text'): ?>
77
+ <span style='display: block; float: left;'>&raquo <?php echo $this->__($method['display_name']); ?></span>
78
+ <?php elseif ($this->method_config['methods_display_mode'] == 'logo'): ?>
79
+ <img alt="<?php echo $this->__($method['display_name']); ?>" height="30" src='<?php echo $this->getSkinUrl('images/smart2pay/methods/'.$method['logo_url'])?>' />
80
+ <?php else: ?>
81
+ <img alt="<?php echo $this->__($method['display_name']); ?>" height="30" src='<?php echo $this->getSkinUrl('images/smart2pay/methods/'.$method['logo_url'])?>' />
82
+ <br />
83
+ <span>&raquo <?php echo $this->__($method['display_name']); ?></span>
84
+ <?php endif; ?>
85
+ </a>&nbsp;&nbsp;&nbsp;
86
+ <?php echo ($this->method_config['show_text_img']) ? "<br />" : ""?>
87
+ </td>
88
+ <td style='padding-bottom: 10px; padding-left: 10px;'>
89
+ <?php echo $this->__($method['description']); ?>
90
+ </td>
91
+ </tr>
92
+ <?php endforeach; ?>
93
+ <?php endif; ?>
94
+ </table>
95
+ <?php else: ?>
96
+ <table>
97
+ <?php
98
+ if($this->method_config['show_methods_in_grid']): //show methods in grid
99
+ $grid_col_number = ((int) $this->method_config['grid_column_number'] > 0) ? (int) $this->method_config['grid_column_number'] : 3;
100
+ $printed_grid_cols = 0;
101
+ while ($printed_grid_cols <= sizeof($s2pMethods) - 1):
102
+ echo "<tr>";
103
+ for($c=0; $c<$grid_col_number; $c++):
104
+ if(isset($s2pMethods[$printed_grid_cols])):
105
+ $method = $s2pMethods[$printed_grid_cols];
106
+ ?>
107
+ <td style='vertical-align: middle; text-align: center; padding: 15px;'>
108
+ <span>
109
+ <?php if ($this->method_config['methods_display_mode'] == 'text'): ?>
110
+ <span style='display: block; float: left;'>&raquo <?php echo $this->__($method['display_name']); ?></span>
111
+ <?php elseif ($this->method_config['methods_display_mode'] == 'logo'): ?>
112
+ <img alt="<?php echo $this->__($method['display_name']); ?>" height="30" src='<?php echo $this->getSkinUrl('images/smart2pay/methods/'.$method['logo_url'])?>' />
113
+ <?php else: ?>
114
+ <img alt="<?php echo $this->__($method['display_name']); ?>" height="30" src='<?php echo $this->getSkinUrl('images/smart2pay/methods/'.$method['logo_url'])?>' />
115
+ <br />
116
+ <span>&raquo <?php echo $this->__($method['display_name']); ?></span>
117
+ <?php endif; ?>
118
+ </span>
119
+ </td>
120
+ <?php
121
+ else:
122
+ echo "<td></td>";
123
+ endif;
124
+ $printed_grid_cols++;
125
+ endfor;
126
+ echo "</tr>";
127
+ endwhile;
128
+ ?>
129
+
130
+ <?php else: //show methods in 2 column table ?>
131
+ <?php foreach($s2pMethods as $key => $method): ?>
132
+ <tr>
133
+ <td style='vertical-align: middle;'>
134
+ <span>
135
+ <?php if ($this->method_config['methods_display_mode'] == 'text'): ?>
136
+ <span style='display: block; float: left;'>&raquo <?php echo $this->__($method['display_name']); ?></span>
137
+ <?php elseif ($this->method_config['methods_display_mode'] == 'logo'): ?>
138
+ <img alt="<?php echo $this->__($method['display_name']); ?>" height="30" src='<?php echo $this->getSkinUrl('images/smart2pay/methods/'.$method['logo_url'])?>' />
139
+ <?php else: ?>
140
+ <img alt="<?php echo $this->__($method['display_name']); ?>" height="30" src='<?php echo $this->getSkinUrl('images/smart2pay/methods/'.$method['logo_url'])?>' />
141
+ <br />
142
+ <span>&raquo <?php echo $this->__($method['display_name']); ?></span>
143
+ <?php endif; ?>
144
+ </span>&nbsp;&nbsp;&nbsp;
145
+ <?php echo ($this->method_config['show_text_img']) ? "<br />" : ""?>
146
+ </td>
147
+ <td style='padding-bottom: 10px; padding-left: 10px;'>
148
+ <?php echo $this->__($method['description']); ?>
149
+ </td>
150
+ </tr>
151
+ <?php endforeach; ?>
152
+ <?php endif; ?>
153
+ </table>
154
+ <?php endif; ?>
155
+ </div>
app/design/frontend/base/default/template/smart2pay/globalpay/paymethod/sendform.phtml ADDED
@@ -0,0 +1,247 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <div style="<?=($this->form_data['debug_form']) ? "display: table;" : "display: none;" ?>">
3
+
4
+ <?php if($this->form_data['debug_form']): ?>
5
+ <p><b>Message to hash</b>: <?=$this->message_to_hash?></p>
6
+ <p><b>Hash</b>: <?=$this->hash?></p>
7
+ <?php endif; ?>
8
+
9
+ <form action="<?= $this->form_data['post_url'] ?>" id="s2pform" method="POST" <?php if($this->form_data['redirect_in_iframe']) echo 'target="merchantIframe"'; ?>>
10
+ <table>
11
+ <tr>
12
+ <td>
13
+ MerchantID
14
+ </td>
15
+ <td>
16
+ <input type="text" name="MerchantID" value="<?= $this->form_data['mid'] ?>"/>
17
+ </td>
18
+ </tr>
19
+ <tr>
20
+ <td>
21
+ MerchantTransactionID
22
+ </td>
23
+ <td>
24
+ <input type="text" name="MerchantTransactionID" value="<?= $this->form_data['order_id'] ?>"/>
25
+ </td>
26
+ </tr>
27
+ <tr>
28
+ <td>
29
+ Amount
30
+ </td>
31
+ <td>
32
+ <input type="text" name="Amount" value="<?= $this->form_data['amount'] ?>"/>
33
+ </td>
34
+ </tr>
35
+ <tr>
36
+ <td>
37
+ Currency
38
+ </td>
39
+ <td>
40
+ <input type="text" name="Currency" value="<?= $this->form_data['currency'] ?>"/>
41
+ </td>
42
+ </tr>
43
+ <tr>
44
+ <td>
45
+ ReturnURL
46
+ </td>
47
+ <td>
48
+ <input type="text" name="ReturnURL" value="<?= $this->form_data['return_url'] ?>"/>
49
+ </td>
50
+ </tr>
51
+ <tr>
52
+ <td>
53
+ IncludeMethodIDs
54
+ </td>
55
+ <td>
56
+ <input type="text" name="IncludeMethodIDs" value="<?= $this->form_data['methods'] ?>"/>
57
+ </td>
58
+ </tr>
59
+ <tr>
60
+ <td colspan="2">
61
+ Optional:
62
+ </td>
63
+ </tr>
64
+ <?php if($this->form_data['send_customer_name']): ?>
65
+ <tr>
66
+ <td>
67
+ CustomerName
68
+ </td>
69
+ <td>
70
+ <input type="text" name="CustomerName" value="<?= $this->form_data['customer_name'] ?>"/>
71
+ </td>
72
+ </tr>
73
+ <?php endif; ?>
74
+
75
+ <?php if($this->form_data['send_customer_email']): ?>
76
+ <tr>
77
+ <td>
78
+ CustomerEmail
79
+ </td>
80
+ <td>
81
+ <input type="text" name="CustomerEmail" value="<?= $this->form_data['customer_email'] ?>"/>
82
+ </td>
83
+ </tr>
84
+ <?php endif; ?>
85
+
86
+ <?php if($this->form_data['send_country']): ?>
87
+ <tr>
88
+ <td>
89
+ Country
90
+ </td>
91
+ <td>
92
+ <input type="text" name="Country" value="<?= $this->form_data['country'] ?>"/>
93
+ </td>
94
+ </tr>
95
+ <?php endif; ?>
96
+
97
+ <?php if($this->form_data['send_payment_method']): ?>
98
+ <tr>
99
+ <td>
100
+ MethodID
101
+ </td>
102
+ <td>
103
+ <input type="text" name="MethodID" value="<?= $this->form_data['method_id'] ?>"/>
104
+ </td>
105
+ </tr>
106
+ <?php endif; ?>
107
+
108
+ <?php if($this->form_data['send_product_description']): ?>
109
+ <?php if($this->form_data['product_description_ref']): ?>
110
+ <tr>
111
+ <td>
112
+ Description
113
+ </td>
114
+ <td>
115
+ <input type="text" name="Description" value="<?= "Ref. no.: ".$this->form_data['order_id'] ?>"/>
116
+ </td>
117
+ </tr>
118
+ <?php else: ?>
119
+ <tr>
120
+ <td>
121
+ Description
122
+ </td>
123
+ <td>
124
+ <input type="text" name="Description" value="<?= $this->form_data['product_description_custom'] ?>"/>
125
+ </td>
126
+ </tr>
127
+ <?php endif; ?>
128
+ <?php endif; ?>
129
+
130
+ <?php if($this->form_data['skip_payment_page']): ?>
131
+ <?php if(!in_array($this->form_data['method_id'], array(1, 20))): ?>
132
+ <tr>
133
+ <td>
134
+ SkipHPP
135
+ </td>
136
+ <td>
137
+ <input type="text" name="SkipHPP" value="1"/>
138
+ </td>
139
+ </tr>
140
+ <?php endif; ?>
141
+ <?php endif; ?>
142
+
143
+ <?php if($this->form_data['redirect_in_iframe']): ?>
144
+ <tr>
145
+ <td>
146
+ RedirectInIframe
147
+ </td>
148
+ <td>
149
+ <input type="text" name="RedirectInIframe" value="1"/>
150
+ </td>
151
+ </tr>
152
+ <?php endif; ?>
153
+
154
+ <?php if($this->form_data['skin_id']): ?>
155
+ <tr>
156
+ <td>
157
+ SkinID
158
+ </td>
159
+ <td>
160
+ <input type="text" name="SkinID" value="<?=$this->form_data['skin_id']?>"/>
161
+ </td>
162
+ </tr>
163
+ <?php endif; ?>
164
+
165
+ <tr>
166
+ <td>
167
+ Hash
168
+ </td>
169
+ <td>
170
+ <input type="text" name="Hash" value="<?= $this->form_data['hash'] ?>"/>
171
+ </td>
172
+ </tr>
173
+ <tr>
174
+ <td colspan='2'>
175
+ <input type="submit" value="Submit"/>
176
+ </td>
177
+ </tr>
178
+ </table>
179
+ </form>
180
+ </div>
181
+
182
+ <div id="iframe-container" style="display: none; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; z-index: 1000">
183
+ <div style="position: relative; width: 100%; height: 100%;">
184
+ <div style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; background: #333; opacity: 0.5; filter:alpha(opacity=50)"></div>
185
+ <div style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;">
186
+ <div style="display: table; margin: 0px auto; margin-top: 50px;">
187
+ <?php if($this->form_data['redirect_in_iframe'] && $this->form_data['skip_payment_page'] && ($this->form_data['method_id'] == 1001 || $this->form_data['method_id'] == 1002)):?>
188
+ <iframe style='border: none; margin: 0px auto; background-color: #ffffff;' id="merchantIframe" name="merchantIframe" src="" width="780" height="500">
189
+ <?php else:?>
190
+ <iframe style='border: none; margin: 0px auto; background-color: transparent;' id="merchantIframe" name="merchantIframe" src="" width="900" height="800">
191
+ <?php endif;?>
192
+
193
+ </iframe>
194
+ </div>
195
+ </div>
196
+ </div>
197
+ </div>
198
+
199
+ <script src="https://apitest.smart2pay.com/Scripts/jquery-1.7.2.min.js"></script>
200
+ <script>
201
+
202
+ jQuery.noConflict();
203
+
204
+ function modalIframe(){
205
+ jQuery("#iframe-container").css({height: jQuery('body').height()});
206
+ jQuery("#iframe-container").appendTo('body').show();
207
+ }
208
+
209
+ jQuery(document).ready(function() {
210
+
211
+ jQuery('#s2pform').submit(function(){
212
+ modalIframe();
213
+ });
214
+ // autosend form if needed
215
+ <?php if(!$this->form_data['debug_form']): ?>
216
+ jQuery("#s2pform").submit();
217
+ <?php endif; ?>
218
+ // get/parse smart2pay message
219
+ var onmessage = function(e) {
220
+ console.log(e);
221
+ if(e.data == 'close_HPP') {
222
+ setTimeout(function() {jQuery('iframe#merchantIframe').remove()}, 300);
223
+ }
224
+ else if (e.data.substring(0, 7) == "height=") {
225
+ var iframe_height = e.data.substring(7);
226
+ jQuery('iframe#merchantIframe').attr('height', parseInt(iframe_height)+300);
227
+ console.log("jQuery('iframe#merchantIframe').attr('height'," + (parseInt(iframe_height)+300) + ");");
228
+ }
229
+ else if (e.data.substring(0, 6) == "width=") {
230
+ var iframe_width = e.data.substring(6);
231
+ jQuery('iframe#merchantIframe').attr('width', parseInt(iframe_width)+100);
232
+ console.log("jQuery('iframe#merchantIframe').attr('width'," + (parseInt(iframe_width)+100) + ");");
233
+ }
234
+
235
+ else if (e.data.substring(0, 12) == "redirectURL="){
236
+ window.location = e.data.substring(12);
237
+ }
238
+ }
239
+ // set event listener for smart2pay
240
+ if(typeof window.addEventListener != 'undefined') {
241
+ window.addEventListener('message', onmessage, false);
242
+ }
243
+ else if(typeof window.attachEvent != 'undefined') {
244
+ window.attachEvent('onmessage', onmessage);
245
+ }
246
+ });
247
+ </script>
app/etc/modules/Smart2Pay_Globalpay.xml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Smart2Pay_Globalpay>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ <depends>
8
+ <Mage_Payment />
9
+ </depends>
10
+ </Smart2Pay_Globalpay>
11
+ </modules>
12
+ </config>
app/locale/en_US/Smart2Pay_Globalpay.csv ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Please choose one of the following payment methods.","Please choose one of the following payment methods."
2
+ "If you choose to simply continue, default method will be", "If you simply choose continue, the default payment method will be"
3
+ "Bank Transfer","Bank Transfer"
4
+ "iDEAL","iDEAL"
5
+ "MrCash","MrCash"
6
+ "Giropay","Giropay"
7
+ "EPS","EPS"
8
+ "UseMyFunds","UseMyFunds"
9
+ "DirectEbanking","DirectEbanking"
10
+ "Przelewy24","Przelewy24"
11
+ "OneCard","OneCard"
12
+ "CashU","CashU"
13
+ "POLi","POLi"
14
+ "DineroMail","DineroMail"
15
+ "Multibanco SIBS","Multibanco SIBS"
16
+ "Moneta Wallet","Moneta Wallet"
17
+ "WebToPay","WebToPay"
18
+ "Alipay","Alipay"
19
+ "Abaqoos","Abaqoos"
20
+ "eBanka","eBanka"
21
+ "Ukash","Ukash"
22
+ "GluePay","GluePay"
23
+ "Debito Banco do Brasil","Debito Banco do Brasil"
24
+ "CuentaDigital","CuentaDigital"
25
+ "CardsBrazil","CardsBrazil"
26
+ "PaysBuy","PaysBuy"
27
+ "Mazooma","Mazooma"
28
+ "eNETS Debit","eNETS Debit"
29
+ "Paysafecard","Paysafecard"
30
+ "PayPal","PayPal"
31
+ "PagTotal","PagTotal"
32
+ "Payeasy","Payeasy"
33
+ "MercadoPago","MercadoPago"
34
+ "Mozca","Mozca"
35
+ "Gash","Gash"
36
+ "ToditoCash","ToditoCash"
37
+ "SecureVaultPayments","SecureVaultPayments"
38
+ "Boleto","Boleto"
39
+ "Debito","Debito"
40
+ "Transferencia","Transferencia"
41
+ "QIWI Wallet","QIWI Wallet"
42
+ "Beeline","Beeline"
43
+ "Megafon","Megafon"
44
+ "MTS","MTS"
45
+ "WebMoney","WebMoney"
46
+ "Yandex","Yandex"
47
+ "Alliance Online","Alliance Online"
48
+ "AmBank","AmBank"
49
+ "CIMB Clicks","CIMB Clicks"
50
+ "FPX","FPX"
51
+ "Hong Leong Bank Transfer","Hong Leong Bank Transfer"
52
+ "Maybank2U","Maybank2U"
53
+ "Meps Cash","Meps Cash"
54
+ "Mobile Money","Mobile Money"
55
+ "RHB","RHB"
56
+ "Webcash","Webcash"
57
+ "Credit Cards Colombia","Credit Cards Colombia"
58
+ "PSE","PSE"
59
+ "ACH Debit","ACH Debit"
60
+ "Via Baloto","Via Baloto"
61
+ "Referenced Payment","Referenced Payment"
62
+ "Mandiri","Mandiri"
63
+ "Bank Transfer description","Bank Transfer offers you the possibility to pay locally from your own bank account. You will get a reference number and the bank account details to be able to make the payment. "
64
+ "iDEAL description","iDEAL allows you to buy securely on the Internet directly from your bank account opened at one of the major Dutch banks: ING, Postbank, ABN AMRO, Rabobank and SNS Bank"
65
+ "MrCash description","Bancontact/Mister Cash is the Belgium ATM card. You can pay with this card over internet, using a unique TAN (Transaction Auhorization Number). Please make sure your card is enabled for internet purchases. "
66
+ "Giropay description","Giropay is an online payment method that enables you to make real time payments via internet banking. In order to use Giropay, you must have a Girokonto (Giro account at a participating Bank or Sparkasse)."
67
+ "EPS description","EPS e-payment standard allows you to make real time online payments via your internet banking. The main banks where you can pay from are: Bank Austria Creditanstalt, Erste Bank Sparkasse, Raiffeisen Bank and Bawag PSK."
68
+ "UseMyFunds description","UseMyFunds is secure, convenient and easy to use! It works with your existing online banking service (there is nothing to download or install on your computer). You need to register the first time you pay."
69
+ "DirectEbanking description","Sofortuberweisung/DirectEbanking is an online payment method, an instant payment through a direct bank transfer from your bank account via internet banking."
70
+ "Przelewy24 description","Przelewy24 is a secure and fast online payment service linked to all the major banks and payment methods in Poland. "
71
+ "OneCard description","OneCard is the fastest growing Internet payment solution in the Middle East and North Africa. You could simply use Onecard prepaid cards directly or you can open an Onecard account and then reload the account. If you do not have an Onecard account click <a href=""http://www.onecard.net/customer/index.html?showRegistrationBox=true&siteLanguage=en"" target=""_blank"">here</a> to register."
72
+ "CashU description","CashU is the most widely used prepaid and electronic wallet in the Middle East and North Africa (excluding credit cards).You could simply use Cashu prepaid cards directly or you can open a CashU account and then reload your account. If you do not have a CashU account click <a href=""https://www.cashu.com/CLogin/registersForm?lang=en"" target=""_blank"">here</a> to register."
73
+ "POLi description","POLi is an online payment service that enables you to safely pay directly from your own internet banking. In order to pay with POLi you will have to select your bank and download the POLi application."
74
+ "DineroMail description","DineroMail is a major electronic payment system on the Latin American market that offers all of the most popular payment methods available in Argentina, Brazil, Chile, Colombia and Mexico. If you do not have a DineroMail account click <a href=""http://www.dineromail.com/"" target=""_blank"">here</a> to register."
75
+ "Multibanco SIBS description","With Multibanco/SIBS you receive payment details (3 sets of digits - Entity, Reference and Value) which you can use to pay the Merchant. You can make this payment at a Multibanco ATM, internet banking or mobile phone."
76
+ "Moneta Wallet description","Moneta.ru is a major electronic payment system on the Russian market that offers all of the most popular payment methods available in Russia and Ukraine. You can pay direct or via the Moneta Wallet."
77
+ "WebToPay description","WebToPay is a reliable, secure and fast online system that offers all of the most popular payment methods available in the Baltic Countries. In order to use this method you need to have a WebToPay account. If you do not have a WebToPay account click <a href=""https://www.webtopay.com/registration.html"" target=""_blank"">here</a> to register."
78
+ "Alipay description","You simply need to have an Alipay account and deposit money to your account: using a bank account from one of the banks that are accepted by Alipay (19 Chinese national banks) or using a credit/debit card. If you do not have an Alipay account click <a href=""https://globalprod.alipay.com/order/emailVerify.htm"" target=""_blank"">here</a> to register."
79
+ "Abaqoos description","You can pay with Abaqoos via cash or internet banking from all the major banks. Only the Abaqoos vouchers registered with Smart2Pay as provider can be used for making your payment. If you do not have already an Abaqoos voucher click <a href=""https://www.abaqoos.com/PODWebAuthSite/Registration.aspx?provider=smart2pay"" target=""_blank"">here</a> to register. After you create your account please deposit money in it to be able to pay."
80
+ "eBanka description","eBanka (eKonto) is an online banking service offered by Raiffeisen Bank, so to use this method you need to have an eKonto account at Raiffeisen Bank. You don"
81
+ "Ukash description","Ukash voucher is a prepaid voucher you can use to pay - there are no extra fees. So, if you want to pay using Ukash voucher you simply visit your <a href=""http://www.ukash.com/global/en/where-to-get/global.aspx"" target=""_blank"">nearest store</a>. To pay you simply type in the 19 digit voucher code and the voucher value."
82
+ "GluePay description","Instant Bank (former GluePay) allows you to pay online with your bank account - fast, easy and secure. Just choose your bank, follow the instructions and complete the details needed. Then confirm the payment as you normally do with your internet banking by signing with a one-time bank security code from your token and you will have completed the payment."
83
+ "Debito Banco do Brasil description","Debito Banco do Brasil allows you to pay online with your bank account - fast, easy and secure. You need to have a bank account with internet banking at Banco do Brasil."
84
+ "CuentaDigital description","CuentaDigital is a leading electronic wallet provider in South America that offers all of the most popular payment methods available. To purchase with this method you need to have a CuentaDigital account. Click <a href=""https://www.cuentadigital.com/area.php?name=cliente&op=new_user"" target=""_blank"">here</a>to register and then reload the account if you do not have already a CuentaDigital account."
85
+ "CardsBrazil description","Please choose your card brand and enter the card details. The supported card types: Visa, MasterCard, Amex, Diners, JCB, Hipercard, Sorocred, Aura, Discover, Cabal and Argencard."
86
+ "PaysBuy description","PaysBuy allows you to pay with the flexibility using PaysBuy account balances (click <a href=""https://www.paysbuy.com/register.aspx"" target=""_blank"">here</a> to create your PaysBuy account if do not have one already), or directly via internet banking, credit cards or cash. "
87
+ "Mazooma description","Mazooma is an innovative payment solution provider for online commerce. Mazooma lets you pay from your own bank account by connecting you directly to your online bank account for a safe, simple and easy checkout."
88
+ "eNETS Debit description","eNETS Debit is an Internet-based payment method that enables you to pay from your bank account using your Internet Banking PIN and ID. "
89
+ "Paysafecard description","Paysafecard voucher is a prepaid voucher you can use to pay- there are no extra fees. So, if you want to purchase using Paysafecard voucher you simply visit your <a href=""http://www.paysafecard.com/uk/buy/"" target=""_blank"">nearest store</a>. Then you simply type in the 16 digit voucher code and that"
90
+ "PayPal description","PayPal is the world's largest online payment network, serving over 230 million members in 190 countries and regions. With PayPal you can pay using your credit card or checking account. If you do not have a PayPal account click <a href=""https://www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=POF0zpshlSyFe4t6PMraBTKqVa0vfnf5zlWQViMb3horYjAo21mGHfjsmmO&dispatch=5885d80a13c0db1f8e263663d3faee8d7283e7f0184a5674430f290db9e9c846"" target=""_blank"">here</a> to register."
91
+ "PagTotal description","PagTotal is a payment method in Brazil, reinforced by mobile phone security. The main benefit in using PagTotal is that it enables you to pay and confirm the payment anywhere you want, just through a simple SMS. If you do not have a Pagtotal account click <a href=""https://www.pagtotal.com.br/index.php?op=3"" target=""_blank"">here</a> to register."
92
+ "Payeasy description","PayEasy provides a secure, unified interface to all of the popular payment options. Via PayEasy you can pay using major credit cards, ATM debit cards, mobile payments, over-the-counter-cash (Dragonpay), online banking payments and direct bank transfers."
93
+ "MercadoPago description","MercadoPago is the biggest Internet Wallet in Latin America allowing you to pay via the most popular methods of payment. To pay with MercadoPago you need to have a MercadoPago account. If you do not have a MercadoPago account click <a href=""https://www.mercadopago.com/mlb/cadastro/register"" target=""_blank"">here</a> to register. "
94
+ "Mozca description","To pay with Mozca is very simple: you just use your mobile phone number and a 4-digit password to confirm that your mobile phone really belongs to you and is in your hands. A PIN Code MOZCA will be sent to you via SMS as a confirmation of your payment."
95
+ "Gash description","Gash voucher is a prepaid voucher you can use to pay- there are no extra fees. So, if you want to purchase using GASH voucher you simply visit your <a href=""http://www.gashplus.com/gashstore/GashStore.aspx"" target=""_blank"">nearest store</a>. Then you simply type in the 14/20/21 digit voucher code and that"
96
+ "ToditoCash description","Todito Cash is a rechargeable prepaid card that you can use to pay and you can recharge just like you do with your mobile phone in over 20,000 outlets including convenience <a href=""https://www.toditocash.com/html/puntosdeventa.php"" target=""_blank"">stores and banks</a>.If you do not have a ToditoCash account click <a href=""https://www.toditocash.com/php/crearCuenta.php"" target=""_blank"">here</a> to register."
97
+ "SecureVaultPayments description","SecureVaultPayments allows you to pay using your internet banking. You choose your bank and all the other payment details you will enter at your own bank."
98
+ "Boleto description","Boleto Bancario is one of the most used payment options in Brazil. To pay with Boleto Bancario you print the Boleto and can go to a physical bank branch in your area and pay with cash, use online banking, or simply go to an ATM machine."
99
+ "Debito description","Debito Bradesco is a real time bank transfer payment option available for Bradesco Bank Customers in Brazil. You simply need to enter your Banco Bradesco debit card number and confirm the payment with a PIN number."
100
+ "Transferencia description","Transferencia Entre Contas is a real-time bank transfer method allowing you to pay. To use this payment method you need a bank account at Bradesco with internet banking."
101
+ "QIWI Wallet description","QIWI is a major electronic payment system on the Russian market that offers all of the popular payment methods through Qiwi Wallet or directly. You can pay with QIWI Wallet from the balance of your QIWI account, or pay directly with debit or credit card, or using cash at a QIWI kiosk. "
102
+ "Beeline description","This option is available if your phone number belongs to Beeline mobile operator. Beeline approves or declines your payment request depending on the amount of your phone balance."
103
+ "Megafon description","This option is available if your phone number belongs to Megafon mobile operator. Megafon approves or declines your payment request depending on the amount of your phone balance."
104
+ "MTS description","This option is available if your phone number belongs to MTC mobile operator. MTC approves or declines your payment request depending on the amount of your phone balance."
105
+ "WebMoney description","WebMoney Transfer is a payment system offering most popular payment methods direct and through the WebMoney Wallet. To be able to pay with WebMoney you need to register first (click <a href=""http://start.webmoney.ru/?lang=en"" target=""_blank"">here</a>) if you are not yet registered."
106
+ "Yandex description","Yandex.Money is the leading online payment system in Russia that offers most of the popular payment methods direct and through Yandex.Money eWallet. To pay with Yandex.Money eWallet you only need a web browser and can pay using - cash, bank account or credit card."
107
+ "Alliance Online description","Alliance Online is an online payment method that allows you to pay in real time via internet banking. To use this payment method you need to have a bank account with internet banking at Alliance Online Bank."
108
+ "AmBank description","AmBank is an online payment method that allows you to pay in real time via internet banking. To use this payment method you need to have a bank account with internet banking at AmBank."
109
+ "CIMB Clicks description","CIMB Clicks (formerly known as Channel-e) is an online payment method that allows you to pay in real time via internet banking. To use this payment method you need to have a bank account with internet banking at CIMB Bank."
110
+ "FPX description","FPX is an online payment method that allows you to pay in real time via internet banking. You just need to choose your own bank and enter on the bank"
111
+ "Hong Leong Bank Transfer description","Hong Leong Bank Transfer is an online payment method that allows you to pay in real time via internet banking. To use this payment method you need to have a bank account with internet banking at Hong Leong Bank."
112
+ "Maybank2U description","Maybank2U is an online payment method that allows you to pay in real time via internet banking. To use this payment method you need to have a bank account with internet banking at Maybank2U."
113
+ "Meps Cash description","MEPSCASH is electronic money (e-money) provided via MEPS. You need to first top MEPSCASH into the ATM card or MyKad (similar to TouchnGo). When you pay, the MEPSCASH amount is deducted from the card itself."
114
+ "Mobile Money description","Mobile Money allows you to pay via your mobile phone and is under the supervision of Central Bank of Malaysia. To start using Mobile Money you need to register first (click <a href=""https://mmweb.mobile-money.com/UserReg/index.aspx"" target=""_blank"">here</a>) if you are not yet registered."
115
+ "RHB description","RHB is an online payment method that allows you to pay in real time via internet banking. To use this payment method you need to have a bank account with internet banking at RHB Bank."
116
+ "Webcash description","WEBCASH is a Prepaid Payment System you can use to pay. You determine the amount of the cash value you want to top-up into your Webcash account. If you do not have a Webcash account register <a href=""https://webcash.com.my/postregistration.php?chk=0"" target=""_blank"">here</a>."
117
+ "Credit Cards Colombia description","Please choose your card brand and enter the card details. The supported card types: Visa, MasterCard, Amex, Diners."
118
+ "PSE description","(Acronym in Spanish) Electronic Services Supplier; it is an ACH Colombia SA service where you are redirected to your selected bank website and then you need to introduce your user, password and account number."
119
+ "ACH Debit description","ACH debit is a payment method that allows the Merchant to collect funds from your bank account using your bank routing number and your account number. You are the only one who can give authorization for an ACH debit to occur, at which time the authorized amount is deducted from your account."
120
+ "Via Baloto description","Via Baloto is a cash payment you can use to pay. You will receive a reference number for your payment and an operational number. With this data you can make the payment at Via Baloto centers. Please access <a href=""http://www.autoreseditores.com/pagosonline-puntos-via-baloto.html?state=HUILA&city=PALERMO"" target=""_blank"">pagosonline-puntos-via-baloto/</a> for the complete list of the payment centers. "
121
+ "Referenced Payment description","Referenced Payment is a cash payment you can use to pay. You need to print the voucher with the barcode and pay it at any branch of Bancolombia, Banco de Occidente and Banco Helm."
122
+ "Mandiri description","Mandiri is an online payment method that allows you to pay in real time via internet banking. To use this payment method you need to have a bank account with internet banking at Mandiri Bank."
app/locale/en_US/template/email/smart2pay/globalpay/payment_confirmation.html ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <html>
2
+ <head>
3
+ <title>{{var site_url}} : Order # {{var order_increment_id}} - payment confirmation</title>
4
+ <style type='text/css'>
5
+ body,td { color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; }
6
+ </style>
7
+ </head>
8
+ <body style='background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px;'>
9
+ <table style='width:600; background: #fff; min-height: 300px; margin: 0px auto; padding: 10px; border:1px solid #E0E0E0;'>
10
+ <tr>
11
+ <td>
12
+ <a href='{{var site_url}}'>{{var site_name}}</a>
13
+ <h1 style='font-size:22px; font-weight:normal; line-height:22px;'>Hello, {{var customer_name}}!</h1>
14
+ <p>This is the payment confirmation of order # {{var order_increment_id}}, placed on {{var order_date}}, using Smart2Pay processor.</p>
15
+ <h2 style='font-size:18px; font-weight:normal; line-height:22px;'>Total paid: {{var total_paid}} {{var currency}}</h2>
16
+ <br />
17
+ <p>Thank you!</p>
18
+ <br />
19
+ <p>If you have any questions about your order please contact us at <a href='mailto:{{var support_email}}'>{{var support_email}}</a></p>
20
+ </td>
21
+ </td>
22
+ </table>
23
+ </body>
24
+ </html>
package.xml ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Smart2Pay</name>
4
+ <version>1.0.1</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/OSL-3.0"> The Open Software License 3.0 (OSL-3.0)</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Magento plugin for Smart2Pay Payment Service Provider</summary>
10
+ <description>Smart2PayTM is a Payment Service Provider specializing in internet payments since 2002. Our head office is based in Amsterdam area (Holland); we have offices in Austria, Brazil and Romania. We have partnered with many banks and financial institutions all over the world. We are a one stop shop for leading Merchants selling goods or services over the internet globally. If you need to increase your sales and collect funds from consumers globally, join us. We offer state of the art payment solutions for internet merchants.&#xD;
11
+ &#xD;
12
+ Smart2PayTM offers a wide range of payment methods to different industries active on the web. Our goal is to offer best of class services. On top of this we offer internet merchants more local payments methods to offer their Customers, which means more Sales and Customer satisfaction! A few of the payments methods we accept:&#xD;
13
+ &#xD;
14
+ iDEAL&#xD;
15
+ MrCash&#xD;
16
+ Giropay&#xD;
17
+ EPS&#xD;
18
+ UseMyFunds&#xD;
19
+ DirectEbanking&#xD;
20
+ Przelewy24&#xD;
21
+ OneCard&#xD;
22
+ CashU&#xD;
23
+ POLi&#xD;
24
+ DineroMail&#xD;
25
+ Multibanco SIBS&#xD;
26
+ Moneta Wallet&#xD;
27
+ WebToPay&#xD;
28
+ Alipay&#xD;
29
+ Abaqoos&#xD;
30
+ eBanka&#xD;
31
+ Ukash&#xD;
32
+ GluePay&#xD;
33
+ Debito Banco do Brasil&#xD;
34
+ CuentaDigital&#xD;
35
+ CardsBrazil&#xD;
36
+ PaysBuy&#xD;
37
+ Mazooma&#xD;
38
+ eNETS Debit&#xD;
39
+ Paysafecard&#xD;
40
+ PagTotal&#xD;
41
+ Payeasy&#xD;
42
+ MercadoPago&#xD;
43
+ Mozca&#xD;
44
+ Gash&#xD;
45
+ ToditoCash&#xD;
46
+ Pay with my bank&#xD;
47
+ Boleto&#xD;
48
+ Debito&#xD;
49
+ Transferencia&#xD;
50
+ QIWI Wallet&#xD;
51
+ Beeline&#xD;
52
+ Megafon&#xD;
53
+ MTS&#xD;
54
+ WebMoney&#xD;
55
+ Yandex&#xD;
56
+ Alliance Online&#xD;
57
+ AmBank&#xD;
58
+ CIMB Clicks&#xD;
59
+ FPX&#xD;
60
+ Hong Leong Bank Transfer&#xD;
61
+ Maybank2U&#xD;
62
+ Meps Cash&#xD;
63
+ Mobile Money&#xD;
64
+ RHB&#xD;
65
+ Webcash&#xD;
66
+ Credit Cards Colombia&#xD;
67
+ PSE&#xD;
68
+ ACH Debit&#xD;
69
+ Via Baloto&#xD;
70
+ Referenced Payment&#xD;
71
+ Mandiri&#xD;
72
+ &#xD;
73
+ Let us handle your payments on the web; increase your Sales and Customer satisfaction, join Smart2PayTM, the smart way to pay on the web.&#xD;
74
+ &#xD;
75
+ Smart2PayTM is offering local payment services to international merchants since 2002, covering more than 70 countries worldwide! By adding local payment methods to your ecommerce site, you will boost your sales significantly, by offering the preferred local method of payment to your customers!&#xD;
76
+ &#xD;
77
+ Please e-mail support@smart2pay.com for instruction on account activation.</description>
78
+ <notes>Smart2Pay API integration</notes>
79
+ <authors><author><name>Stefan Iancu</name><user>stefani</user><email>stefan@smart2pay.com</email></author></authors>
80
+ <date>2013-06-20</date>
81
+ <time>13:23:03</time>
82
+ <contents><target name="magecommunity"><dir name="Smart2pay"><dir name="Globalpay"><dir name="Block"><file name="Info.php" hash="7ba152ab49b0dc36cc9af68d4877a649"/><dir name="Paymethod"><file name="Form.php" hash="b1482f3ec22b1a2a20117d8847451ec1"/><file name="Sendform.php" hash="50167cb04edf408aa881cdf32d704e4b"/></dir></dir><dir name="Helper"><file name="Data.php" hash="bb23054b861b1468c0a70e2ce5acdb8d"/><file name="Helper.php" hash="a549c535e360a93958c6ca941f80b129"/></dir><dir name="Model"><file name="Country.php" hash="4b433925bed9f5d47d64497432e75a34"/><file name="Countrymethod.php" hash="2aa968c593058fd86b2c8d0550f3e286"/><file name="GlobalpayLog.php" hash="f68fd78b1020729985c405d539cb94d4"/><file name="Logger.php" hash="6268d6a7829e481187b0d998be88bab0"/><file name="Method.php" hash="99a1ed249df5d21e978406f2aee202d7"/><file name="Pay.php" hash="926857693f9d3bdad39cfd5cdd15166b"/><dir name="Resource"><dir name="Country"><file name="Collection.php" hash="ad5ae7ebc94b095bb7264bdf8a8384db"/></dir><file name="Country.php" hash="48d23e3ab4a5c2788839433080179c65"/><dir name="Countrymethod"><file name="Collection.php" hash="31e944d1e66e1da9d3d3779c9cc318d3"/></dir><file name="Countrymethod.php" hash="95db4406bede177910938746e660360f"/><dir name="Logger"><file name="Collection.php" hash="f4db3e9e19df5570603cdddc843017ea"/></dir><file name="Logger.php" hash="ef953126a8793499b676a0aea7070fda"/><dir name="Method"><file name="Collection.php" hash="52091137c467ca6e4ef07e15505e41cd"/></dir><file name="Method.php" hash="ab86d14385f2330a81e13ac0d931fb89"/><file name="Setup.php" hash="6cad02bba0656dab9a7a7a85489f92c3"/></dir><dir name="Source"><file name="Displaymodes.php" hash="d58bea7ddb68a9ae8cd32aa1b175ce5f"/><file name="Methods.php" hash="00c268b45390e7dc505f3bf08699e65d"/><file name="Testlive.php" hash="c9cde641fdc6d7e853de3b6af3fa1d90"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="dc46886339c449cd7a35051f4d0a51c3"/><file name="TestsController.php" hash="491989d17c884c304866caa317ba4b03"/></dir><dir name="etc"><file name="config.xml" hash="80825212843040007f6fd7d30830850d"/><file name="system.xml" hash="f90ab9d1a7251b5a8c6ed7a17ba8453d"/></dir><dir name="sql"><dir name="globalpay_setup"><file name="mysql4-install-0.1.0.php" hash="a9028322416d7a057b933e5ff7461b7e"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="smart2pay"><dir name="globalpay"><file name="info.phtml" hash="27dd1e9f9fc5390ad74f45573ac51dea"/><dir name="paymethod"><file name="form.phtml" hash="0121fb12d5270242933707c0d001bc7a"/><file name="sendform.phtml" hash="b2b5c2863c42203ad576041abb08fec0"/></dir></dir></dir></dir><dir name="layout"><file name="globalpay.xml" hash="d5f5abd3bbf9b9184cd18304acdac867"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Smart2Pay_Globalpay.xml" hash="1f3951214d78df89b34a781bd683699c"/></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><dir name="smart2pay"><dir name="globalpay"><file name="payment_confirmation.html" hash="4a860da24781740ff361d948dd406e21"/></dir></dir></dir></dir><file name="Smart2Pay_Globalpay.csv" hash="806d64bbabd8af1221f20fc948003e8b"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="smart2pay"><dir name="methods"><file name="ABN-AMRO.jpg" hash="82dd9741d9ce8f1c0706a9a29c775faa"/><file name="FPX.gif" hash="34cc5462d208c69dd7cec27024bd1f8a"/><file name="FPX_grey.gif" hash="f56883b1becf81c26a160d8022de9e58"/><file name="Frieslandbank.jpg" hash="25c44572f3d202a37e3801d78f8b9385"/><file name="RBS.jpg" hash="b11037004617f3a5f5afec6ed37953e8"/><file name="abaqoos.gif" hash="9ecff0690953339133a8123c360e0441"/><file name="abaqoos_grey.gif" hash="080802fd1a5b90238ff1d206a15036f5"/><file name="ach.gif" hash="51b669a1d1ca0ff736166d27bf027213"/><file name="ach_grey.gif" hash="b876306dd72ae61c40c34f8b3aee7521"/><file name="alipay.jpg" hash="97430660b667441dc0a5d6611ccef494"/><file name="alipay_grey.jpg" hash="46d76de83013eec2856479e36cdf6dae"/><file name="alliance_online.gif" hash="321be117b6327f455cb3e8d31461fed9"/><file name="alliance_online_grey.gif" hash="e6f9d3180442f9fa432dc9ae0806ed09"/><file name="ambankgroup.gif" hash="f7f6e54e102819c15ad8c6ee37756dec"/><file name="ambankgroup_grey.gif" hash="c2a1ad7a5515fc857c043eaa0bba3955"/><file name="american_express.jpg" hash="84cf63cad26fcb5dbec431e7173731c7"/><file name="american_express_grey.jpg" hash="79bde788bfc298de8e9ea999e3a67754"/><file name="arztebank.jpg" hash="920e6d907af58292790e95ce5cc46905"/><file name="arztebank_grey.jpg" hash="ef1fb04251d1bebb0f9416e0764355a1"/><file name="asn_bank_logo.jpg" hash="ce53a6afff0590f26080ab71b7eddbd9"/><file name="banco_do_brasil.jpg" hash="4d97f3ee9a5ddfe75b52e42efac1b0a6"/><file name="banco_do_brasil_grey.jpg" hash="bd8f1252c31cbd7f4d28fe464ffd931b"/><file name="bank_austria.jpg" hash="a1bbf3da1eaa934e649a25beb56ca723"/><file name="bank_austria_grey.jpg" hash="a076595d919a5d83ca84cda845b40eca"/><file name="bank_burgeland.jpg" hash="c2425d58078fc8409d252667e712678a"/><file name="bank_burgeland_grey.jpg" hash="a1e08848c1ae3cb3ed891619325039a6"/><file name="bank_transfer_logo_v2.png" hash="513ff9d754da83a8b88da278954573ff"/><file name="bank_transfer_logo_v3.png" hash="a07da37a5832723883907a6d97aa011f"/><file name="bank_transfer_logo_v4.png" hash="1450f028cebd6dfc9ae2e36bbabc4fa6"/><file name="bank_transfer_logo_v5.gif" hash="4c76e68b7b0bab515876738b2f8e5539"/><file name="bank_transfer_logo_v5_grey.gif" hash="acb5862cf5636d94b5639e01069b58da"/><file name="bawag.jpg" hash="fa7cbc4ed038912ccaff7a93bd12978e"/><file name="bawag_grey.jpg" hash="7fd2c562481207a397e2a57f02dd8f81"/><file name="beeline.gif" hash="ccf64a91497758ccfa09e901cfa3f8f9"/><file name="beeline_grey.gif" hash="50e464db96cc2cde3c3ab3b8ac4e5b50"/><file name="boleto.jpg" hash="c79ebd618a7846334551af31eb4d9210"/><file name="boleto_grey.jpg" hash="d8b8af5824b75978718f4c4afcc344ac"/><file name="bradesco.jpg" hash="9d36af7f1e683bad48cdfbd4bfa7139e"/><file name="bradesco_grey.jpg" hash="93f1d8a84ab95166da85cc79957a1877"/><file name="bradesco_transferencia.jpg" hash="b0104bf5523f25b13c737b6b16ae7861"/><file name="bradesco_transferencia_grey.jpg" hash="2c70c68882be95369364dd032e5a81f6"/><file name="cabal.jpg" hash="4040e34511e05f1116fcadee18caa390"/><file name="cabal_grey.jpg" hash="92d0c8bc4fec1de7bfe2b5394970e49e"/><file name="cards_brl.gif" hash="422c1841a3234b148abdcf2d975f3a6e"/><file name="cards_brl_grey.gif" hash="fb250a891eab3b0c134c4b6b758272ca"/><file name="cards_colombia.jpg" hash="860319e1d33185be94fefcc2ccdbdcc7"/><file name="cards_colombia_grey.jpg" hash="00f7613cc02ffbdd13f8c3cc527ec5d3"/><file name="cards_logo.jpg" hash="f8358cc095447ae13bc01df071ed05cf"/><file name="cards_logo_grey.jpg" hash="6b63d47ac7fa2fc2c161f5343f6bbe83"/><file name="cashu.gif" hash="b11b9372c99e2eeba612deffbecbe23e"/><file name="cashu_grey.gif" hash="b025eb62f94662114c588757fcd28306"/><file name="cimb_clicks.gif" hash="87cfb10e123e945e243d4be68d74dfa4"/><file name="cimb_clicks_grey.gif" hash="ff11b24190a5a4658e2ed02c1eb9e254"/><file name="cuentadigital.gif" hash="6ea9d5498162d29bfcc8783fdb5a5915"/><file name="cuentadigital_grey.gif" hash="55a018c483a9f73e1d6694180a0f916c"/><file name="debito.jpg" hash="9fb5508cd7f0e584a416d0408b87e388"/><file name="debito_bradesco.jpg" hash="eb55ec42d033eba98b2b5075af0e96c0"/><file name="debito_bradesco_grey.jpg" hash="ed2f64e3408fe4ffad34950631bb559d"/><file name="debitobdb.jpg" hash="ca83fb36d62761bf6129e9ed2cd3e4f2"/><file name="debitobdb_grey.jpg" hash="d8f412bcea2de20f0273b41d9efffb25"/><file name="dineromail.gif" hash="165c7a216c2128cb88999d2313a03ee1"/><file name="dineromail_grey.gif" hash="9ea93cee63769fb3917eb7da977c39dd"/><file name="dineromail_v2.gif" hash="4a6753b4abbf58c71331864afa2c87fd"/><file name="dineromail_v2_grey.gif" hash="8d31ce280f249f7191ae3a0ab5563db9"/><file name="diners_club.jpg" hash="1d285b6477835279dede276886c4df91"/><file name="diners_club_grey.jpg" hash="90c195eafa58ade4657ffe3377d4eaaf"/><file name="discover.jpg" hash="7897fbc91bcff2fe3aa5b96e4f27340c"/><file name="discover_grey.jpg" hash="c54ef5a6a415c65cf8dbf3eda04ed441"/><file name="dp24_sofort.gif" hash="591d4c558ba73c63cb86b269edb37aa5"/><file name="dp24_sofort_grey.gif" hash="958dc7077eb00754a18a778d07f1e3b0"/><file name="easybank.jpg" hash="efefee8a24b5c084d65a3b3aef5bc1fc"/><file name="easybank_grey.jpg" hash="c1762fd4716c5d018c1f94e4390b9ac2"/><file name="ebanka.jpg" hash="f12cfb39af1310c60b6c7970d3a2a9b6"/><file name="ebanka_grey.jpg" hash="741393e8af189bddaa6c8778727dfb3c"/><file name="enets.gif" hash="bd6e2b5fc1c2e4f76e7b482275f2bda9"/><file name="enets_grey.gif" hash="59cbf860fe1106ce2650079e1f1c9e13"/><file name="eps-e-payment-standard.gif" hash="adc705e916095300e742bb248d957cde"/><file name="eps-e-payment-standard_grey.gif" hash="7b126f8cc47c6ba24f87f9b42973856f"/><file name="erste.jpg" hash="22220bca0bfa256b5c08f1f78d7f56b2"/><file name="erste_grey.jpg" hash="5480c45e2ff7820414d3097576e1c718"/><file name="gartnerbank.jpg" hash="c512b747545a5f64c07240265291b618"/><file name="gartnerbank_grey.jpg" hash="8a7216a173c15e31b317e33a0d4fcec4"/><file name="gash.gif" hash="9a9ddb20ba6e0e7dc65542c3fd8a3c1a"/><file name="gash_grey.gif" hash="635521bd6cd7e9e16b322fea3df1c39d"/><file name="giropay.gif" hash="a369853d4dca4e678964d3cd0f100ad0"/><file name="giropay_grey.gif" hash="f8f70668270d08d1c4bb4bf7c8fdef8c"/><file name="gluepay.jpg" hash="ab23cfb7303bd716012a82bc01ab0d5f"/><file name="gluepay_grey.jpg" hash="8d59d1eb8202de195120e570c2e526ec"/><file name="hipercard.jpg" hash="f90502730aa04872a58e6384cf8e8867"/><file name="hipercard_grey.jpg" hash="7a4108411fa694ef041152f62910c950"/><file name="hong_leong.gif" hash="2dd6e01d1993f6b5de40ac888723e293"/><file name="hong_leong_grey.gif" hash="8283f40b5e4a4cdb305fbbfc3d1f7cd5"/><file name="hypo.jpg" hash="0b3a6e2dfe85840658c3d2729b540042"/><file name="hypo_grey.jpg" hash="06fa0a4662552761a54e36aad277508d"/><file name="ideal.jpg" hash="37baefc16cd46d0fad89d8b3af68687d"/><file name="ideal_grey.jpg" hash="6d1d7d63b6a144832ec4295f8b28c1d7"/><file name="maestro.jpg" hash="85f3a2b4e288db5a1fdcee4ddbbe0300"/><file name="maestro_grey.jpg" hash="cf93aa2806efc66d39997435339b47b7"/><file name="mandiri.gif" hash="88ed6722469878f1c423d548cb31cd45"/><file name="mandiri_grey.gif" hash="6ec67f2e4c947d670ab689f94d34ef96"/><file name="mastercard.jpg" hash="fcded6aaeecc8e73f3e99187e77b5f34"/><file name="mastercard_grey.jpg" hash="3aa899d221d128c96e0e095aeca763e2"/><file name="maybank2u.gif" hash="fc4f2ae73b4672308451db5bed9c334b"/><file name="maybank2u_grey.gif" hash="b54795f9fcf4adfdb36e65089f62d81b"/><file name="mazooma.gif" hash="2241b7344c2b8e1ee70ad6e073c4f342"/><file name="mazooma_grey.gif" hash="5db064edd62f797baf4bc70d1fa221d3"/><file name="megafon.jpg" hash="9864e6ee4ff66ad0d9e21e596a16b3e4"/><file name="megafon_v1.gif" hash="0daecce60b8719ae8985d0e8a22d53ee"/><file name="megafon_v1_grey.gif" hash="2dadcabaafaf7970bf924c017eb5c419"/><file name="megafon_v2.gif" hash="ef7528f2d666fdfc0d8947ee18980b63"/><file name="megafon_v2_grey.gif" hash="a26f3a31ec3b223d4c84db583c224390"/><file name="meps_cash.gif" hash="cc419c7a482a57688ee5d93f331fcaa5"/><file name="meps_cash_grey.gif" hash="54adc93d4ec83d0dac5a12942c347d9f"/><file name="mercadopago.jpg" hash="f0d1fb160e6087b6505cba8f628da912"/><file name="mercadopago_grey.jpg" hash="777c628df4d889c01a13eaf5981d4513"/><file name="mobile_money.gif" hash="d44ec4368140041bb9fb84d6ee25ebc2"/><file name="mobile_money_grey.gif" hash="58527f75aeb0957e135a8c1fd68c17b5"/><file name="moneta.gif" hash="4bde6bd5ee50af375576974ee119c34b"/><file name="moneta_grey.gif" hash="c001b6ebd356dc0c0234791b950b3a69"/><file name="moneta_v2.gif" hash="14e3ca50db6bf538c3fa8c386411e56b"/><file name="moneta_v2_grey.gif" hash="4a6af98d43978b0783742f9a618d7fae"/><file name="mozca.jpg" hash="626773a49f8dba726f23f16bc258c896"/><file name="mozca_grey.jpg" hash="da34d14a6f4c28d0b5c6423692eb5b25"/><file name="mrcash.gif" hash="ecfb32489dcd09688fad5b116b3a85fd"/><file name="mrcash_grey.gif" hash="4cbaff4a13b6e6aae67946df05c6b27f"/><file name="mts.gif" hash="3c18eeb9214120d260a8a5667023e353"/><file name="mts_grey.gif" hash="e9d0c92e7794dea81039d07f0d09da11"/><file name="onecard.gif" hash="8c0b265fb5ea2fe1b174f87fb08c3e88"/><file name="onecard_grey.gif" hash="f37ec1c53e91e6fc3b9dedad4be9e1b1"/><file name="p24.gif" hash="05d24431783c90f1f37897f5e9a81dc9"/><file name="p24_grey.gif" hash="8bb083943400daed13271899892254b6"/><file name="pagtotal.jpg" hash="44426ff1d7d2d7387241354a91b0d855"/><file name="pagtotal_grey.jpg" hash="02d0a0fd8829cab14bf7a1527aa5a091"/><file name="payeasy.gif" hash="67cf43560bfb9cfe722538ef5c95433d"/><file name="payeasy_grey.gif" hash="47641e238b6fe6416ce2eb2cc351989f"/><file name="payment_in_cash.gif" hash="820e303d6b9ba66deab9f33e14253a58"/><file name="payment_in_cash_grey.gif" hash="978b6c2ca861bf967683d5a19adee694"/><file name="payment_references.gif" hash="ff968e7c1061aec0918b1a437099b540"/><file name="payment_references_grey.gif" hash="b77e2bbe0f62adcc7f1c041a458df752"/><file name="paypal.jpg" hash="c7559f323ab08f854c52fe4895f4ca55"/><file name="paypal_grey.jpg" hash="37597681016a307384874900f6128c33"/><file name="paysafecard.gif" hash="58a072776d1eb9644fdc533c594ef9f4"/><file name="paysafecard_grey.gif" hash="a08463516029a51b82a6329186698542"/><file name="paysbuy.gif" hash="ce0b88b54c2599aa109be5bf8fb4a133"/><file name="paysbuy_grey.gif" hash="6a3f0504f18b83f8987e9c4dc6cb664c"/><file name="poli.gif" hash="85ffbae6ae3706cdd88420f32bce1067"/><file name="poli_grey.gif" hash="1cc332df9c0e07f11567f2ef6cb062dd"/><file name="poli_v2.gif" hash="82a1218a9db8bdb204142b2fd5a2102e"/><file name="poli_v2_grey.gif" hash="ab9ed910c67f6e8f16681af512be3b5a"/><file name="pse.gif" hash="6e3197c2386c10c021085207217bd5e8"/><file name="pse_grey.gif" hash="a4a610bc5ac861ee97baa76c718b9c2b"/><file name="qiwi_wallet.gif" hash="e16df15584ee92d03c68f3a86eef1bc7"/><file name="qiwi_wallet_grey.gif" hash="fa4e3c399e721950d0d0274362677aa4"/><file name="qiwi_wallet_v2.gif" hash="46bce6e2a50c8dcf1532fe4f360957bd"/><file name="qiwi_wallet_v2_grey.gif" hash="d07ab773f6d9d014ac39959165918991"/><file name="rhb.gif" hash="d70d74834b9c1cfe2ff54514611e5684"/><file name="rhb_grey.gif" hash="d7e0e622e7c491d932d545c01150941e"/><file name="secure_vault.gif" hash="4d868b10b4d6545d22371de98cd92da3"/><file name="secure_vault_grey.gif" hash="760faaddc25befe508a6c8301e13cbea"/><file name="sibs_mb.gif" hash="3ea1f60c9c28aa46d747ecc60d19bfc0"/><file name="sibs_mb_grey.gif" hash="5f82bafbdbafdc842d9cd270f5477056"/><file name="sorocred.jpg" hash="ae5246d01aac784074fe326472dd6926"/><file name="sorocred_grey.jpg" hash="99561b84c21316cd94e3b6caafdf5225"/><file name="sparda.jpg" hash="4af507ced7ded8aaf8fb6d3b75c09b7f"/><file name="sparda_grey.jpg" hash="f84beefa87c5357f2d62c914f57a870f"/><file name="svp_grey.png" hash="507db08c738d4d9d314e4bca85a019cc"/><file name="todito_cash.gif" hash="1c1d1a1307f420805f8efd82d4988ae5"/><file name="todito_cash_grey.gif" hash="be7b28e381859bc17890cf7c82e314ff"/><file name="ukash.gif" hash="877c5677688589135a878813c9bc88c0"/><file name="ukash_grey.gif" hash="41ae1ea3c5a3c47853ff4ad898d5aa67"/><file name="umb.gif" hash="1ed0888a7874f41d4459d1cd9d65b171"/><file name="umb_grey.gif" hash="6511e82dc24db5041dadddc4ea735295"/><file name="visa.jpg" hash="41fd15708b63a7a305d8eecd86196677"/><file name="visa_electron.jpg" hash="ed77ab7059c7f16c1ad1a86e08ceacca"/><file name="visa_electron_grey.jpg" hash="6c2fb39684baaf916fcb2b6b5cf46293"/><file name="visa_grey.jpg" hash="1df46140f2380cabd1320048fad0f357"/><file name="volksbank.jpg" hash="70d0d657bd47bde2bb5f5d32ae1d222c"/><file name="volksbank_grey.jpg" hash="c5598166c0909bd09115fe91183feb69"/><file name="web_cash.gif" hash="a33d76bb68588b1f4ee791d0f6da17db"/><file name="web_cash_grey.gif" hash="bca8a9e4c4f296e5b595d719d1054fbb"/><file name="webmoney.jpg" hash="750addb8f763dd8ba9fe55024f392ea0"/><file name="webmoney_v1.gif" hash="ccf285ac5829e91f421c33e4a31b8b8e"/><file name="webmoney_v1_grey.gif" hash="c226455ae63261f4c835a460d65b8c3f"/><file name="webtopay_v3.gif" hash="2445c0587bf52dcfd40d586d910e76c3"/><file name="webtopay_v3_grey.gif" hash="b35f10379f0838103fb02bf414e71984"/><file name="yandex_money.gif" hash="f5111aa14fa33b0bdb0b657b515b00dc"/><file name="yandex_money_grey.gif" hash="96974577c36a912e7b9993cbb56a9121"/></dir></dir></dir></dir></dir></dir></target></contents>
83
+ <compatible/>
84
+ <dependencies><required><php><min>5.2.6</min><max>5.4.16</max></php></required></dependencies>
85
+ </package>
skin/frontend/base/default/images/smart2pay/methods/ABN-AMRO.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/FPX.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/FPX_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/Frieslandbank.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/RBS.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/abaqoos.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/abaqoos_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/ach.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/ach_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/alipay.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/alipay_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/alliance_online.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/alliance_online_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/ambankgroup.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/ambankgroup_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/american_express.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/american_express_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/arztebank.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/arztebank_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/asn_bank_logo.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/banco_do_brasil.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/banco_do_brasil_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/bank_austria.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/bank_austria_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/bank_burgeland.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/bank_burgeland_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/bank_transfer_logo_v2.png ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/bank_transfer_logo_v3.png ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/bank_transfer_logo_v4.png ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/bank_transfer_logo_v5.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/bank_transfer_logo_v5_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/bawag.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/bawag_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/beeline.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/beeline_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/boleto.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/boleto_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/bradesco.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/bradesco_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/bradesco_transferencia.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/bradesco_transferencia_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/cabal.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/cabal_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/cards_brl.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/cards_brl_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/cards_colombia.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/cards_colombia_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/cards_logo.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/cards_logo_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/cashu.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/cashu_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/cimb_clicks.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/cimb_clicks_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/cuentadigital.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/cuentadigital_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/debito.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/debito_bradesco.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/debito_bradesco_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/debitobdb.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/debitobdb_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/dineromail.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/dineromail_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/dineromail_v2.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/dineromail_v2_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/diners_club.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/diners_club_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/discover.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/discover_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/dp24_sofort.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/dp24_sofort_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/easybank.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/easybank_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/ebanka.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/ebanka_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/enets.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/enets_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/eps-e-payment-standard.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/eps-e-payment-standard_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/erste.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/erste_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/gartnerbank.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/gartnerbank_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/gash.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/gash_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/giropay.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/giropay_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/gluepay.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/gluepay_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/hipercard.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/hipercard_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/hong_leong.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/hong_leong_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/hypo.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/hypo_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/ideal.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/ideal_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/maestro.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/maestro_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/mandiri.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/mandiri_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/mastercard.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/mastercard_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/maybank2u.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/maybank2u_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/mazooma.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/mazooma_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/megafon.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/megafon_v1.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/megafon_v1_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/megafon_v2.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/megafon_v2_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/meps_cash.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/meps_cash_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/mercadopago.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/mercadopago_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/mobile_money.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/mobile_money_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/moneta.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/moneta_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/moneta_v2.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/moneta_v2_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/mozca.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/mozca_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/mrcash.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/mrcash_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/mts.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/mts_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/onecard.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/onecard_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/p24.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/p24_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/pagtotal.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/pagtotal_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/payeasy.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/payeasy_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/payment_in_cash.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/payment_in_cash_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/payment_references.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/payment_references_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/paypal.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/paypal_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/paysafecard.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/paysafecard_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/paysbuy.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/paysbuy_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/poli.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/poli_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/poli_v2.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/poli_v2_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/pse.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/pse_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/qiwi_wallet.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/qiwi_wallet_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/qiwi_wallet_v2.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/qiwi_wallet_v2_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/rhb.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/rhb_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/secure_vault.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/secure_vault_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/sibs_mb.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/sibs_mb_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/sorocred.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/sorocred_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/sparda.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/sparda_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/svp_grey.png ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/todito_cash.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/todito_cash_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/ukash.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/ukash_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/umb.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/umb_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/visa.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/visa_electron.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/visa_electron_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/visa_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/volksbank.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/volksbank_grey.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/web_cash.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/web_cash_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/webmoney.jpg ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/webmoney_v1.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/webmoney_v1_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/webtopay_v3.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/webtopay_v3_grey.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/yandex_money.gif ADDED
Binary file
skin/frontend/base/default/images/smart2pay/methods/yandex_money_grey.gif ADDED
Binary file