Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

IPN

  • Loading branch information...
commit 7a206db01b982cc878cc87172761ec7e1af85cd8 1 parent 52285c8
authored December 20, 2011

Showing 242 changed files with 27,301 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  IPN_Example/.gitignore
  2. 47  IPN_Example/Gemfile
  3. 132  IPN_Example/Gemfile.lock
  4. 3  IPN_Example/README
  5. 7  IPN_Example/Rakefile
  6. BIN  IPN_Example/app/assets/images/rails.png
  7. 9  IPN_Example/app/assets/javascripts/application.js
  8. 3  IPN_Example/app/assets/javascripts/pay_pal.js.coffee
  9. 7  IPN_Example/app/assets/stylesheets/application.css
  10. 3  IPN_Example/app/assets/stylesheets/pay_pal.css.scss
  11. 4  IPN_Example/app/controllers/application_controller.rb
  12. 33  IPN_Example/app/controllers/pay_pal_controller.rb
  13. 2  IPN_Example/app/helpers/application_helper.rb
  14. 2  IPN_Example/app/helpers/pay_pal_helper.rb
  15. 0  IPN_Example/app/mailers/.gitkeep
  16. 0  IPN_Example/app/models/.gitkeep
  17. 2  IPN_Example/app/models/user.rb
  18. 14  IPN_Example/app/views/layouts/application.html.erb
  19. 2  IPN_Example/app/views/pay_pal/cancel.html.haml
  20. 15  IPN_Example/app/views/pay_pal/create.html.erb
  21. 1  IPN_Example/app/views/pay_pal/notify.html.haml
  22. 2  IPN_Example/app/views/pay_pal/show.html.haml
  23. 4  IPN_Example/config.ru
  24. 48  IPN_Example/config/application.rb
  25. 6  IPN_Example/config/boot.rb
  26. 25  IPN_Example/config/database.yml
  27. 5  IPN_Example/config/environment.rb
  28. 30  IPN_Example/config/environments/development.rb
  29. 60  IPN_Example/config/environments/production.rb
  30. 39  IPN_Example/config/environments/test.rb
  31. 7  IPN_Example/config/initializers/active_merchant.rb
  32. 7  IPN_Example/config/initializers/backtrace_silencers.rb
  33. 10  IPN_Example/config/initializers/inflections.rb
  34. 5  IPN_Example/config/initializers/mime_types.rb
  35. 7  IPN_Example/config/initializers/secret_token.rb
  36. 8  IPN_Example/config/initializers/session_store.rb
  37. 14  IPN_Example/config/initializers/wrap_parameters.rb
  38. 5  IPN_Example/config/locales/en.yml
  39. 63  IPN_Example/config/routes.rb
  40. 16  IPN_Example/db/migrate/20111219170748_create_users.rb
  41. 30  IPN_Example/db/schema.rb
  42. 10  IPN_Example/db/seeds.rb
  43. 2  IPN_Example/doc/README_FOR_APP
  44. 0  IPN_Example/log/.gitkeep
  45. 26  IPN_Example/public/404.html
  46. 26  IPN_Example/public/422.html
  47. 26  IPN_Example/public/500.html
  48. 0  IPN_Example/public/favicon.ico
  49. 5  IPN_Example/public/robots.txt
  50. 6  IPN_Example/script/rails
  51. 0  IPN_Example/test/fixtures/.gitkeep
  52. 21  IPN_Example/test/fixtures/users.yml
  53. 0  IPN_Example/test/functional/.gitkeep
  54. 7  IPN_Example/test/functional/pay_pal_controller_test.rb
  55. 0  IPN_Example/test/integration/.gitkeep
  56. 12  IPN_Example/test/performance/browsing_test.rb
  57. 13  IPN_Example/test/test_helper.rb
  58. 0  IPN_Example/test/unit/.gitkeep
  59. 4  IPN_Example/test/unit/helpers/pay_pal_helper_test.rb
  60. 7  IPN_Example/test/unit/user_test.rb
  61. 0  IPN_Example/vendor/assets/stylesheets/.gitkeep
  62. 0  IPN_Example/vendor/plugins/.gitkeep
  63. 10  IPN_Example/vendor/plugins/active_merchant/.travis.yml
  64. 1  IPN_Example/vendor/plugins/active_merchant/.yardopts
  65. 753  IPN_Example/vendor/plugins/active_merchant/CHANGELOG
  66. 261  IPN_Example/vendor/plugins/active_merchant/CONTRIBUTORS
  67. 20  IPN_Example/vendor/plugins/active_merchant/Gemfile
  68. 63  IPN_Example/vendor/plugins/active_merchant/GettingStarted.md
  69. 20  IPN_Example/vendor/plugins/active_merchant/MIT-LICENSE
  70. 181  IPN_Example/vendor/plugins/active_merchant/README.md
  71. 15  IPN_Example/vendor/plugins/active_merchant/RELEASING
  72. 101  IPN_Example/vendor/plugins/active_merchant/Rakefile
  73. 34  IPN_Example/vendor/plugins/active_merchant/activemerchant.gemspec
  74. 20  IPN_Example/vendor/plugins/active_merchant/gem-public_cert.pem
  75. 5  IPN_Example/vendor/plugins/active_merchant/generators/gateway/USAGE
  76. 61  IPN_Example/vendor/plugins/active_merchant/generators/gateway/gateway_generator.rb
  77. 77  IPN_Example/vendor/plugins/active_merchant/generators/gateway/templates/gateway.rb
  78. 49  IPN_Example/vendor/plugins/active_merchant/generators/gateway/templates/gateway_test.rb
  79. 57  IPN_Example/vendor/plugins/active_merchant/generators/gateway/templates/remote_gateway_test.rb
  80. 5  IPN_Example/vendor/plugins/active_merchant/generators/integration/USAGE
  81. 68  IPN_Example/vendor/plugins/active_merchant/generators/integration/integration_generator.rb
  82. 34  IPN_Example/vendor/plugins/active_merchant/generators/integration/templates/helper.rb
  83. 54  IPN_Example/vendor/plugins/active_merchant/generators/integration/templates/helper_test.rb
  84. 18  IPN_Example/vendor/plugins/active_merchant/generators/integration/templates/integration.rb
  85. 9  IPN_Example/vendor/plugins/active_merchant/generators/integration/templates/module_test.rb
  86. 100  IPN_Example/vendor/plugins/active_merchant/generators/integration/templates/notification.rb
  87. 41  IPN_Example/vendor/plugins/active_merchant/generators/integration/templates/notification_test.rb
  88. 3  IPN_Example/vendor/plugins/active_merchant/init.rb
  89. 48  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant.rb
  90. 9  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing.rb
  91. 98  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/avs_result.rb
  92. 57  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/base.rb
  93. 68  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/check.rb
  94. 260  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/credit_card.rb
  95. 21  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/credit_card_formatting.rb
  96. 125  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/credit_card_methods.rb
  97. 38  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/cvv_result.rb
  98. 34  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/expiry_date.rb
  99. 170  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateway.rb
  100. 18  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways.rb
  101. 694  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/authorize_net.rb
  102. 858  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/authorize_net_cim.rb
  103. 308  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/barclays_epdq.rb
  104. 139  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/beanstream.rb
  105. 286  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/beanstream/beanstream_core.rb
  106. 54  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/beanstream_interac.rb
  107. 11  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/blue_pay.rb
  108. 142  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/bogus.rb
  109. 17  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/braintree.rb
  110. 9  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/braintree/braintree_common.rb
  111. 308  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/braintree_blue.rb
  112. 17  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/braintree_orange.rb
  113. 23  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/card_save.rb
  114. 230  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/card_stream.rb
  115. 430  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/cyber_source.rb
  116. 597  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/data_cash.rb
  117. 235  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/efsnet.rb
  118. 135  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/elavon.rb
  119. 274  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/epay.rb
  120. 277  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/eway.rb
  121. 264  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/eway_managed.rb
  122. 227  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/exact.rb
  123. 168  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/federated_canada.rb
  124. 177  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/first_pay.rb
  125. 262  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/garanti.rb
  126. 250  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/ideal/ideal_base.rb
  127. 13  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/ideal/ideal_rabobank.pem
  128. 29  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/ideal/ideal_response.rb
  129. 55  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/ideal_rabobank.rb
  130. 221  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/inspire.rb
  131. 164  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/instapay.rb
  132. 258  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/iridium.rb
  133. 276  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/jetpay.rb
  134. 454  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/linkpoint.rb
  135. 156  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/merchant_e_solutions.rb
  136. 289  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/merchant_ware.rb
  137. 36  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/modern_payments.rb
  138. 220  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/modern_payments_cim.rb
  139. 213  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/moneris.rb
  140. 189  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/net_registry.rb
  141. 239  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/netaxept.rb
  142. 168  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/netbilling.rb
  143. 13  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/nmi.rb
  144. 330  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/ogone.rb
  145. 274  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/optimal_payment.rb
  146. 329  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/orbital.rb
  147. 46  ...ple/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/orbital/orbital_soft_descriptors.rb
  148. 397  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/pay_junction.rb
  149. 120  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/pay_secure.rb
  150. 207  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/paybox_direct.rb
  151. 253  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/payflow.rb
  152. 207  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/payflow/payflow_common_api.rb
  153. 39  ...ple/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/payflow/payflow_express_response.rb
  154. 13  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/payflow/payflow_response.rb
  155. 222  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/payflow_express.rb
  156. 15  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/payflow_express_uk.rb
  157. 21  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/payflow_uk.rb
  158. 235  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/payment_express.rb
  159. 121  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/paypal.rb
  160. 354  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb
  161. 49  ...ample/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb
  162. 13  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/paypal_ca.rb
  163. 184  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/paypal_express.rb
  164. 25  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/paypal_express_common.rb
  165. 201  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/paystation.rb
  166. 298  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/plugnpay.rb
  167. 219  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/psigate.rb
  168. 304  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/psl_card.rb
  169. 297  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/qbms.rb
  170. 282  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/quantum.rb
  171. 297  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/quickpay.rb
  172. 315  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/realex.rb
  173. 146  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/sage.rb
  174. 88  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/sage/sage_bankcard.rb
  175. 116  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/sage/sage_core.rb
  176. 97  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/sage/sage_virtual_check.rb
  177. 320  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/sage_pay.rb
  178. 144  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/sallie_mae.rb
  179. 120  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/samurai.rb
  180. 330  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/secure_net.rb
  181. 31  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/secure_pay.rb
  182. 193  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/secure_pay_au.rb
  183. 113  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/secure_pay_tech.rb
  184. 458  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/skip_jack.rb
  185. 271  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/smart_ps.rb
  186. 212  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/stripe.rb
  187. 127  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/trans_first.rb
  188. 25  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/transax.rb
  189. 423  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/trust_commerce.rb
  190. 23  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/usa_epay.rb
  191. 1,496  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/usa_epay_advanced.rb
  192. 194  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/usa_epay_transaction.rb
  193. 233  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/verifi.rb
  194. 189  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/viaklix.rb
  195. 318  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/wirecard.rb
  196. 280  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/worldpay.rb
  197. 17  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations.rb
  198. 68  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/action_view_helper.rb
  199. 23  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/bogus.rb
  200. 17  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/bogus/helper.rb
  201. 11  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/bogus/notification.rb
  202. 10  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/bogus/return.rb
  203. 23  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/chronopay.rb
  204. 120  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/chronopay/helper.rb
  205. 158  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/chronopay/notification.rb
  206. 10  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/chronopay/return.rb
  207. 41  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/direc_pay.rb
  208. 200  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/direc_pay/helper.rb
  209. 76  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/direc_pay/notification.rb
  210. 32  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/direc_pay/return.rb
  211. 37  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/direc_pay/status.rb
  212. 47  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/directebanking.rb
  213. 90  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/directebanking/helper.rb
  214. 120  ...mple/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/directebanking/notification.rb
  215. 11  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/directebanking/return.rb
  216. 30  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/dwolla.rb
  217. 31  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/dwolla/helper.rb
  218. 55  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/dwolla/notification.rb
  219. 38  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/dwolla/return.rb
  220. 48  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/e_payment_plans.rb
  221. 34  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/e_payment_plans/helper.rb
  222. 84  ...ple/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/e_payment_plans/notification.rb
  223. 25  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/gestpay.rb
  224. 42  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/gestpay/common.rb
  225. 70  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/gestpay/helper.rb
  226. 85  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/gestpay/notification.rb
  227. 10  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/gestpay/return.rb
  228. 101  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/helper.rb
  229. 27  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/hi_trust.rb
  230. 58  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/hi_trust/helper.rb
  231. 59  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/hi_trust/notification.rb
  232. 67  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/hi_trust/return.rb
  233. 26  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/moneybookers.rb
  234. 59  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/moneybookers/helper.rb
  235. 129  ...xample/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/moneybookers/notification.rb
  236. 88  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/nochex.rb
  237. 68  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/nochex/helper.rb
  238. 94  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/nochex/notification.rb
  239. 10  IPN_Example/vendor/plugins/active_merchant/lib/active_merchant/billing/integrations/nochex/return.rb
  240. 0  assets/.gitkeep b/IPN_Example/lib/assets/.gitkeep
  241. 0  tasks/.gitkeep b/IPN_Example/lib/tasks/.gitkeep
