spree_gateway 3.7.2 → 3.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +31 -38
  3. data/Appraisals +4 -10
  4. data/app/models/spree/check.rb +41 -0
  5. data/app/models/spree/checkout_controller_decorator.rb +19 -0
  6. data/app/models/spree/gateway/stripe_ach_gateway.rb +60 -0
  7. data/app/models/spree/gateway/stripe_elements_gateway.rb +50 -0
  8. data/app/models/spree/gateway/stripe_gateway.rb +1 -0
  9. data/app/models/spree/order_decorator.rb +28 -0
  10. data/app/models/spree/payment_decorator.rb +34 -0
  11. data/app/views/spree/checkout/_payment_confirm.html.erb +34 -0
  12. data/config/initializers/spree_permitted_attributes.rb +5 -0
  13. data/config/locales/en.yml +23 -0
  14. data/config/routes.rb +12 -0
  15. data/db/migrate/20200317135551_add_spree_check_payment_source.rb +22 -0
  16. data/db/migrate/20200422114908_add_intent_key_to_payment.rb +5 -0
  17. data/gemfiles/{spree_3_2.gemfile → spree_4_1.gemfile} +1 -1
  18. data/gemfiles/{spree_3_5.gemfile → spree_4_2.gemfile} +1 -1
  19. data/lib/active_merchant/billing/stripe_gateway_decorator.rb +13 -0
  20. data/lib/controllers/spree/api/v2/storefront/intents_controller.rb +27 -0
  21. data/lib/spree_gateway.rb +1 -0
  22. data/lib/spree_gateway/engine.rb +1 -0
  23. data/lib/spree_gateway/version.rb +1 -1
  24. data/lib/views/backend/spree/admin/payments/source_forms/_stripe_ach.html.erb +86 -0
  25. data/lib/views/backend/spree/admin/payments/source_forms/_stripe_apple_pay.html.erb +0 -0
  26. data/lib/views/backend/spree/admin/payments/source_forms/_stripe_elements.html.erb +79 -0
  27. data/lib/views/backend/spree/admin/payments/source_views/_stripe_ach.html.erb +21 -0
  28. data/lib/views/backend/spree/admin/payments/source_views/_stripe_apple_pay.html.erb +1 -0
  29. data/lib/views/backend/spree/admin/payments/source_views/_stripe_elements.html.erb +1 -0
  30. data/lib/views/frontend/spree/checkout/payment/_stripe_ach.html.erb +81 -0
  31. data/lib/views/frontend/spree/checkout/payment/_stripe_ach_verify.html.erb +16 -0
  32. data/lib/views/frontend/spree/checkout/payment/_stripe_apple_pay.html.erb +10 -1
  33. data/lib/views/frontend/spree/checkout/payment/_stripe_elements.html.erb +2 -1
  34. data/spec/factories/check_factory.rb +10 -0
  35. data/spec/features/admin/stripe_elements_payment_spec.rb +109 -0
  36. data/spec/features/stripe_checkout_spec.rb +3 -0
  37. data/spec/features/stripe_elements_3ds_checkout_spec.rb +105 -0
  38. data/spec/models/gateway/stripe_ach_gateway_spec.rb +186 -0
  39. data/spec/models/gateway/stripe_gateway_spec.rb +1 -0
  40. data/spec/spec_helper.rb +7 -64
  41. data/spec/support/within_stripe_3ds_popup.rb +10 -0
  42. data/spree_gateway.gemspec +4 -22
  43. metadata +43 -269
  44. data/gemfiles/spree_3_7.gemfile +0 -9
  45. data/gemfiles/spree_4_0.gemfile +0 -8
@@ -1,9 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails-controller-testing"
6
- gem "spree", "~> 3.7.0"
7
- gem "sass-rails"
8
-
9
- gemspec path: "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails-controller-testing"
6
- gem "spree", "~> 4.0.0.rc2"
7
-
8
- gemspec path: "../"