payola-payments 1.1.4 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/app/assets/javascripts/payola/form.js +1 -0
- data/app/assets/javascripts/payola/subscription_form.js +74 -0
- data/app/controllers/payola/application_controller.rb +1 -2
- data/app/controllers/payola/subscriptions_controller.rb +94 -0
- data/app/models/concerns/payola/plan.rb +50 -0
- data/app/models/payola/subscription.rb +161 -0
- data/app/services/payola/cancel_subscription.rb +12 -0
- data/app/services/payola/change_subscription_plan.rb +29 -0
- data/app/services/payola/create_plan.rb +17 -0
- data/app/services/payola/create_subscription.rb +20 -0
- data/app/services/payola/invoice_failed.rb +42 -0
- data/app/services/payola/invoice_paid.rb +43 -0
- data/app/services/payola/process_subscription.rb +7 -0
- data/app/services/payola/start_subscription.rb +41 -0
- data/app/services/payola/sync_subscription.rb +11 -0
- data/app/services/payola/update_card.rb +27 -0
- data/app/services/payola/update_subscription.rb +11 -0
- data/app/views/payola/subscriptions/_cancel.html.erb +10 -0
- data/app/views/payola/subscriptions/_change_plan.html.erb +10 -0
- data/config/routes.rb +7 -0
- data/db/migrate/20141105043439_create_payola_subscriptions.rb +31 -0
- data/db/migrate/20141106034610_add_currency_to_payola_subscriptions.rb +6 -0
- data/db/migrate/20141107025420_add_guid_to_payola_subscriptions.rb +6 -0
- data/db/migrate/20141109203101_add_stripe_status_to_payola_subscription.rb +5 -0
- data/db/migrate/20141112024805_add_affiliate_id_to_payola_subscriptions.rb +5 -0
- data/db/migrate/20141114032013_add_coupon_code_to_payola_subscriptions.rb +5 -0
- data/db/migrate/20141114154223_add_signed_custom_fields_to_payola_subscription.rb +5 -0
- data/db/migrate/20141114163841_add_addresses_to_payola_subscription.rb +6 -0
- data/lib/payola.rb +11 -0
- data/lib/payola/engine.rb +10 -2
- data/lib/payola/version.rb +1 -1
- data/spec/concerns/plan_spec.rb +43 -0
- data/spec/controllers/payola/subscriptions_controller_spec.rb +148 -0
- data/spec/dummy/app/controllers/application_controller.rb +4 -0
- data/spec/dummy/app/controllers/home_controller.rb +6 -0
- data/spec/dummy/app/controllers/subscribe_controller.rb +11 -0
- data/spec/dummy/app/models/subscription_plan.rb +3 -0
- data/spec/dummy/app/views/home/index.html.erb +7 -0
- data/spec/dummy/app/views/subscribe/index.html.erb +21 -0
- data/spec/dummy/app/views/subscribe/show.html.erb +4 -0
- data/spec/dummy/config/initializers/payola.rb +4 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20141105010234_create_subscription_plans.rb +14 -0
- data/spec/dummy/db/schema.rb +51 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +275 -0
- data/spec/dummy/log/test.log +109420 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0e585aeb88c1555ae8f5292f7c7a9068 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1b54952339cbc96811097cee5f8923b4 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/5afa4bc970e0bc781b3500c696ba25ff +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/664efeb51d1b486dcfc30d142db56f3c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/68a3bbdc64a0729b5896fa1e33fce4b1 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/96b1ccdc193a02b2bbea195310262fa5 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/aea159adbc0944b120d91d5b578612ba +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b20dab973e971c61bc7e334a38453ae0 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b83da90cb58011313e13a97a4a41cb6e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c0b954b40f2881a6d286061bc069643e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c5b3877d49b39932a7557611cefca9a6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ca491e325ff6948be9292f701aa4ce64 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d3f4b67cc032016dfeebc71f2148b9dc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d9856638a3c7b9cfd9d1b884e3b33982 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ddba6e841f28d3005e828fbfffd18b74 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/df935e399019055729aa968bd7062096 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ef82c31948061751bb026663b54484e1 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f0b5d4bea0c6cdd1904e1e9a0a45532f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/factories/payola_subscriptions.rb +25 -0
- data/spec/factories/subscription_plan.rb +9 -0
- data/spec/models/payola/subscription_spec.rb +50 -0
- data/spec/services/payola/cancel_subscription_spec.rb +29 -0
- data/spec/services/payola/change_subscription_plan_spec.rb +31 -0
- data/spec/services/payola/charge_card_spec.rb +9 -5
- data/spec/services/payola/create_plan_spec.rb +24 -0
- data/spec/services/payola/create_subscription_spec.rb +65 -0
- data/spec/services/payola/invoice_failed_spec.rb +29 -0
- data/spec/services/payola/invoice_paid_spec.rb +49 -0
- data/spec/services/payola/start_subscription_spec.rb +36 -0
- data/spec/services/payola/sync_subscription_spec.rb +14 -0
- data/spec/services/payola/update_card_spec.rb +26 -0
- metadata +95 -30
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.