5  IPN_Example/.gitignore
... ...
@@ -0,0 +1,5 @@
  1
+.bundle
  2
+db/*.sqlite3
  3
+log/*.log
  4
+tmp/
  5
+.sass-cache/
47  IPN_Example/Gemfile
... ...
@@ -0,0 +1,47 @@
  1
+source 'http://rubygems.org'
  2
+
  3
+gem 'rails', '3.1.1'
  4
+
  5
+# Bundle edge Rails instead:
  6
+# gem 'rails',     :git => 'git://github.com/rails/rails.git'
  7
+
  8
+group :development do
  9
+  gem 'sqlite3'
  10
+end
  11
+
  12
+group :production do 
  13
+  gem 'pg'
  14
+end
  15
+
  16
+
  17
+# Gems used only for assets and not required
  18
+# in production environments by default.
  19
+group :assets do
  20
+  gem 'sass-rails',   '~> 3.1.4'
  21
+  gem 'coffee-rails', '~> 3.1.1'
  22
+  gem 'uglifier', '>= 1.0.3'
  23
+end
  24
+
  25
+gem 'jquery-rails'
  26
+gem 'money'
  27
+#gem 'activemerchant'
  28
+gem 'haml'
  29
+gem 'active_utils'
  30
+
  31
+
  32
+# To use ActiveModel has_secure_password
  33
+# gem 'bcrypt-ruby', '~> 3.0.0'
  34
+
  35
+# Use unicorn as the web server
  36
+# gem 'unicorn'
  37
+
  38
+# Deploy with Capistrano
  39
+# gem 'capistrano'
  40
+
  41
+# To use debugger
  42
+# gem 'ruby-debug19', :require => 'ruby-debug'
  43
+
  44
+group :test do
  45
+  # Pretty printed test output
  46
+  gem 'turn', :require => false
  47
+end
132  IPN_Example/Gemfile.lock
... ...
@@ -0,0 +1,132 @@
  1
+GEM
  2
+  remote: http://rubygems.org/
  3
+  specs:
  4
+    actionmailer (3.1.1)
  5
+      actionpack (= 3.1.1)
  6
+      mail (~> 2.3.0)
  7
+    actionpack (3.1.1)
  8
+      activemodel (= 3.1.1)
  9
+      activesupport (= 3.1.1)
  10
+      builder (~> 3.0.0)
  11
+      erubis (~> 2.7.0)
  12
+      i18n (~> 0.6)
  13
+      rack (~> 1.3.2)
  14
+      rack-cache (~> 1.1)
  15
+      rack-mount (~> 0.8.2)
  16
+      rack-test (~> 0.6.1)
  17
+      sprockets (~> 2.0.2)
  18
+    active_utils (1.0.1)
  19
+      activesupport (>= 2.3.11)
  20
+      i18n
  21
+    activemodel (3.1.1)
  22
+      activesupport (= 3.1.1)
  23
+      builder (~> 3.0.0)
  24
+      i18n (~> 0.6)
  25
+    activerecord (3.1.1)
  26
+      activemodel (= 3.1.1)
  27
+      activesupport (= 3.1.1)
  28
+      arel (~> 2.2.1)
  29
+      tzinfo (~> 0.3.29)
  30
+    activeresource (3.1.1)
  31
+      activemodel (= 3.1.1)
  32
+      activesupport (= 3.1.1)
  33
+    activesupport (3.1.1)
  34
+      multi_json (~> 1.0)
  35
+    ansi (1.4.1)
  36
+    arel (2.2.1)
  37
+    builder (3.0.0)
  38
+    coffee-rails (3.1.1)
  39
+      coffee-script (>= 2.2.0)
  40
+      railties (~> 3.1.0)
  41
+    coffee-script (2.2.0)
  42
+      coffee-script-source
  43
+      execjs
  44
+    coffee-script-source (1.1.3)
  45
+    erubis (2.7.0)
  46
+    execjs (1.2.12)
  47
+      multi_json (~> 1.0)
  48
+    haml (3.1.4)
  49
+    hike (1.2.1)
  50
+    i18n (0.6.0)
  51
+    jquery-rails (1.0.19)
  52
+      railties (~> 3.0)
  53
+      thor (~> 0.14)
  54
+    json (1.6.3)
  55
+    mail (2.3.0)
  56
+      i18n (>= 0.4.0)
  57
+      mime-types (~> 1.16)
  58
+      treetop (~> 1.4.8)
  59
+    mime-types (1.17.2)
  60
+    money (3.7.1)
  61
+      i18n (~> 0.4)
  62
+    multi_json (1.0.4)
  63
+    pg (0.12.0)
  64
+      rake-compiler (~> 0.7)
  65
+    polyglot (0.3.3)
  66
+    rack (1.3.5)
  67
+    rack-cache (1.1)
  68
+      rack (>= 0.4)
  69
+    rack-mount (0.8.3)
  70
+      rack (>= 1.0.0)
  71
+    rack-ssl (1.3.2)
  72
+      rack
  73
+    rack-test (0.6.1)
  74
+      rack (>= 1.0)
  75
+    rails (3.1.1)
  76
+      actionmailer (= 3.1.1)
  77
+      actionpack (= 3.1.1)
  78
+      activerecord (= 3.1.1)
  79
+      activeresource (= 3.1.1)
  80
+      activesupport (= 3.1.1)
  81
+      bundler (~> 1.0)
  82
+      railties (= 3.1.1)
  83
+    railties (3.1.1)
  84
+      actionpack (= 3.1.1)
  85
+      activesupport (= 3.1.1)
  86
+      rack-ssl (~> 1.3.2)
  87
+      rake (>= 0.8.7)
  88
+      rdoc (~> 3.4)
  89
+      thor (~> 0.14.6)
  90
+    rake (0.9.2.2)
  91
+    rake-compiler (0.7.9)
  92
+      rake
  93
+    rdoc (3.12)
  94
+      json (~> 1.4)
  95
+    sass (3.1.12)
  96
+    sass-rails (3.1.5)
  97
+      actionpack (~> 3.1.0)
  98
+      railties (~> 3.1.0)
  99
+      sass (~> 3.1.10)
  100
+      tilt (~> 1.3.2)
  101
+    sprockets (2.0.3)
  102
+      hike (~> 1.2)
  103
+      rack (~> 1.0)
  104
+      tilt (~> 1.1, != 1.3.0)
  105
+    sqlite3 (1.3.5)
  106
+    thor (0.14.6)
  107
+    tilt (1.3.3)
  108
+    treetop (1.4.10)
  109
+      polyglot
  110
+      polyglot (>= 0.3.1)
  111
+    turn (0.8.3)
  112
+      ansi
  113
+    tzinfo (0.3.31)
  114
+    uglifier (1.2.0)
  115
+      execjs (>= 0.3.0)
  116
+      multi_json (>= 1.0.2)
  117
+
  118
+PLATFORMS
  119
+  ruby
  120
+
  121
+DEPENDENCIES
  122
+  active_utils
  123
+  coffee-rails (~> 3.1.1)
  124
+  haml
  125
+  jquery-rails
  126
+  money
  127
+  pg
  128
+  rails (= 3.1.1)
  129
+  sass-rails (~> 3.1.4)
  130
+  sqlite3
  131
+  turn
  132
+  uglifier (>= 1.0.3)
3  IPN_Example/README
... ...
@@ -0,0 +1,3 @@
  1
+== Simple example demonstrating PayPal IPN functionality with Rails 31
  2
+= Uses active_merchant plugin
  3
+= refer to this blog post for how this works
7  IPN_Example/Rakefile
... ...
@@ -0,0 +1,7 @@
  1
+#!/usr/bin/env rake
  2
+# Add your own tasks in files placed in lib/tasks ending in .rake,
  3
+# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
  4
+
  5
+require File.expand_path('../config/application', __FILE__)
  6
+
  7
+IPNExample::Application.load_tasks
BIN  IPN_Example/app/assets/images/rails.png
9  IPN_Example/app/assets/javascripts/application.js
... ...
@@ -0,0 +1,9 @@
  1
+// This is a manifest file that'll be compiled into including all the files listed below.
  2
+// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
  3
+// be included in the compiled file accessible from http://example.com/assets/application.js
  4
+// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
  5
+// the compiled file.
  6
+//
  7
+//= require jquery
  8
+//= require jquery_ujs
  9
+//= require_tree .
3  IPN_Example/app/assets/javascripts/pay_pal.js.coffee
... ...
@@ -0,0 +1,3 @@
  1
+# Place all the behaviors and hooks related to the matching controller here.
  2
+# All this logic will automatically be available in application.js.
  3
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
7  IPN_Example/app/assets/stylesheets/application.css
... ...
@@ -0,0 +1,7 @@
  1
+/*
  2
+ * This is a manifest file that'll automatically include all the stylesheets available in this directory
  3
+ * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
  4
+ * the top of the compiled file, but it's generally better to create a new file per style scope.
  5
+ *= require_self
  6
+ *= require_tree . 
  7
+*/
3  IPN_Example/app/assets/stylesheets/pay_pal.css.scss
... ...
@@ -0,0 +1,3 @@
  1
