payola-payments 1.3.2 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/payola/checkout_button.js +9 -5
  3. data/app/assets/javascripts/payola/form.js +10 -4
  4. data/app/assets/javascripts/payola/subscription_checkout_button.js +41 -24
  5. data/app/assets/javascripts/payola/subscription_form_onestep.js +13 -6
  6. data/app/assets/javascripts/payola/subscription_form_register.js +97 -0
  7. data/app/assets/javascripts/payola/subscription_form_twostep.js +14 -7
  8. data/app/controllers/payola/cards_controller.rb +40 -0
  9. data/app/controllers/payola/customers_controller.rb +37 -0
  10. data/app/controllers/payola/subscriptions_controller.rb +1 -1
  11. data/app/models/concerns/payola/plan.rb +1 -1
  12. data/app/models/payola/subscription.rb +15 -1
  13. data/app/services/payola/cancel_subscription.rb +6 -3
  14. data/app/services/payola/change_subscription_plan.rb +15 -7
  15. data/app/services/payola/create_card.rb +13 -0
  16. data/app/services/payola/create_subscription.rb +14 -6
  17. data/app/services/payola/destroy_card.rb +9 -0
  18. data/app/services/payola/process_refund.rb +20 -0
  19. data/app/services/payola/start_subscription.rb +30 -15
  20. data/app/services/payola/subscription_deleted.rb +11 -0
  21. data/app/services/payola/update_customer.rb +9 -0
  22. data/app/views/payola/subscriptions/_cancel.html.erb +2 -0
  23. data/app/views/payola/subscriptions/_checkout.html.erb +13 -4
  24. data/app/views/payola/transactions/_form.html.erb +1 -1
  25. data/config/routes.rb +8 -3
  26. data/db/migrate/20150930164135_add_tax_percent_to_payola_subscriptions.rb +5 -0
  27. data/lib/generators/payola/templates/initializer.rb +1 -1
  28. data/lib/payola.rb +5 -1
  29. data/lib/payola/engine.rb +1 -0
  30. data/lib/payola/version.rb +1 -1
  31. data/spec/concerns/plan_spec.rb +34 -11
  32. data/spec/controllers/payola/cards_controller_spec.rb +78 -0
  33. data/spec/controllers/payola/customers_controller_spec.rb +41 -0
  34. data/spec/controllers/payola/subscriptions_controller_spec.rb +14 -5
  35. data/spec/dummy/db/schema.rb +8 -7
  36. data/spec/dummy/db/test.sqlite3 +0 -0
  37. data/spec/dummy/log/development.log +83 -0
  38. data/spec/dummy/log/test.log +15285 -0
  39. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/05-CimMmYqCyJHDw0mlYlY8QTYNZWxvvjXNzt99raT8.cache +1 -0
  40. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/0cwo25M79KGYxnM1Fn5aVXuB5Vx5NXDeI1mauCHJ6C0.cache +1 -0
  41. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/1RezgAqI3WpLjtCkf15A28C_C_ZggGaTUJVj_0OtZt0.cache +2 -0
  42. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/1sN5oeTaBcGDHbdpHx7u12CUoshmGO0a8n6wvOZ8e9g.cache +2 -0
  43. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/4Huwm41yGPbqU_ktIlyb9x7zWCBrETs8Hi1vod_h6CM.cache +0 -0
  44. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/6GYiGbi_eHKrkW4pmMOQc-YcJd5yjqypkSSVsmvLdGQ.cache +2 -0
  45. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/6jBC_ionlG5SaNmx7QnmYyHapApzfD7gO7iacmF7A-o.cache +0 -0
  46. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/8PuswVUdqRS0_2AjXzB3SJnp0T6R4XDd52aXU8HUb20.cache +0 -0
  47. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/93_-tHqt48795qdk0JqDUZvfu8txM-kzSbHHwUHfUg4.cache +2 -0
  48. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/BJ9VCB2p3PpqouoGa_QmkGjFv4aPZWzCCDiFpknRFCA.cache +0 -0
  49. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Cvp1E8cK9iR8ZIyJng_CyOI5-lFm_PpQuqJpfpdsFJQ.cache +1 -0
  50. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/D3ZSFffpWANPSAj2gTmelfr4w-KkX84C0EgyPOy6Y6o.cache +0 -0
  51. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/DBdvUpmp3qMac1HkOn7D-0WoON1Vn4n0VkmcBo9PYTE.cache +1 -0
  52. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/EM3Tna1A9GSD2IeCpTZmuINPPHpdTXPbCG6sbLXHKPI.cache +1 -0
  53. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/FJ2Xe7ZXhQCx8O6gziOCZXLYIMDdWQElTtXlygmzDP0.cache +0 -0
  54. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/GDXP5hnN5ycGmMuaWltb9AFtcEBq7WXRfWTLjBgSK8I.cache +1 -0
  55. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/GFxndLm-jxLvxsJ4aUJ54BUZ32Ypzp7mLCmArWCOIa4.cache +1 -0
  56. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/GJmK02s0v61jK_BI__yUZI7NpGUVtXfur9ZiQGwOYyU.cache +0 -0
  57. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/MrKh1ye7y3UHd5ox4OgIUhcXyLvEN5FWvs6v7CzqFWI.cache +3 -0
  58. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Nl0Imk9BLfXqZ83k4_-tB2g0aevktUZocldLZzEE8DM.cache +0 -0
  59. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Nz8cUs5LShWxHeARb_8KNPjYZGYN8tCqWa2OoovieYg.cache +1 -0
  60. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/OWrok24obbylOHeAaps9WA5SBwjpaEd0xnQqBWOc-mQ.cache +2 -0
  61. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/QVhitoXuP03xtsfQo4gH_mAw16dk1EPH7Xf8JlXVLpk.cache +1 -0
  62. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/QrIfBX9SocQINdKbcOGU2ZplYq_3lE7-CgPvvFRZUPs.cache +3 -0
  63. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/RSFirXKeTuMV9nWIeu-30jvOMVQTdZQUugyREItprkE.cache +1 -0
  64. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/S5giqzoBdK-jXI6AoAelpiCYhMTwMFNaxjUJj816KdM.cache +2 -0
  65. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Se3LTfrl02BuX--hLV7cqyaPT9b9ydVPYsWlXjSvQ6Q.cache +1 -0
  66. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/SwyH6o1ZPaOTMGyVqMXuWtYuyf9yBl0NRSVjvv2HQGo.cache +1 -0
  67. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/T8VFzmrZkpfAHu4YyuwEfZWPF3sv77n7comxiwI6yK4.cache +1 -0
  68. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Te0Swu57VjhvpFOJV5fIm9X9C-tiyuF486pgN6gWuvs.cache +2 -0
  69. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/TolX3hiRfWiUWMlwHiH5G7KZZuFKPV2geKgORhx1kbc.cache +1 -0
  70. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/W5-aJJXrwJHHZ2LUNvSZJDuDWnf-nXHn_RrdHm8Dsy4.cache +1 -0
  71. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/WwYeCgq1wE5ouj5QoNsFDYa_K0Hw5SNPPPyzZ9JRk_M.cache +1 -0
  72. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/WxGjqpQ1GofgXtH2VW51hBdHzehHiH9QQSzeFwvPa04.cache +0 -0
  73. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/X-OoOAyH7movCISCvhiawWmwCODe3fN7ymRIQEQJGWs.cache +1 -0
  74. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/YUqxvOCuXaKKNVrkC0BmaxSs-ae8k61lE-cXvNvp6ts.cache +2 -0
  75. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ald4YZEKpA5mAmBUBRLwntPH1BB--dukFx4hRB1G8Sc.cache +2 -0
  76. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/coggheKLeRswSaNoMMz-DG4eSncE1LfiKd6ebpHdcDQ.cache +1 -0
  77. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ctvwDGAdKE_Nmp-gIQsb4edj11gnDV2HvIb4f_hTr1A.cache +0 -0
  78. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/d1MBBmJw2iL1O_NLFnwSRJlDR2VB-Au8nckF0HcpAjU.cache +0 -0
  79. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/fQIfzJDoR7LlNPN5nxZ-wlReF7b9zJ71zPnU-mwz0tU.cache +1 -0
  80. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/if00l9X27C69IaQ5LW33GQ76AK8TNTK2x_mAtUBiK_Y.cache +2 -0
  81. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/mFdDv_nbtZKHUux_oAK4OmPBu8TJ62BtWnklHAw52lk.cache +1 -0
  82. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/nGRK5RyFWrQfZM7AqkyVNDZrMJny5SvIThqdcSaF7s4.cache +1 -0
  83. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/nxuLyls6X-Txo4fYUEBKChRSnonW6fR3e3hy60jNKDk.cache +0 -0
  84. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/o8Pe3_OPNi7cpOIjfFsLK0KP_hLNPoR0eO61oXCo40Q.cache +2 -0
  85. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/oiIb0gmeFbc8wNdBNqzP6QepH1VG7L6rOwt7JRjLF6Y.cache +1 -0
  86. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/os-IBWzcQaIeJAr-eZ0ISapp8u6ViHJBDVl3zsSnAxs.cache +1 -0
  87. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/p8-Esy85oOHbF8SlC_ADEPGi7AjMurnoYSdCD3V0QHo.cache +0 -0
  88. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/rDG6NUIkefVSkt66sViHIj-M-YmUVD3LC383yOQZE3Y.cache +0 -0
  89. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/rT-10_0UmPqfTi7e_RvVV2oVVrZPcnzEVxYryWf0AWk.cache +1 -0
  90. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/rgRsqTnAPvMJlyOn2tOMsfX1YNwqiKZprIoYnBtUIao.cache +2 -0
  91. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/tZkY3_ZombuoVZpSwY2dfvHcyD88nyqaNHLzVfrlSbA.cache +1 -0
  92. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/v8-7s6wdUoobgWtvSQPJYtNsLoojslrMGambhfCbLBo.cache +2 -0
  93. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/xAmLB93l5rnHnPfuqo_rdVoCN4PRE5-22KU8O3LNn5U.cache +0 -0
  94. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/xFmik7WLB1nL3qhSnRWbIEXIwMG1K_dLc1ymZ3hNJ_8.cache +0 -0
  95. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/z5DZtajWt8UQUvtzye6ncruhskjV7HVUOKWv800kzrE.cache +2 -0
  96. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/zPJ93ju23hj65NVsVWOgNlvHe3OjA-SGQ9nU2oupKlI.cache +2 -0
  97. data/spec/factories/payola_subscriptions.rb +2 -3
  98. data/spec/models/payola/subscription_spec.rb +35 -1
  99. data/spec/payola_spec.rb +7 -0
  100. data/spec/services/payola/change_subscription_plan_spec.rb +70 -7
  101. data/spec/services/payola/create_card_spec.rb +42 -0
  102. data/spec/services/payola/create_subscription_spec.rb +12 -10
  103. data/spec/services/payola/destroy_card_spec.rb +28 -0
  104. data/spec/services/payola/process_refund_spec.rb +35 -0
  105. data/spec/services/payola/start_subscription_spec.rb +27 -3
  106. data/spec/services/payola/subscription_deleted_spec.rb +11 -0
  107. data/spec/services/payola/update_customer_spec.rb +26 -0
  108. metadata +142 -6
  109. data/app/services/payola/#update_card.rb# +0 -27
  110. data/spec/services/payola/#start_subscription_spec.rb# +0 -95

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.