+// Place all the styles related to the PayPal controller here.
  2
+// They will automatically be included in application.css.
  3
+// You can use Sass (SCSS) here: http://sass-lang.com/
4  IPN_Example/app/controllers/application_controller.rb
... ...
@@ -0,0 +1,4 @@
  1
+class ApplicationController < ActionController::Base
  2
+  protect_from_forgery
  3
+  
  4
+end
33  IPN_Example/app/controllers/pay_pal_controller.rb
... ...
@@ -0,0 +1,33 @@
  1
+require 'ostruct'
  2
+
  3
+class PayPalController < ApplicationController
  4
+  include ActiveMerchant::Billing::Integrations
  5
+  def create
  6
+    
  7
+    _user = {:first_name => "saran", :last_name => "v", :email => "svigra_1317161804_per@gmail.com", :address1 => "awesome ln", :city => "Austin", :state => "TX", :zip => "78759", :country => "USA", :phone => "5120070070" }
  8
+    @user = OpenStruct.new _user
  9
+    @amount = "0.01"
  10
+    @currency = "USD"
  11
+    #a random invoice number for test
  12
+    @invoice = Integer rand(1000)
  13
+    @item_number = "123"
  14
+  end
  15
+  
  16
+  def notify
  17
+    #handle notification here.
  18
+    #for now lets print the notification raw response
  19
+    notify = Paypal::Notification.new(request.raw_post)
  20
+    p notify
  21
+    if notify.acknowledge
  22
+      p "Transaction ID is #{notify.transaction_id}"
  23
+      p "Notify is #{notify}"
  24
+      p "Notify status is #{notify.status}"
  25
+    end
  26
+    render :nothing => true
  27
+  end
  28
+  
  29
+  def show
  30
+    
  31
+  end
  32
+  
  33
+end
2  IPN_Example/app/helpers/application_helper.rb
... ...
@@ -0,0 +1,2 @@
  1
+module ApplicationHelper
  2
+end
2  IPN_Example/app/helpers/pay_pal_helper.rb
... ...
@@ -0,0 +1,2 @@
  1
+module PayPalHelper
  2
+end
0  IPN_Example/app/mailers/.gitkeep
No changes.
0  IPN_Example/app/models/.gitkeep
No changes.
2  IPN_Example/app/models/user.rb
... ...
@@ -0,0 +1,2 @@
  1
+class User < ActiveRecord::Base
  2
+end
14  IPN_Example/app/views/layouts/application.html.erb
... ...
@@ -0,0 +1,14 @@
  1
+<!DOCTYPE html>
  2
+<html>
  3
+<head>
  4
+  <title>IPNExample</title>
  5
+  <%= stylesheet_link_tag    "application" %>
  6
+  <%= javascript_include_tag "application" %>
  7
+  <%= csrf_meta_tags %>
  8
+</head>
  9
+<body>
  10
+
  11
+<%= yield %>
  12
+
  13
+</body>
  14
+</html>
2  IPN_Example/app/views/pay_pal/cancel.html.haml
... ...
@@ -0,0 +1,2 @@
  1
+%h3= "Canceled!"
  2
+%p= link_to "Go back", root_path
15  IPN_Example/app/views/pay_pal/create.html.erb
... ...
@@ -0,0 +1,15 @@
  1
+<h1>PayPal IPN Notification example in Rails </h1>
  2
+<p>Check the code on github at </p>
  3
+<p>Check the blog post at </p>
  4
+<% payment_service_for @item_number, PAYPAL_ACCOUNT, :amount => @amount, :currency => @currency, :service => :paypal do |service|
  5
+	service.customer :first_name => @user.first_name, :last_name => @user.last_name, :phone => @user.phone, :email => @user.email
  6
+	service.billing_address :city => @user.city, :address1 => @user.address1, :state => @user.state, :country => @user.country, :zip => @user.zip
  7
+	service.item_name "Testing IPN"
  8
+	service.invoice @invoice
  9
+	service.tax "0.00"
  10
+	
  11
+	#service.notify_url url_for(:only_path => false,:controller => 'pay_pal', :action => 'notify')
  12
+	service.return_url url_for(:only_path => false, :controller => 'pay_pal',:action => 'show')
  13
+	service.cancel_return_url url_for(:only_path => false, :controller => 'pay_pal', :action => 'cancel') %>
  14
+	<%= submit_tag 'Make Payment'%>
  15
+	<% end %>
1  IPN_Example/app/views/pay_pal/notify.html.haml
... ...
@@ -0,0 +1 @@
  1
+%h3= "Notify returned"
2  IPN_Example/app/views/pay_pal/show.html.haml
... ...
@@ -0,0 +1,2 @@
  1
+%h3= "Successful!"
  2
+%p= link_to "Go back", root_path
4  IPN_Example/config.ru
... ...
@@ -0,0 +1,4 @@
  1
+# This file is used by Rack-based servers to start the application.
  2
+
  3
+require ::File.expand_path('../config/environment',  __FILE__)
  4
+run IPNExample::Application
48  IPN_Example/config/application.rb
... ...
@@ -0,0 +1,48 @@
  1
+require File.expand_path('../boot', __FILE__)
  2
+
  3
+require 'rails/all'
  4
+
  5
+if defined?(Bundler)
  6
+  # If you precompile assets before deploying to production, use this line
  7
+  Bundler.require(*Rails.groups(:assets => %w(development test)))
  8
+  # If you want your assets lazily compiled in production, use this line
  9
+  # Bundler.require(:default, :assets, Rails.env)
  10
+end
  11
+
  12
+module IPNExample
  13
+  class Application < Rails::Application
  14
+    # Settings in config/environments/* take precedence over those specified here.
  15
+    # Application configuration should go into files in config/initializers
  16
+    # -- all .rb files in that directory are automatically loaded.
  17
+
  18
+    # Custom directories with classes and modules you want to be autoloadable.
  19
+    # config.autoload_paths += %W(#{config.root}/extras)
  20
+
  21
+    # Only load the plugins named here, in the order given (default is alphabetical).
  22
+    # :all can be used as a placeholder for all plugins not explicitly named.
  23
+    # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
  24
+
  25
+    # Activate observers that should always be running.
  26
+    # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
  27
+
  28
+    # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
  29
+    # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
  30
+    # config.time_zone = 'Central Time (US & Canada)'
  31
+
  32
+    # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
  33
+    # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
  34
+    # config.i18n.default_locale = :de
  35
+
  36
+    # Configure the default encoding used in templates for Ruby 1.9.
  37
+    config.encoding = "utf-8"
  38
+
  39
+    # Configure sensitive parameters which will be filtered from the log file.
  40
+    config.filter_parameters += [:password]
  41
+
  42
+    # Enable the asset pipeline
  43
+    config.assets.enabled = true
  44
+
  45
+    # Version of your assets, change this if you want to expire all your assets
  46
+    config.assets.version = '1.0'
  47
+  end
  48
+end
6  IPN_Example/config/boot.rb
... ...
@@ -0,0 +1,6 @@
  1
+require 'rubygems'
  2
+
  3
+# Set up gems listed in the Gemfile.
  4
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
  5
+
  6
+require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
25  IPN_Example/config/database.yml
... ...
@@ -0,0 +1,25 @@
  1
+# SQLite version 3.x
  2
+#   gem install sqlite3
  3
+#
  4
+#   Ensure the SQLite 3 gem is defined in your Gemfile
  5
+#   gem 'sqlite3'
  6
+development:
  7
+  adapter: sqlite3
  8
+  database: db/development.sqlite3
  9
+  pool: 5
  10
+  timeout: 5000
  11
+
  12
+# Warning: The database defined as "test" will be erased and
  13
+# re-generated from your development database when you run "rake".
  14
+# Do not set this db to the same as development or production.
  15
+test:
  16
+  adapter: sqlite3
  17
+  database: db/test.sqlite3
  18
+  pool: 5
  19
+  timeout: 5000
  20
+
  21
+production:
  22
+  adapter: sqlite3
  23
+  database: db/production.sqlite3
  24
+  pool: 5
  25
+  timeout: 5000
5  IPN_Example/config/environment.rb
... ...
@@ -0,0 +1,5 @@
  1
+# Load the rails application
  2
+require File.expand_path('../application', __FILE__)
  3
+
  4
+# Initialize the rails application
  5
+IPNExample::Application.initialize!
30  IPN_Example/config/environments/development.rb
... ...
@@ -0,0 +1,30 @@
  1
+IPNExample::Application.configure do
  2
+  # Settings specified here will take precedence over those in config/application.rb
  3
+
  4
+  # In the development environment your application's code is reloaded on
  5
+  # every request.  This slows down response time but is perfect for development
  6
+  # since you don't have to restart the web server when you make code changes.
  7
+  config.cache_classes = false
  8
+
  9
+  # Log error messages when you accidentally call methods on nil.
  10
+  config.whiny_nils = true
  11
+
  12
+  # Show full error reports and disable caching
  13
+  config.consider_all_requests_local       = true
  14
+  config.action_controller.perform_caching = false
  15
+
  16
+  # Don't care if the mailer can't send
  17
+  config.action_mailer.raise_delivery_errors = false
  18
+
  19
+  # Print deprecation notices to the Rails logger
  20
+  config.active_support.deprecation = :log
  21
+
  22
+  # Only use best-standards-support built into browsers
  23
+  config.action_dispatch.best_standards_support = :builtin
  24
+
  25
+  # Do not compress assets
  26
+  config.assets.compress = false
  27
+
  28
+  # Expands the lines which load the assets
  29
+  config.assets.debug = true
  30
+end
60  IPN_Example/config/environments/production.rb
... ...
@@ -0,0 +1,60 @@
  1
+IPNExample::Application.configure do
  2
+  # Settings specified here will take precedence over those in config/application.rb
  3
+
  4
+  # Code is not reloaded between requests
  5
+  config.cache_classes = true
  6
+
  7
+  # Full error reports are disabled and caching is turned on
  8
+  config.consider_all_requests_local       = false
  9
+  config.action_controller.perform_caching = true
  10
+
  11
+  # Disable Rails's static asset server (Apache or nginx will already do this)
  12
+  config.serve_static_assets = false
  13
+
  14
+  # Compress JavaScripts and CSS
  15
+  config.assets.compress = true
  16
+
  17
+  # Don't fallback to assets pipeline if a precompiled asset is missed
  18
+  config.assets.compile = true
  19
+
  20
+  # Generate digests for assets URLs
  21
+  config.assets.digest = true
  22
+
  23
+  # Defaults to Rails.root.join("public/assets")
  24
+  # config.assets.manifest = YOUR_PATH
  25
+
  26
+  # Specifies the header that your server uses for sending files
  27
+  # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
  28
+  # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
  29
+
  30
+  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
  31
+  # config.force_ssl = true
  32
+
  33
+  # See everything in the log (default is :info)
  34
+  # config.log_level = :debug
  35
+
  36
+  # Use a different logger for distributed setups
  37
+  # config.logger = SyslogLogger.new
  38
+
  39
+  # Use a different cache store in production
  40
+  # config.cache_store = :mem_cache_store
  41
+
  42
+  # Enable serving of images, stylesheets, and JavaScripts from an asset server
  43
+  # config.action_controller.asset_host = "http://assets.example.com"
  44
+
  45
+  # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
  46
+  # config.assets.precompile += %w( search.js )
  47
+
  48
+  # Disable delivery errors, bad email addresses will be ignored
  49
+  # config.action_mailer.raise_delivery_errors = false
  50
+
  51
+  # Enable threaded mode
  52
+  # config.threadsafe!
  53
+
  54
+  # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
  55
+  # the I18n.default_locale when a translation can not be found)
  56
+  config.i18n.fallbacks = true
  57
+
  58
+  # Send deprecation notices to registered listeners
  59
+  config.active_support.deprecation = :notify
  60
+end
39  IPN_Example/config/environments/test.rb
... ...
@@ -0,0 +1,39 @@
  1
+IPNExample::Application.configure do
  2
+  # Settings specified here will take precedence over those in config/application.rb
  3
+
  4
+  # The test environment is used exclusively to run your application's
  5
+  # test suite.  You never need to work with it otherwise.  Remember that
  6
+  # your test database is "scratch space" for the test suite and is wiped
  7
+  # and recreated between test runs.  Don't rely on the data there!
  8
+  config.cache_classes = true
  9
+
  10
+  # Configure static asset server for tests with Cache-Control for performance
  11
+  config.serve_static_assets = true
  12
+  config.static_cache_control = "public, max-age=3600"
  13
+
  14
+  # Log error messages when you accidentally call methods on nil
  15
+  config.whiny_nils = true
  16
+
  17
+  # Show full error reports and disable caching
  18
+  config.consider_all_requests_local       = true
  19
+  config.action_controller.perform_caching = false
  20
+
  21
+  # Raise exceptions instead of rendering exception templates
  22
+  config.action_dispatch.show_exceptions = false
  23
+
  24
+  # Disable request forgery protection in test environment
  25
+  config.action_controller.allow_forgery_protection    = false
  26
+
  27
+  # Tell Action Mailer not to deliver emails to the real world.
  28
+  # The :test delivery method accumulates sent emails in the
  29
+  # ActionMailer::Base.deliveries array.
  30
+  config.action_mailer.delivery_method = :test
  31
+
  32
+  # Use SQL instead of Active Record's schema dumper when creating the test database.
  33
+  # This is necessary if your schema can't be completely dumped by the schema dumper,
  34
+  # like if you have constraints or database-specific column types
  35
+  # config.active_record.schema_format = :sql
  36
+
  37
+  # Print deprecation notices to the stderr
  38
+  config.active_support.deprecation = :stderr
  39
+end
7  IPN_Example/config/initializers/active_merchant.rb
... ...
@@ -0,0 +1,7 @@
  1
+if Rails.env.production?
  2
+  PAYPAL_ACCOUNT = 'your_account@yourbusiness.com'
  3
+else
  4
+  
  5
+  PAYPAL_ACCOUNT = 'svigra_1322573821_biz@gmail.com'
  6
+  ActiveMerchant::Billing::Base.mode = :test
  7
+end
7  IPN_Example/config/initializers/backtrace_silencers.rb
... ...
@@ -0,0 +1,7 @@
  1
+# Be sure to restart your server when you modify this file.
  2
+
  3
+# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
  4
+# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
  5
+
  6
+# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
  7
+# Rails.backtrace_cleaner.remove_silencers!
10  IPN_Example/config/initializers/inflections.rb
... ...
@@ -0,0 +1,10 @@
  1
+# Be sure to restart your server when you modify this file.
  2
+
  3
+# Add new inflection rules using the following format
  4
+# (all these examples are active by default):
  5
+# ActiveSupport::Inflector.inflections do |inflect|
  6
+#   inflect.plural /^(ox)$/i, '\1en'
  7
+#   inflect.singular /^(ox)en/i, '\1'
  8
+#   inflect.irregular 'person', 'people'
  9
+#   inflect.uncountable %w( fish sheep )
  10
+# end
5  IPN_Example/config/initializers/mime_types.rb
... ...
@@ -0,0 +1,5 @@
  1
+# Be sure to restart your server when you modify this file.
  2
+
  3
+# Add new mime types for use in respond_to blocks:
  4
+# Mime::Type.register "text/richtext", :rtf
  5
+# Mime::Type.register_alias "text/html", :iphone
7  IPN_Example/config/initializers/secret_token.rb
... ...
@@ -0,0 +1,7 @@
  1
+# Be sure to restart your server when you modify this file.
  2
+
  3
+# Your secret key for verifying the integrity of signed cookies.
  4
+# If you change this key, all old signed cookies will become invalid!
  5
+# Make sure the secret is at least 30 characters and all random,
  6
+# no regular words or you'll be exposed to dictionary attacks.
  7
+IPNExample::Application.config.secret_token = 'ec31ee7417816946cb65cc5fa815ccb6adb52ed2bad46c2836b9b1f7912be064f611a3b8c9a1d5cebc7f3d6a3272e3a9d97b2c3a38bfc934bfb0dd1cc58d7bd5'
8  IPN_Example/config/initializers/session_store.rb
... ...
@@ -0,0 +1,8 @@
  1
+# Be sure to restart your server when you modify this file.
  2
+
  3
+IPNExample::Application.config.session_store :cookie_store, key: '_IPN_Example_session'
  4
+
  5
+# Use the database for sessions instead of the cookie-based default,
  6
+# which shouldn't be used to store highly confidential information
  7
+# (create the session table with "rails generate session_migration")
  8
+# IPNExample::Application.config.session_store :active_record_store
14  IPN_Example/config/initializers/wrap_parameters.rb
... ...
@@ -0,0 +1,14 @@
  1
+# Be sure to restart your server when you modify this file.
  2
+#
  3
+# This file contains settings for ActionController::ParamsWrapper which
  4
+# is enabled by default.
  5
+
  6
+# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
  7
+ActiveSupport.on_load(:action_controller) do
  8
+  wrap_parameters format: [:json]
  9
+end
  10
+
  11
+# Disable root element in JSON by default.
  12
+ActiveSupport.on_load(:active_record) do
  13
+  self.include_root_in_json = false
  14
+end
5  IPN_Example/config/locales/en.yml
... ...
@@ -0,0 +1,5 @@
  1
+# Sample localization file for English. Add more files in this directory for other locales.
  2
+# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
  3
+
  4
+en:
  5
+  hello: "Hello world"
63  IPN_Example/config/routes.rb
... ...
@@ -0,0 +1,63 @@
  1
+IPNExample::Application.routes.draw do
  2
+  
  3
+  match 'notify' => 'pay_pal#notify'
  4
+  match 'show' => 'pay_pal#show'
  5
+  match 'cancel' => 'pay_pal#cancel'
  6
+  root :to => 'pay_pal#create'
  7
+  # The priority is based upon order of creation:
  8
+  # first created -> highest priority.
  9
+
  10
+  # Sample of regular route:
  11
+  #   match 'products/:id' => 'catalog#view'
  12
+  # Keep in mind you can assign values other than :controller and :action
  13
+
  14
+  # Sample of named route:
  15
+  #   match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
  16
+  # This route can be invoked with purchase_url(:id => product.id)
  17
+
  18
+  # Sample resource route (maps HTTP verbs to controller actions automatically):
  19
+  #   resources :products
  20
+
  21
+  # Sample resource route with options:
  22
+  #   resources :products do
  23
+  #     member do
  24
+  #       get 'short'
  25
+  #       post 'toggle'
  26
+  #     end
  27
+  #
  28
+  #     collection do
  29
+  #       get 'sold'
  30
+  #     end
  31
+  #   end
  32
+
  33
+  # Sample resource route with sub-resources:
  34
+  #   resources :products do
  35
+  #     resources :comments, :sales
  36
+  #     resource :seller
  37
+  #   end
  38
+
  39
+  # Sample resource route with more complex sub-resources
  40
+  #   resources :products do
  41
+  #     resources :comments
  42
+  #     resources :sales do
  43
+  #       get 'recent', :on => :collection
  44
+  #     end
  45
+  #   end
  46
+
  47
+  # Sample resource route within a namespace:
  48
+  #   namespace :admin do
  49
+  #     # Directs /admin/products/* to Admin::ProductsController
  50
+  #     # (app/controllers/admin/products_controller.rb)
  51
+  #     resources :products
  52
+  #   end
  53
+
  54
+  # You can have the root of your site routed with "root"
  55
+  # just remember to delete public/index.html.
  56
+  # root :to => 'welcome#index'
  57
+
  58
+  # See how all your routes lay out with "rake routes"
  59
+
  60
+  # This is a legacy wild controller route that's not recommended for RESTful applications.
  61
+  # Note: This route will make all actions in every controller accessible via GET requests.
  62
+  # match ':controller(/:action(/:id(.:format)))'
  63
+end
16  IPN_Example/db/migrate/20111219170748_create_users.rb
... ...
@@ -0,0 +1,16 @@
  1
+class CreateUsers < ActiveRecord::Migration
  2
+  def change
  3
+    create_table :users do |t|
  4
+      t.string :first_name
  5
+      t.string :last_name
  6
+      t.string :email
  7
+      t.string :phone
  8
+      t.string :city
  9
+      t.string :state
  10
+      t.string :country
  11
+      t.string :zip
  12
+      t.string :address1
  13
+      t.timestamps
  14
+    end
  15
+  end
  16
+end
30  IPN_Example/db/schema.rb
... ...
@@ -0,0 +1,30 @@
  1
+# encoding: UTF-8
  2
+# This file is auto-generated from the current state of the database. Instead
  3
+# of editing this file, please use the migrations feature of Active Record to
  4
+# incrementally modify your database, and then regenerate this schema definition.
  5
+#
  6
+# Note that this schema.rb definition is the authoritative source for your
  7
+# database schema. If you need to create the application database on another
  8
+# system, you should be using db:schema:load, not running all the migrations
  9
+# from scratch. The latter is a flawed and unsustainable approach (the more migrations
  10
+# you'll amass, the slower it'll run and the greater likelihood for issues).
  11
+#
  12
+# It's strongly recommended to check this file into your version control system.
  13
+
  14
+ActiveRecord::Schema.define(:version => 20111219170748) do
  15
+
  16
+  create_table "users", :force => true do |t|
  17
+    t.string   "first_name"
  18
+    t.string   "last_name"
  19
+    t.string   "email"
  20
+    t.string   "phone"
  21
+    t.string   "city"
  22
+    t.string   "state"
  23
+    t.string   "country"
  24
+    t.string   "zip"
  25
+    t.string   "address1"
  26
+    t.datetime "created_at"
  27
+    t.datetime "updated_at"
  28
+  end
  29
+
  30
+end
10  IPN_Example/db/seeds.rb
... ...
@@ -0,0 +1,10 @@
  1
+# This file should contain all the record creation needed to seed the database with its default values.
  2
+# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
  3
+#
  4
+# Examples:
  5
+#
  6
+#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
  7
+#   Mayor.create(name: 'Emanuel', city: cities.first)
  8
+
  9
+user = User.create(first_name: 'john', last_name: 'doe', phone: '512-001-0020', email: 'jd@nameless.com', city: 'austin', state: 'TX', zip: '78759', address1: '9600 N Mopac expy', country: 'USA')
  10
+ 
2  IPN_Example/doc/README_FOR_APP
... ...
@@ -0,0 +1,2 @@
  1
+Use this README file to introduce your application and point to useful places in the API for learning more.
  2
+Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.
0  IPN_Example/log/.gitkeep
No changes.
26  IPN_Example/public/404.html
... ...
@@ -0,0 +1,26 @@
  1
+<!DOCTYPE html>
  2
+<html>
  3
+<head>
  4
+  <title>The page you were looking for doesn't exist (404)</title>
  5
+  <style type="text/css">
  6
+    body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
  7
+    div.dialog {
  8
+      width: 25em;
  9
+      padding: 0 4em;
  10
+      margin: 4em auto 0 auto;
  11
+      border: 1px solid #ccc;
  12
+      border-right-color: #999;
  13
+      border-bottom-color: #999;
  14
+    }
  15
+    h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
  16
+  </style>
  17
+</head>
  18
+
  19
+<body>
  20
+  <!-- This file lives in public/404.html -->
  21
+  <div class="dialog">
  22
+    <h1>The page you were looking for doesn't exist.</h1>
  23
+    <p>You may have mistyped the address or the page may have moved.</p>
  24
+  </div>
  25
+</body>
  26
+</html>
26  IPN_Example/public/422.html
... ...
@@ -0,0 +1,26 @@
  1
+<!DOCTYPE html>
  2
+<html>
  3
+<head>
  4
+  <title>The change you wanted was rejected (422)</title>
  5
+  <style type="text/css">
  6
+    body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
  7
+    div.dialog {
  8
+      width: 25em;
  9
+      padding: 0 4em;
  10
+      margin: 4em auto 0 auto;
  11
+      border: 1px solid #ccc;
  12
+      border-right-color: #999;
  13
+      border-bottom-color: #999;
  14
+    }
  15
+    h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
  16
+  </style>
  17
+</head>
  18
+
  19
+<body>
  20
+  <!-- This file lives in public/422.html -->
  21
+  <div class="dialog">
  22
+    <h1>The change you wanted was rejected.</h1>
  23
+    <p>Maybe you tried to change something you didn't have access to.</p>
  24
+  </div>
  25
+</body>
  26
+</html>
26  IPN_Example/public/500.html
... ...
@@ -0,0 +1,26 @@
  1
+<!DOCTYPE html>
  2
+<html>
  3
+<head>
  4
+  <title>We're sorry, but something went wrong (500)</title>
  5
+  <style type="text/css">
  6
+    body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
  7
+    div.dialog {
  8
+      width: 25em;
  9
+      padding: 0 4em;
  10
+      margin: 4em auto 0 auto;
  11
+      border: 1px solid #ccc;
  12
+      border-right-color: #999;
  13
+      border-bottom-color: #999;
  14
+    }
  15
+    h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
  16
+  </style>
  17
+</head>
  18
+
  19
+<body>
  20
+  <!-- This file lives in public/500.html -->
  21
+  <div class="dialog">
  22
+    <h1>We're sorry, but something went wrong.</h1>
  23
+    <p>We've been notified about this issue and we'll take a look at it shortly.</p>
  24
+  </div>
  25
+</body>
  26
+</html>
0  IPN_Example/public/favicon.ico
No changes.
5  IPN_Example/public/robots.txt
... ...
@@ -0,0 +1,5 @@
  1
+# See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
  2
+#
  3
+# To ban all spiders from the entire site uncomment the next two lines:
  4
+# User-Agent: *
  5
+# Disallow: /
6  IPN_Example/script/rails
... ...
@@ -0,0 +1,6 @@
  1
+#!/usr/bin/env ruby
  2
+# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
  3
+
  4
+APP_PATH = File.expand_path('../../config/application',  __FILE__)
  5
+require File.expand_path('../../config/boot',  __FILE__)
  6
+require 'rails/commands'
0  IPN_Example/test/fixtures/.gitkeep
No changes.
21  IPN_Example/test/fixtures/users.yml
... ...
@@ -0,0 +1,21 @@
  1
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
  2
+
  3
+one:
  4
+  first_name: MyString
  5
+  last_name: MyString
  6
+  email: MyString
  7
+  phone: MyString
  8
+  city: MyString
  9
+  state: MyString
  10
+  country: MyString
  11
+  zip: MyString
  12
+
  13
+two:
  14
+  first_name: MyString
  15
+  last_name: MyString
  16
+  email: MyString
  17
+  phone: MyString
  18
+  city: MyString
  19
+  state: MyString
  20
+  country: MyString
  21
+  zip: MyString
0  IPN_Example/test/functional/.gitkeep
No changes.
7  IPN_Example/test/functional/pay_pal_controller_test.rb
... ...
@@ -0,0 +1,7 @@
  1
+require 'test_helper'
  2
+
  3
+class PayPalControllerTest < ActionController::TestCase
  4
+  # test "the truth" do
  5
+  #   assert true
  6
+  # end
  7
+end
0  IPN_Example/test/integration/.gitkeep
No changes.
12  IPN_Example/test/performance/browsing_test.rb
... ...
@@ -0,0 +1,12 @@
  1
+require 'test_helper'
  2
+require 'rails/performance_test_help'
  3
+
  4
+class BrowsingTest < ActionDispatch::PerformanceTest
  5
+  # Refer to the documentation for all available options
  6
+  # self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
  7
+  #                          :output => 'tmp/performance', :formats => [:flat] }
  8
+
  9
+  def test_homepage
  10
+    get '/'
  11
+  end
  12
+end
13  IPN_Example/test/test_helper.rb
... ...
@@ -0,0 +1,13 @@
  1
+ENV["RAILS_ENV"] = "test"
  2
+require File.expand_path('../../config/environment', __FILE__)
  3
+require 'rails/test_help'
  4
+
  5
+class ActiveSupport::TestCase
  6
+  # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
  7
+  #
  8
+  # Note: You'll currently still have to declare fixtures explicitly in integration tests
  9
+  # -- they do not yet inherit this setting
  10
+  fixtures :all
  11
+
  12
+  # Add more helper methods to be used by all tests here...
  13
+end
0  IPN_Example/test/unit/.gitkeep
No changes.
4  IPN_Example/test/unit/helpers/pay_pal_helper_test.rb
... ...
@@ -0,0 +1,4 @@
  1
+require 'test_helper'
  2
+
  3
+class PayPalHelperTest < ActionView::TestCase
  4
+end
7  IPN_Example/test/unit/user_test.rb
... ...
@@ -0,0 +1,7 @@
  1
+require 'test_helper'
  2
+
  3
+class UserTest < ActiveSupport::TestCase
  4
+  # test "the truth" do
  5
+  #   assert true
  6
+  # end
  7
+end
0  IPN_Example/vendor/assets/stylesheets/.gitkeep
No changes.
0  IPN_Example/vendor/plugins/.gitkeep
No changes.
10  IPN_Example/vendor/plugins/active_merchant/.travis.yml
... ...
@@ -0,0 +1,10 @@
  1
+rvm:
  2
+  - 1.8.7
  3
+  - 1.9.2
  4
+  - rbx
  5
+  - ree
  6
+
  7
+script: "bundle exec rake test:units"
  8
+
  9
+notifications:
  10
+  disabled: true
1  IPN_Example/vendor/plugins/active_merchant/.yardopts
... ...
@@ -0,0 +1 @@
  1
+- GettingStarted.md
753  IPN_Example/vendor/plugins/active_merchant/CHANGELOG
... ...
@@ -0,0 +1,753 @@
  1
+= ActiveMerchant CHANGELOG
  2
+
  3
+== Version 1.20.0 (November 14, 2011)
  4
+
  5