solidus_stripe 4.4.0 → 5.0.0.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +102 -41
- data/.gitignore +3 -0
- data/.rubocop.yml +94 -4
- data/.yardopts +1 -0
- data/CHANGELOG.md +1 -265
- data/Gemfile +10 -30
- data/LICENSE +2 -2
- data/Procfile.dev +3 -0
- data/README.md +185 -213
- data/Rakefile +7 -6
- data/app/assets/javascripts/spree/backend/solidus_stripe.js +2 -0
- data/app/assets/stylesheets/spree/backend/solidus_stripe.css +4 -0
- data/app/controllers/solidus_stripe/intents_controller.rb +36 -52
- data/app/controllers/solidus_stripe/webhooks_controller.rb +28 -0
- data/app/models/concerns/solidus_stripe/log_entries.rb +31 -0
- data/app/models/solidus_stripe/customer.rb +21 -0
- data/app/models/solidus_stripe/gateway.rb +229 -0
- data/app/models/solidus_stripe/payment_intent.rb +124 -0
- data/app/models/solidus_stripe/payment_method.rb +106 -0
- data/app/models/solidus_stripe/payment_source.rb +31 -0
- data/app/models/solidus_stripe/slug_entry.rb +20 -0
- data/app/models/solidus_stripe.rb +7 -0
- data/app/subscribers/solidus_stripe/webhook/charge_subscriber.rb +28 -0
- data/app/subscribers/solidus_stripe/webhook/payment_intent_subscriber.rb +112 -0
- data/app/views/spree/admin/payments/source_forms/_stripe.html.erb +29 -0
- data/app/views/spree/admin/payments/source_forms/existing_payment/_stripe.html.erb +19 -0
- data/app/views/spree/admin/payments/source_forms/existing_payment/stripe/_card.html.erb +8 -0
- data/app/views/spree/admin/payments/source_forms/existing_payment/stripe/_default.html.erb +7 -0
- data/app/views/spree/admin/payments/source_views/_stripe.html.erb +15 -0
- data/app/views/spree/api/payments/source_views/_stripe.json.jbuilder +8 -0
- data/bin/dev +13 -0
- data/bin/dummy-app +29 -0
- data/bin/rails +38 -3
- data/bin/rails-dummy-app +3 -0
- data/bin/rails-engine +1 -11
- data/bin/rails-new +55 -0
- data/bin/rails-sandbox +1 -14
- data/bin/rspec +10 -0
- data/bin/sandbox +12 -74
- data/bin/setup +1 -0
- data/bin/update-migrations +56 -0
- data/codecov.yml +12 -0
- data/config/locales/en.yml +16 -1
- data/config/routes.rb +5 -11
- data/coverage.rb +42 -0
- data/db/migrate/20230109183332_create_solidus_stripe_payment_sources.rb +10 -0
- data/db/migrate/20230306105520_create_solidus_stripe_payment_intents.rb +14 -0
- data/db/migrate/20230308122414_create_solidus_stripe_slug_entries.rb +12 -0
- data/db/migrate/20230313150008_create_solidus_stripe_customers.rb +15 -0
- data/db/seeds.rb +6 -24
- data/lib/generators/solidus_stripe/install/install_generator.rb +121 -14
- data/lib/generators/solidus_stripe/install/templates/app/assets/stylesheets/spree/frontend/solidus_stripe.css +13 -0
- data/lib/generators/solidus_stripe/install/templates/app/javascript/controllers/solidus_stripe_confirm_controller.js +39 -0
- data/lib/generators/solidus_stripe/install/templates/app/javascript/controllers/solidus_stripe_payment_controller.js +89 -0
- data/lib/generators/solidus_stripe/install/templates/app/views/checkouts/existing_payment/_stripe.html.erb +21 -0
- data/lib/generators/solidus_stripe/install/templates/app/views/checkouts/existing_payment/stripe/_card.html.erb +8 -0
- data/lib/generators/solidus_stripe/install/templates/app/views/checkouts/existing_payment/stripe/_default.html.erb +7 -0
- data/lib/generators/solidus_stripe/install/templates/app/views/checkouts/payment/_stripe.html.erb +74 -0
- data/lib/generators/solidus_stripe/install/templates/app/views/orders/payment_info/_stripe.html.erb +32 -0
- data/lib/generators/solidus_stripe/install/templates/config/initializers/solidus_stripe.rb +31 -0
- data/lib/solidus_stripe/configuration.rb +24 -3
- data/lib/solidus_stripe/engine.rb +19 -6
- data/lib/solidus_stripe/money_to_stripe_amount_converter.rb +109 -0
- data/lib/solidus_stripe/refunds_synchronizer.rb +98 -0
- data/lib/solidus_stripe/seeds.rb +19 -0
- data/lib/solidus_stripe/testing_support/factories.rb +153 -0
- data/lib/solidus_stripe/version.rb +1 -1
- data/lib/solidus_stripe/webhook/event.rb +91 -0
- data/lib/solidus_stripe.rb +0 -2
- data/solidus_stripe.gemspec +29 -6
- data/spec/lib/solidus_stripe/configuration_spec.rb +21 -0
- data/spec/lib/solidus_stripe/money_to_stripe_amount_converter_spec.rb +133 -0
- data/spec/lib/solidus_stripe/refunds_synchronizer_spec.rb +238 -0
- data/spec/lib/solidus_stripe/seeds_spec.rb +43 -0
- data/spec/lib/solidus_stripe/webhook/event_spec.rb +134 -0
- data/spec/models/concerns/solidus_stripe/log_entries_spec.rb +54 -0
- data/spec/models/solidus_stripe/customer_spec.rb +47 -0
- data/spec/models/solidus_stripe/gateway_spec.rb +281 -0
- data/spec/models/solidus_stripe/payment_intent_spec.rb +78 -0
- data/spec/models/solidus_stripe/payment_method_spec.rb +137 -0
- data/spec/models/solidus_stripe/payment_source_spec.rb +25 -0
- data/spec/requests/solidus_stripe/intents_controller_spec.rb +29 -0
- data/spec/requests/solidus_stripe/webhooks_controller/charge/refunded_spec.rb +31 -0
- data/spec/requests/solidus_stripe/webhooks_controller/payment_intent/canceled_spec.rb +23 -0
- data/spec/requests/solidus_stripe/webhooks_controller/payment_intent/payment_failed_spec.rb +23 -0
- data/spec/requests/solidus_stripe/webhooks_controller/payment_intent/succeeded_spec.rb +29 -0
- data/spec/requests/solidus_stripe/webhooks_controller_spec.rb +56 -0
- data/spec/solidus_stripe_spec_helper.rb +10 -0
- data/spec/subscribers/solidus_stripe/webhook/charge_subscriber_spec.rb +33 -0
- data/spec/subscribers/solidus_stripe/webhook/payment_intent_subscriber_spec.rb +297 -0
- data/spec/support/solidus_stripe/backend_test_helper.rb +185 -0
- data/spec/support/solidus_stripe/checkout_test_helper.rb +365 -0
- data/spec/support/solidus_stripe/factories.rb +5 -0
- data/spec/support/solidus_stripe/webhook/data_fixtures.rb +106 -0
- data/spec/support/solidus_stripe/webhook/event_with_context_factory.rb +82 -0
- data/spec/support/solidus_stripe/webhook/request_helper.rb +32 -0
- data/spec/system/backend/solidus_stripe/orders/payments_spec.rb +145 -0
- data/spec/system/frontend/.keep +0 -0
- data/spec/system/frontend/solidus_stripe/checkout_spec.rb +206 -0
- data/tmp/.keep +0 -0
- metadata +196 -75
- data/.rubocop_todo.yml +0 -298
- data/.travis.yml +0 -28
- data/app/assets/javascripts/spree/frontend/solidus_stripe/stripe-cart-page-checkout.js +0 -122
- data/app/assets/javascripts/spree/frontend/solidus_stripe/stripe-elements.js +0 -148
- data/app/assets/javascripts/spree/frontend/solidus_stripe/stripe-init.js +0 -20
- data/app/assets/javascripts/spree/frontend/solidus_stripe/stripe-payment-intents.js +0 -84
- data/app/assets/javascripts/spree/frontend/solidus_stripe/stripe-payment-request-button-shared.js +0 -160
- data/app/assets/javascripts/spree/frontend/solidus_stripe/stripe-payment.js +0 -16
- data/app/assets/javascripts/spree/frontend/solidus_stripe.js +0 -6
- data/app/controllers/solidus_stripe/payment_request_controller.rb +0 -52
- data/app/controllers/spree/stripe_controller.rb +0 -13
- data/app/decorators/models/spree/order_update_attributes_decorator.rb +0 -39
- data/app/decorators/models/spree/payment_decorator.rb +0 -11
- data/app/decorators/models/spree/refund_decorator.rb +0 -9
- data/app/models/solidus_stripe/address_from_params_service.rb +0 -72
- data/app/models/solidus_stripe/create_intents_payment_service.rb +0 -114
- data/app/models/solidus_stripe/prepare_order_for_payment_service.rb +0 -46
- data/app/models/solidus_stripe/shipping_rates_service.rb +0 -46
- data/app/models/spree/payment_method/stripe_credit_card.rb +0 -230
- data/bin/r +0 -13
- data/bin/sandbox_rails +0 -18
- data/db/migrate/20181010123508_update_stripe_payment_method_type_to_credit_card.rb +0 -21
- data/lib/assets/stylesheets/spree/frontend/solidus_stripe.scss +0 -11
- data/lib/solidus_stripe/testing_support/card_input_helper.rb +0 -34
- data/lib/tasks/solidus_stripe/db/seed.rake +0 -14
- data/lib/views/api/spree/api/payments/source_views/_stripe.json.jbuilder +0 -3
- data/lib/views/backend/spree/admin/log_entries/_stripe.html.erb +0 -28
- data/lib/views/backend/spree/admin/payments/source_forms/_stripe.html.erb +0 -1
- data/lib/views/backend/spree/admin/payments/source_views/_stripe.html.erb +0 -1
- data/lib/views/frontend/spree/checkout/existing_payment/_stripe.html.erb +0 -1
- data/lib/views/frontend/spree/checkout/payment/_stripe.html.erb +0 -8
- data/lib/views/frontend/spree/checkout/payment/v2/_javascript.html.erb +0 -78
- data/lib/views/frontend/spree/checkout/payment/v3/_elements.html.erb +0 -1
- data/lib/views/frontend/spree/checkout/payment/v3/_form_elements.html.erb +0 -40
- data/lib/views/frontend/spree/checkout/payment/v3/_intents.html.erb +0 -1
- data/lib/views/frontend/spree/checkout/payment/v3/_stripe.html.erb +0 -2
- data/lib/views/frontend/spree/orders/_stripe_payment_request_button.html.erb +0 -14
- data/spec/features/stripe_checkout_spec.rb +0 -486
- data/spec/models/solidus_stripe/address_from_params_service_spec.rb +0 -87
- data/spec/models/solidus_stripe/create_intents_payment_service_spec.rb +0 -127
- data/spec/models/solidus_stripe/prepare_order_for_payment_service_spec.rb +0 -65
- data/spec/models/solidus_stripe/shipping_rates_service_spec.rb +0 -54
- data/spec/models/spree/payment_method/stripe_credit_card_spec.rb +0 -350
- data/spec/requests/payment_requests_spec.rb +0 -152
- data/spec/spec_helper.rb +0 -37
- data/spec/support/solidus_address_helper.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8412267c2867988b55d4bc57fc50016663e3d0ad552bc04fb9cbf6892e5c6841
|
4
|
+
data.tar.gz: 932bc36b4468551af890932637d9b3db32bb9a36f4a6a591cfebe758aa73a143
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4355fdfc27bb24394e0014c1e26862c84ebb33f256712856fec33187d68fe860b5781e6425ef1099bf200484bd74039a06a3eec62d80e7b6a0e06d39bdc63859
|
7
|
+
data.tar.gz: 696f19ccf8d27fe984dd617fb836e139d7350c39486c42718379e15a172371c9b1e9cd54f60aad0cbea7678fa71e6a8c644c8d872cf832cbeb7b7f5d7ae189ff
|
data/.circleci/config.yml
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
version: 2.1
|
2
2
|
|
3
3
|
orbs:
|
4
|
-
# Required for feature specs.
|
5
4
|
browser-tools: circleci/browser-tools@1.1
|
5
|
+
codecov: codecov/codecov@3.2.4
|
6
6
|
|
7
7
|
# Always take the latest version of the orb, this allows us to
|
8
8
|
# run specs against Solidus supported versions only without the need
|
@@ -10,52 +10,113 @@ orbs:
|
|
10
10
|
# or goes EOL.
|
11
11
|
solidusio_extensions: solidusio/extensions@volatile
|
12
12
|
|
13
|
-
executors:
|
14
|
-
sqlite:
|
15
|
-
description: Run specs with an SQLite
|
16
|
-
docker:
|
17
|
-
- image: cimg/ruby:2.7-browsers
|
18
|
-
environment:
|
19
|
-
RAILS_ENV: test
|
20
|
-
DB: sqlite
|
21
|
-
|
22
13
|
jobs:
|
23
|
-
run-specs
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
14
|
+
run-specs:
|
15
|
+
parameters:
|
16
|
+
database:
|
17
|
+
type: string
|
18
|
+
default: postgres
|
19
|
+
ruby:
|
20
|
+
type: string
|
21
|
+
default: "3.2"
|
22
|
+
coverage:
|
23
|
+
type: boolean
|
24
|
+
default: false
|
25
|
+
executor:
|
26
|
+
name: solidusio_extensions/<< parameters.database >>
|
27
|
+
ruby_version: << parameters.ruby >>
|
30
28
|
steps:
|
29
|
+
- checkout
|
31
30
|
- browser-tools/install-chrome
|
32
|
-
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
-
|
31
|
+
- run:
|
32
|
+
name: Install libvips
|
33
|
+
command: |
|
34
|
+
sudo apt-get update
|
35
|
+
sudo apt-get install -yq libvips-dev
|
36
|
+
- run:
|
37
|
+
name: "Update Rubygems"
|
38
|
+
command: |
|
39
|
+
sudo gem update --system --no-document
|
40
|
+
gem install bundler --no-document
|
41
|
+
gem environment path
|
42
|
+
- run:
|
43
|
+
name: "Store tool versions"
|
44
|
+
command: |
|
45
|
+
rm -rf /tmp/.tool-versions
|
46
|
+
ruby -v >> /tmp/.tool-versions
|
47
|
+
gem search -eq rails >> /tmp/.tool-versions # get the latest rails from rubygems
|
48
|
+
gem search -eq solidus >> /tmp/.tool-versions # get the latest solidus from rubygems
|
49
|
+
cat /tmp/.tool-versions
|
50
|
+
- restore_cache:
|
51
|
+
keys:
|
52
|
+
- solidus-stripe-gems-v1-<<parameters.ruby>>-{{ checksum "/tmp/.tool-versions" }}
|
53
|
+
- solidus-stripe-gems-v1-<<parameters.ruby>>-
|
54
|
+
- run:
|
55
|
+
name: "Install gems"
|
56
|
+
command: |
|
57
|
+
bundle install
|
58
|
+
- run:
|
59
|
+
name: "Install dummy app"
|
60
|
+
command: |
|
61
|
+
<<#parameters.coverage>>export COVERAGE=true<</parameters.coverage>>
|
62
|
+
bin/dummy-app
|
63
|
+
environment:
|
64
|
+
FRONTEND: starter
|
65
|
+
SOLIDUS_BRANCH: master
|
66
|
+
- save_cache:
|
67
|
+
key: solidus-stripe-gems-v1-<<parameters.ruby>>-{{ checksum "/tmp/.tool-versions" }}
|
68
|
+
paths:
|
69
|
+
- /home/circleci/.rubygems
|
70
|
+
- run:
|
71
|
+
name: "Runs specs"
|
72
|
+
command: |
|
73
|
+
<<#parameters.coverage>>export COVERAGE=true<</parameters.coverage>>
|
74
|
+
bin/rspec --format progress --format RspecJunitFormatter --out "$PWD/test-results/results.xml"
|
75
|
+
- when:
|
76
|
+
condition: <<parameters.coverage>>
|
77
|
+
steps: ["codecov/upload"]
|
78
|
+
path: test-results
|
79
|
+
- store_artifacts:
|
80
|
+
path: /home/circleci/project/dummy-app/tmp/capybara/
|
81
|
+
destination: capybara
|
82
|
+
- store_artifacts:
|
83
|
+
path: /home/circleci/project/coverage/
|
84
|
+
destination: coverage
|
38
85
|
lint-code:
|
39
|
-
|
86
|
+
parameters:
|
87
|
+
ruby:
|
88
|
+
type: string
|
89
|
+
default: "3.2"
|
90
|
+
executor:
|
91
|
+
name: solidusio_extensions/sqlite-memory
|
92
|
+
ruby_version: << parameters.ruby >>
|
40
93
|
steps:
|
41
94
|
- solidusio_extensions/lint-code
|
95
|
+
- run:
|
96
|
+
name: Generate documentation
|
97
|
+
command: |
|
98
|
+
bundle exec yardoc
|
99
|
+
- store_artifacts:
|
100
|
+
path: /home/circleci/project/doc
|
101
|
+
destination: doc
|
42
102
|
|
43
103
|
workflows:
|
44
|
-
|
45
|
-
jobs:
|
46
|
-
- run-specs-with-postgres
|
47
|
-
- run-specs-with-mysql
|
48
|
-
- run-specs-with-sqlite
|
49
|
-
- lint-code
|
50
|
-
|
51
|
-
"Weekly run specs against master":
|
52
|
-
triggers:
|
53
|
-
- schedule:
|
54
|
-
cron: "0 0 * * 4" # every Thursday
|
55
|
-
filters:
|
56
|
-
branches:
|
57
|
-
only:
|
58
|
-
- master
|
104
|
+
build:
|
59
105
|
jobs:
|
60
|
-
- run-specs
|
61
|
-
|
106
|
+
- run-specs:
|
107
|
+
name: &name "run-specs-ruby-<<matrix.ruby>>-db-<<matrix.database>>"
|
108
|
+
context: stripe-test-credentials
|
109
|
+
matrix:
|
110
|
+
parameters: { ruby: ["3.2"], database: ["sqlite"], coverage: [true] }
|
111
|
+
- run-specs:
|
112
|
+
name: *name
|
113
|
+
context: stripe-test-credentials
|
114
|
+
matrix:
|
115
|
+
parameters: { ruby: ["3.1"], database: ["mysql"], coverage: [false] }
|
116
|
+
- run-specs:
|
117
|
+
name: *name
|
118
|
+
context: stripe-test-credentials
|
119
|
+
matrix:
|
120
|
+
parameters: { ruby: ["3.0"], database: ["postgres"], coverage: [false] }
|
121
|
+
- lint-code:
|
122
|
+
ruby: "3.0"
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,7 +1,97 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require:
|
4
|
-
- solidus_dev_support/rubocop
|
1
|
+
require: ["rubocop-rspec", "rubocop-rails", "rubocop-performance"]
|
5
2
|
|
6
3
|
AllCops:
|
7
4
|
NewCops: disable
|
5
|
+
TargetRubyVersion: '3.0'
|
6
|
+
Exclude:
|
7
|
+
- vendor/**/*
|
8
|
+
- sandbox/**/*
|
9
|
+
- dummy-app/**/*
|
10
|
+
- spec/dummy/**/*
|
11
|
+
|
12
|
+
Layout/ArgumentAlignment: {EnforcedStyle: with_fixed_indentation}
|
13
|
+
Layout/DotPosition: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#layoutdotposition"}
|
14
|
+
Layout/EmptyLinesAroundAttributeAccessor: {Enabled: true}
|
15
|
+
Layout/FirstArgumentIndentation: {EnforcedStyle: "consistent"}
|
16
|
+
Layout/FirstArrayElementIndentation: {EnforcedStyle: "consistent"}
|
17
|
+
Layout/LineLength: {Enabled: true, Max: 120, Exclude: [ "db/migrate/**/*" ]}
|
18
|
+
Layout/MultilineMethodCallIndentation: {EnforcedStyle: indented} # Gain space by indenting from the start of the line, instead of the end of the method name.
|
19
|
+
Layout/MultilineOperationIndentation: {Enabled: false}
|
20
|
+
Layout/SpaceAroundMethodCallOperator: {Enabled: true}
|
21
|
+
Layout/SpaceBeforeBlockBraces: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#layoutspacebeforeblockbraces"}
|
22
|
+
Layout/SpaceInsideParens: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#layoutspaceinsideparens"}
|
23
|
+
Lint/AmbiguousRegexpLiteral: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#lintambiguousregexpliteral"}
|
24
|
+
Lint/AssignmentInCondition: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#lintassignmentincondition"}
|
25
|
+
Lint/DeprecatedOpenSSLConstant: {Enabled: true}
|
26
|
+
Lint/MixedRegexpCaptureTypes: {Enabled: true}
|
27
|
+
Lint/RaiseException: {Enabled: true}
|
28
|
+
Lint/StructNewOverride: {Enabled: true}
|
29
|
+
Metrics/AbcSize: {Enabled: false}
|
30
|
+
Metrics/BlockLength: {Enabled: false}
|
31
|
+
Metrics/BlockNesting: {Enabled: false}
|
32
|
+
Metrics/ClassLength: {Enabled: false}
|
33
|
+
Metrics/CyclomaticComplexity: {Enabled: false}
|
34
|
+
Metrics/MethodLength: {Enabled: false}
|
35
|
+
Metrics/ModuleLength: {Enabled: false}
|
36
|
+
Metrics/ParameterLists: {Enabled: false}
|
37
|
+
Metrics/PerceivedComplexity: {Enabled: false}
|
38
|
+
Performance/AncestorsInclude: {Enabled: true}
|
39
|
+
Performance/BigDecimalWithNumericArgument: {Enabled: true}
|
40
|
+
Performance/RedundantSortBlock: {Enabled: true}
|
41
|
+
Performance/RedundantStringChars: {Enabled: true}
|
42
|
+
Performance/ReverseFirst: {Enabled: true}
|
43
|
+
Performance/SortReverse: {Enabled: true}
|
44
|
+
Performance/Squeeze: {Enabled: true}
|
45
|
+
Performance/StringInclude: {Enabled: true}
|
46
|
+
Rails/NotNullColumn: {Exclude: ["db/migrate/20230310152615_add_payment_method_reference_to_stripe_intents.rb"]}
|
47
|
+
Rails/SkipsModelValidations: {Exclude: ["spec/**/*"]}
|
48
|
+
RSpec/DescribeClass: {Exclude: ["spec/features/**/*", "spec/system/**/*", "spec/system/**/*"]} # Feature/System specs are not describing any class or module.
|
49
|
+
RSpec/ExampleLength: {Enabled: false}
|
50
|
+
RSpec/FilePath: {Exclude: ["spec/requests/solidus_stripe/webhooks_controller/**/*"]}
|
51
|
+
RSpec/MultipleExpectations: {Enabled: false} # More is more.
|
52
|
+
Style/AccessorGrouping: {Enabled: true}
|
53
|
+
Style/Alias: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylealias"}
|
54
|
+
Style/AsciiComments: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleasciicomments"}
|
55
|
+
Style/BeginBlock: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylebeginblock"}
|
56
|
+
Style/BisectedAttrAccessor: {Enabled: true}
|
57
|
+
Style/BlockDelimiters: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleblockdelimiters"}
|
58
|
+
Style/ClassAndModuleChildren: {Enabled: false} # Avoiding the nested namespaces can avoid some ambiguities, forcing full references. Also saves horizontal space.
|
59
|
+
Style/CommentAnnotation: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylecommentannotation"}
|
60
|
+
Style/Documentation: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styledocumentation"}
|
61
|
+
Style/DoubleNegation: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styledoublenegation"}
|
62
|
+
Style/EndBlock: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleendblock"}
|
63
|
+
Style/ExponentialNotation: {Enabled: true}
|
64
|
+
Style/FormatString: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleformatstring"}
|
65
|
+
Style/FrozenStringLiteralComment: {Exclude: ["spec/**/*", "db/migrate/**/*", "bin/**/*"]}
|
66
|
+
Style/HashEachMethods: {Enabled: true}
|
67
|
+
Style/HashTransformKeys: {Enabled: true}
|
68
|
+
Style/HashTransformValues: {Enabled: true}
|
69
|
+
Style/IfUnlessModifier: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleifunlessmodifier"}
|
70
|
+
Style/Lambda: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylelambda"}
|
71
|
+
Style/ModuleFunction: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylemodulefunction"}
|
72
|
+
Style/MultilineBlockChain: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylemultilineblockchain"}
|
73
|
+
Style/MultilineTernaryOperator: {Enabled: false}
|
74
|
+
Style/NegatedIf: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylenegatedif"}
|
75
|
+
Style/NegatedWhile: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylenegatedwhile"}
|
76
|
+
Style/NumericPredicate: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylenumericpredicate"}
|
77
|
+
Style/ParallelAssignment: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleparallelassignment"}
|
78
|
+
Style/PercentLiteralDelimiters: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylepercentliteraldelimiters"}
|
79
|
+
Style/PerlBackrefs: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleperlbackrefs"}
|
80
|
+
Style/RedundantAssignment: {Enabled: true}
|
81
|
+
Style/RedundantFetchBlock: {Enabled: true}
|
82
|
+
Style/RedundantRegexpCharacterClass: {Enabled: true}
|
83
|
+
Style/RedundantRegexpEscape: {Enabled: true}
|
84
|
+
Style/Semicolon: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylesemicolon"}
|
85
|
+
Style/SignalException: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylesignalexception"}
|
86
|
+
Style/SingleLineBlockParams: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylesinglelineblockparams"}
|
87
|
+
Style/SingleLineMethods: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylesinglelinemethods"}
|
88
|
+
Style/SlicingWithRange: {Enabled: true}
|
89
|
+
Style/SpecialGlobalVars: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylespecialglobalvars"}
|
90
|
+
Style/StringLiterals: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylestringliterals"}
|
91
|
+
Style/SymbolArray: {Enabled: false, StyleGuide: "http://relaxed.ruby.style/#stylesymbolarray"}
|
92
|
+
Style/TrailingCommaInArguments: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styletrailingcommainarguments"}
|
93
|
+
Style/TrailingCommaInArrayLiteral: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styletrailingcommainarrayliteral"}
|
94
|
+
Style/TrailingCommaInHashLiteral: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styletrailingcommainhashliteral"}
|
95
|
+
Style/TrailingUnderscoreVariable: {Enabled: false} # This was suggesting to use the dangling comma instead, which is super cryptic 🙈.
|
96
|
+
Style/WhileUntilModifier: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylewhileuntilmodifier"}
|
97
|
+
Style/WordArray: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylewordarray"}
|
data/.yardopts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{lib,app}/**/*.rb --fail-on-warning --markup markdown
|
data/CHANGELOG.md
CHANGED
@@ -1,267 +1,3 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
[Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v4.3.0...v4.4.0)
|
6
|
-
|
7
|
-
**Fixed bugs:**
|
8
|
-
|
9
|
-
- Test issue, please disregard [\#145](https://github.com/solidusio/solidus_stripe/issues/145)
|
10
|
-
- Fix incorrect charge amount for currencies without fractions [\#138](https://github.com/solidusio/solidus_stripe/issues/138)
|
11
|
-
- ActionView::MissingTemplate in Spree::Checkout\#edit [\#127](https://github.com/solidusio/solidus_stripe/issues/127)
|
12
|
-
|
13
|
-
**Closed issues:**
|
14
|
-
|
15
|
-
- RFC: Overhauling solidus\_stripe [\#135](https://github.com/solidusio/solidus_stripe/issues/135)
|
16
|
-
- Initializer fails with uninitialized constant Spree::PaymentMethod [\#133](https://github.com/solidusio/solidus_stripe/issues/133)
|
17
|
-
- How to pass zip code when add a Credit Card [\#132](https://github.com/solidusio/solidus_stripe/issues/132)
|
18
|
-
- Undefined method `cvv\_path' [\#130](https://github.com/solidusio/solidus_stripe/issues/130)
|
19
|
-
- Javascript don't working after solidus\_stripe installation [\#126](https://github.com/solidusio/solidus_stripe/issues/126)
|
20
|
-
- Facing dependency issue after upgrade solidus 3 [\#114](https://github.com/solidusio/solidus_stripe/issues/114)
|
21
|
-
- New release for solidus 3 [\#113](https://github.com/solidusio/solidus_stripe/issues/113)
|
22
|
-
- How to specify API version [\#93](https://github.com/solidusio/solidus_stripe/issues/93)
|
23
|
-
- Consistency between README and Wiki [\#67](https://github.com/solidusio/solidus_stripe/issues/67)
|
24
|
-
|
25
|
-
**Merged pull requests:**
|
26
|
-
|
27
|
-
- Fix adding a new customer card in admin [\#144](https://github.com/solidusio/solidus_stripe/pull/144) ([elia](https://github.com/elia))
|
28
|
-
- Fix incorrect charge amount for currencies without fractions [\#139](https://github.com/solidusio/solidus_stripe/pull/139) ([cmbaldwin](https://github.com/cmbaldwin))
|
29
|
-
- Fix setup instructions for Rails 7 [\#136](https://github.com/solidusio/solidus_stripe/pull/136) ([diegomichel](https://github.com/diegomichel))
|
30
|
-
- Update stale bot to extend org-level config [\#134](https://github.com/solidusio/solidus_stripe/pull/134) ([gsmendoza](https://github.com/gsmendoza))
|
31
|
-
- Revert "Add back custom view paths that were mistakenly removed" [\#129](https://github.com/solidusio/solidus_stripe/pull/129) ([elia](https://github.com/elia))
|
32
|
-
- Add back custom view paths that were mistakenly removed [\#128](https://github.com/solidusio/solidus_stripe/pull/128) ([elia](https://github.com/elia))
|
33
|
-
- Fix the CI after the Solidus v3.2 release [\#125](https://github.com/solidusio/solidus_stripe/pull/125) ([elia](https://github.com/elia))
|
34
|
-
- Update to use forked solidus\_frontend when needed [\#124](https://github.com/solidusio/solidus_stripe/pull/124) ([waiting-for-dev](https://github.com/waiting-for-dev))
|
35
|
-
- Fix CI and tests on Rails 7 [\#123](https://github.com/solidusio/solidus_stripe/pull/123) ([waiting-for-dev](https://github.com/waiting-for-dev))
|
36
|
-
|
37
|
-
## [v4.3.0](https://github.com/solidusio/solidus_stripe/tree/v4.3.0) (2021-10-19)
|
38
|
-
|
39
|
-
[Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v4.2.0...v4.3.0)
|
40
|
-
|
41
|
-
**Implemented enhancements:**
|
42
|
-
|
43
|
-
- Remove Solidus 2.x deprecation to allow 3.0 usage [\#99](https://github.com/solidusio/solidus_stripe/pull/99) ([kennyadsl](https://github.com/kennyadsl))
|
44
|
-
- Update gem with the latest dev\_support [\#97](https://github.com/solidusio/solidus_stripe/pull/97) ([kennyadsl](https://github.com/kennyadsl))
|
45
|
-
|
46
|
-
**Fixed bugs:**
|
47
|
-
|
48
|
-
- Fix 3DS iframe selection [\#86](https://github.com/solidusio/solidus_stripe/pull/86) ([spaghetticode](https://github.com/spaghetticode))
|
49
|
-
|
50
|
-
**Closed issues:**
|
51
|
-
|
52
|
-
- Could not create payment [\#111](https://github.com/solidusio/solidus_stripe/issues/111)
|
53
|
-
- statement\_descriptor\_suffix [\#107](https://github.com/solidusio/solidus_stripe/issues/107)
|
54
|
-
- Shipping cost payment refund rejected from Stripe API because of negative charge value [\#101](https://github.com/solidusio/solidus_stripe/issues/101)
|
55
|
-
- Remove Solidus 2.x deprecations [\#98](https://github.com/solidusio/solidus_stripe/issues/98)
|
56
|
-
- about LICENSE [\#59](https://github.com/solidusio/solidus_stripe/issues/59)
|
57
|
-
|
58
|
-
**Merged pull requests:**
|
59
|
-
|
60
|
-
- Add statement\_descriptor\_suffix support to options\_for\_purchase\_or\_auth [\#106](https://github.com/solidusio/solidus_stripe/pull/106) ([torukMnk](https://github.com/torukMnk))
|
61
|
-
- Update install instructions [\#105](https://github.com/solidusio/solidus_stripe/pull/105) ([kennyadsl](https://github.com/kennyadsl))
|
62
|
-
- Allow Solidus 3 [\#104](https://github.com/solidusio/solidus_stripe/pull/104) ([kennyadsl](https://github.com/kennyadsl))
|
63
|
-
- Bump minimum solidus\_support version requirement [\#102](https://github.com/solidusio/solidus_stripe/pull/102) ([filippoliverani](https://github.com/filippoliverani))
|
64
|
-
- Relax Ruby required version to support Ruby 3.0+ [\#96](https://github.com/solidusio/solidus_stripe/pull/96) ([filippoliverani](https://github.com/filippoliverani))
|
65
|
-
- Update refund\_decorator.rb prepend namespacing [\#91](https://github.com/solidusio/solidus_stripe/pull/91) ([brchristian](https://github.com/brchristian))
|
66
|
-
- Retrieve phone number paying with digital wallets [\#90](https://github.com/solidusio/solidus_stripe/pull/90) ([kennyadsl](https://github.com/kennyadsl))
|
67
|
-
- Fix Intents API link in README [\#87](https://github.com/solidusio/solidus_stripe/pull/87) ([kennyadsl](https://github.com/kennyadsl))
|
68
|
-
- Add missing 'var' [\#85](https://github.com/solidusio/solidus_stripe/pull/85) ([willread](https://github.com/willread))
|
69
|
-
- Fixes Rails 6.1 load warnings [\#84](https://github.com/solidusio/solidus_stripe/pull/84) ([marcrohloff](https://github.com/marcrohloff))
|
70
|
-
- Dedupe common code in stripe\_checkout\_spec.rb [\#80](https://github.com/solidusio/solidus_stripe/pull/80) ([brchristian](https://github.com/brchristian))
|
71
|
-
- Refactor spec with fill\_in\_card helper [\#78](https://github.com/solidusio/solidus_stripe/pull/78) ([brchristian](https://github.com/brchristian))
|
72
|
-
- Fix non-breaking space character in comment [\#76](https://github.com/solidusio/solidus_stripe/pull/76) ([brchristian](https://github.com/brchristian))
|
73
|
-
- Fix Copyright in README [\#73](https://github.com/solidusio/solidus_stripe/pull/73) ([kennyadsl](https://github.com/kennyadsl))
|
74
|
-
- Remove server and test\_mode from README [\#66](https://github.com/solidusio/solidus_stripe/pull/66) ([adammathys](https://github.com/adammathys))
|
75
|
-
|
76
|
-
## [v4.2.0](https://github.com/solidusio/solidus_stripe/tree/v4.2.0) (2020-07-20)
|
77
|
-
|
78
|
-
[Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v4.1.0...v4.2.0)
|
79
|
-
|
80
|
-
**Fixed bugs:**
|
81
|
-
|
82
|
-
- Fix StripeCreditCard\#try\_void with Elements/V2 API [\#75](https://github.com/solidusio/solidus_stripe/pull/75) ([spaghetticode](https://github.com/spaghetticode))
|
83
|
-
|
84
|
-
**Closed issues:**
|
85
|
-
|
86
|
-
- A token may not be passed in as a PaymentMethod. Instead, create a PaymentMethod or convert your token to a PaymentMethod by setting the `card[token]` parameter to [\#71](https://github.com/solidusio/solidus_stripe/issues/71)
|
87
|
-
|
88
|
-
**Merged pull requests:**
|
89
|
-
|
90
|
-
- Fix 3DS modal amount verification [\#72](https://github.com/solidusio/solidus_stripe/pull/72) ([spaghetticode](https://github.com/spaghetticode))
|
91
|
-
|
92
|
-
## [v4.1.0](https://github.com/solidusio/solidus_stripe/tree/v4.1.0) (2020-07-01)
|
93
|
-
|
94
|
-
[Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v3.2.1...v4.1.0)
|
95
|
-
|
96
|
-
**Fixed bugs:**
|
97
|
-
|
98
|
-
- Card name ignored when adding new card to an order during checkout [\#68](https://github.com/solidusio/solidus_stripe/issues/68)
|
99
|
-
- Try to find address state also by name [\#65](https://github.com/solidusio/solidus_stripe/pull/65) ([spaghetticode](https://github.com/spaghetticode))
|
100
|
-
- Fix order cancel with Payment Intents captured payment [\#57](https://github.com/solidusio/solidus_stripe/pull/57) ([spaghetticode](https://github.com/spaghetticode))
|
101
|
-
|
102
|
-
**Merged pull requests:**
|
103
|
-
|
104
|
-
- Save correct cardholder name in Spree::CreditCard [\#69](https://github.com/solidusio/solidus_stripe/pull/69) ([spaghetticode](https://github.com/spaghetticode))
|
105
|
-
- Update Readme [\#63](https://github.com/solidusio/solidus_stripe/pull/63) ([aleph1ow](https://github.com/aleph1ow))
|
106
|
-
- Remove credit cards image [\#62](https://github.com/solidusio/solidus_stripe/pull/62) ([aleph1ow](https://github.com/aleph1ow))
|
107
|
-
- Remove Stripe::CardError leftover [\#58](https://github.com/solidusio/solidus_stripe/pull/58) ([spaghetticode](https://github.com/spaghetticode))
|
108
|
-
- Update gemspec URLs [\#54](https://github.com/solidusio/solidus_stripe/pull/54) ([elia](https://github.com/elia))
|
109
|
-
- fix typo [\#51](https://github.com/solidusio/solidus_stripe/pull/51) ([ccarruitero](https://github.com/ccarruitero))
|
110
|
-
|
111
|
-
## [v3.2.1](https://github.com/solidusio/solidus_stripe/tree/v3.2.1) (2020-06-29)
|
112
|
-
|
113
|
-
[Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v4.0.0...v3.2.1)
|
114
|
-
|
115
|
-
**Fixed bugs:**
|
116
|
-
|
117
|
-
- \[ADMIN\] Order cancel doen't work with Payment Intents captured payments [\#56](https://github.com/solidusio/solidus_stripe/issues/56)
|
118
|
-
|
119
|
-
**Closed issues:**
|
120
|
-
|
121
|
-
- Could not find generator 'solidus\_stripe:install' [\#60](https://github.com/solidusio/solidus_stripe/issues/60)
|
122
|
-
- Payment Intent creation exception handling with class not present in the gem [\#55](https://github.com/solidusio/solidus_stripe/issues/55)
|
123
|
-
- Using static credentials [\#52](https://github.com/solidusio/solidus_stripe/issues/52)
|
124
|
-
- Auto capture behavior in v4.0.0 [\#50](https://github.com/solidusio/solidus_stripe/issues/50)
|
125
|
-
|
126
|
-
## [v4.0.0](https://github.com/solidusio/solidus_stripe/tree/v4.0.0) (2020-04-29)
|
127
|
-
|
128
|
-
[Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v3.2.0...v4.0.0)
|
129
|
-
|
130
|
-
**Fixed bugs:**
|
131
|
-
|
132
|
-
- Fix for 3D-Secure payments on cart page checkout [\#49](https://github.com/solidusio/solidus_stripe/pull/49) ([spaghetticode](https://github.com/spaghetticode))
|
133
|
-
|
134
|
-
**Closed issues:**
|
135
|
-
|
136
|
-
- Custom stripe element field options \(e.g for showing a credit card icon\) [\#41](https://github.com/solidusio/solidus_stripe/issues/41)
|
137
|
-
- Clearer documentation on how to implement [\#15](https://github.com/solidusio/solidus_stripe/issues/15)
|
138
|
-
|
139
|
-
**Merged pull requests:**
|
140
|
-
|
141
|
-
- Relax solidus\_support dependency [\#48](https://github.com/solidusio/solidus_stripe/pull/48) ([kennyadsl](https://github.com/kennyadsl))
|
142
|
-
|
143
|
-
## [v3.2.0](https://github.com/solidusio/solidus_stripe/tree/v3.2.0) (2020-04-10)
|
144
|
-
|
145
|
-
[Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v3.1.0...v3.2.0)
|
146
|
-
|
147
|
-
**Fixed bugs:**
|
148
|
-
|
149
|
-
- Send form data also when paying with payment request button [\#47](https://github.com/solidusio/solidus_stripe/pull/47) ([spaghetticode](https://github.com/spaghetticode))
|
150
|
-
|
151
|
-
**Merged pull requests:**
|
152
|
-
|
153
|
-
- Replace deprecated route `/stripe/confirm_payment` [\#46](https://github.com/solidusio/solidus_stripe/pull/46) ([spaghetticode](https://github.com/spaghetticode))
|
154
|
-
|
155
|
-
## [v3.1.0](https://github.com/solidusio/solidus_stripe/tree/v3.1.0) (2020-04-10)
|
156
|
-
|
157
|
-
[Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v3.0.0...v3.1.0)
|
158
|
-
|
159
|
-
**Fixed bugs:**
|
160
|
-
|
161
|
-
- Duplicates charges with Payment Intents [\#44](https://github.com/solidusio/solidus_stripe/issues/44)
|
162
|
-
- Create a single charge when using Stripe Payment Intents [\#45](https://github.com/solidusio/solidus_stripe/pull/45) ([spaghetticode](https://github.com/spaghetticode))
|
163
|
-
|
164
|
-
**Closed issues:**
|
165
|
-
|
166
|
-
- Stripe Elements submit button stuck in disabled state. [\#39](https://github.com/solidusio/solidus_stripe/issues/39)
|
167
|
-
- Visa credit card type is blank [\#36](https://github.com/solidusio/solidus_stripe/issues/36)
|
168
|
-
- Pay with Apple Pay from cart page [\#23](https://github.com/solidusio/solidus_stripe/issues/23)
|
169
|
-
|
170
|
-
**Merged pull requests:**
|
171
|
-
|
172
|
-
- Custom Stripe Elements field options [\#42](https://github.com/solidusio/solidus_stripe/pull/42) ([stuffmatic](https://github.com/stuffmatic))
|
173
|
-
- Improve the way Stripe Elements validation errors are displayed [\#40](https://github.com/solidusio/solidus_stripe/pull/40) ([stuffmatic](https://github.com/stuffmatic))
|
174
|
-
- Fix stripe-to-solidus card type mapping [\#38](https://github.com/solidusio/solidus_stripe/pull/38) ([stuffmatic](https://github.com/stuffmatic))
|
175
|
-
- Add hook to provide custom Stripe Elements options [\#37](https://github.com/solidusio/solidus_stripe/pull/37) ([stuffmatic](https://github.com/stuffmatic))
|
176
|
-
- Change order description that we pass to Stripe [\#35](https://github.com/solidusio/solidus_stripe/pull/35) ([kennyadsl](https://github.com/kennyadsl))
|
177
|
-
|
178
|
-
## [v3.0.0](https://github.com/solidusio/solidus_stripe/tree/v3.0.0) (2020-03-11)
|
179
|
-
|
180
|
-
[Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v2.1.0...v3.0.0)
|
181
|
-
|
182
|
-
**Implemented enhancements:**
|
183
|
-
|
184
|
-
- Rename v3/stripe partial as v3/elements [\#30](https://github.com/solidusio/solidus_stripe/pull/30) ([spaghetticode](https://github.com/spaghetticode))
|
185
|
-
|
186
|
-
**Merged pull requests:**
|
187
|
-
|
188
|
-
- Allow to customize Stripe Elements styles via JS [\#34](https://github.com/solidusio/solidus_stripe/pull/34) ([spaghetticode](https://github.com/spaghetticode))
|
189
|
-
- Stop injecting css in host app while installing [\#33](https://github.com/solidusio/solidus_stripe/pull/33) ([kennyadsl](https://github.com/kennyadsl))
|
190
|
-
- Manage Stripe V3 JS code via Sprokets [\#32](https://github.com/solidusio/solidus_stripe/pull/32) ([spaghetticode](https://github.com/spaghetticode))
|
191
|
-
|
192
|
-
## [v2.1.0](https://github.com/solidusio/solidus_stripe/tree/v2.1.0) (2020-03-11)
|
193
|
-
|
194
|
-
[Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v2.0.0...v2.1.0)
|
195
|
-
|
196
|
-
**Closed issues:**
|
197
|
-
|
198
|
-
- Preference :stripe\_country is not defined on Spree::PaymentMethod::StripeCreditCard \(RuntimeError\) [\#27](https://github.com/solidusio/solidus_stripe/issues/27)
|
199
|
-
|
200
|
-
**Merged pull requests:**
|
201
|
-
|
202
|
-
- Refactor Stripe V3 Intents, Elements and cart checkout JS code [\#31](https://github.com/solidusio/solidus_stripe/pull/31) ([spaghetticode](https://github.com/spaghetticode))
|
203
|
-
|
204
|
-
## [v2.0.0](https://github.com/solidusio/solidus_stripe/tree/v2.0.0) (2020-03-03)
|
205
|
-
|
206
|
-
[Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v1.2.0...v2.0.0)
|
207
|
-
|
208
|
-
**Implemented enhancements:**
|
209
|
-
|
210
|
-
- Add support for Apple Pay through Stripe Payment Request Button [\#22](https://github.com/solidusio/solidus_stripe/issues/22)
|
211
|
-
- Cart page payment with Stripe payment request button \(Apple/Google Pay\) [\#29](https://github.com/solidusio/solidus_stripe/pull/29) ([spaghetticode](https://github.com/spaghetticode))
|
212
|
-
- Allow Apple Pay and Google Pay via Payment Request Button [\#25](https://github.com/solidusio/solidus_stripe/pull/25) ([spaghetticode](https://github.com/spaghetticode))
|
213
|
-
- Use Payment Intents API with Active Merchant [\#20](https://github.com/solidusio/solidus_stripe/pull/20) ([spaghetticode](https://github.com/spaghetticode))
|
214
|
-
|
215
|
-
**Closed issues:**
|
216
|
-
|
217
|
-
- Handling of Strong Customer Authentication \(SCA\) [\#18](https://github.com/solidusio/solidus_stripe/issues/18)
|
218
|
-
- Stripe checkout fails when using a stored credit card number [\#16](https://github.com/solidusio/solidus_stripe/issues/16)
|
219
|
-
- Better PCI-Compliance with stripe.js version 3 [\#5](https://github.com/solidusio/solidus_stripe/issues/5)
|
220
|
-
- No gem found [\#4](https://github.com/solidusio/solidus_stripe/issues/4)
|
221
|
-
|
222
|
-
**Merged pull requests:**
|
223
|
-
|
224
|
-
- Remove ERB from Elements and Intents JS code [\#28](https://github.com/solidusio/solidus_stripe/pull/28) ([spaghetticode](https://github.com/spaghetticode))
|
225
|
-
- Remove `update_attributes!` deprecation [\#24](https://github.com/solidusio/solidus_stripe/pull/24) ([spaghetticode](https://github.com/spaghetticode))
|
226
|
-
- Add solidus\_dev\_support gem [\#21](https://github.com/solidusio/solidus_stripe/pull/21) ([spaghetticode](https://github.com/spaghetticode))
|
227
|
-
- Fix reusing cards with Stripe v3 [\#17](https://github.com/solidusio/solidus_stripe/pull/17) ([kennyadsl](https://github.com/kennyadsl))
|
228
|
-
- Extension maintenance [\#14](https://github.com/solidusio/solidus_stripe/pull/14) ([kennyadsl](https://github.com/kennyadsl))
|
229
|
-
- Update README installation instructions [\#13](https://github.com/solidusio/solidus_stripe/pull/13) ([hashrocketeer](https://github.com/hashrocketeer))
|
230
|
-
- Use preferred\_v3\_elements instead of preferences\[:v3\_elements\] [\#12](https://github.com/solidusio/solidus_stripe/pull/12) ([ChristianRimondi](https://github.com/ChristianRimondi))
|
231
|
-
- Remove `Spree.t` in favor of `I18n.t` [\#11](https://github.com/solidusio/solidus_stripe/pull/11) ([spaghetticode](https://github.com/spaghetticode))
|
232
|
-
- Remove Capybara deprecation warning [\#10](https://github.com/solidusio/solidus_stripe/pull/10) ([spaghetticode](https://github.com/spaghetticode))
|
233
|
-
- Add Stripe.js V3 with Elements [\#9](https://github.com/solidusio/solidus_stripe/pull/9) ([spaghetticode](https://github.com/spaghetticode))
|
234
|
-
- Remove unused CircleCI config [\#8](https://github.com/solidusio/solidus_stripe/pull/8) ([aitbw](https://github.com/aitbw))
|
235
|
-
- Add Rubocop for linting [\#7](https://github.com/solidusio/solidus_stripe/pull/7) ([aitbw](https://github.com/aitbw))
|
236
|
-
- Allow creating seeds with the install command [\#6](https://github.com/solidusio/solidus_stripe/pull/6) ([kennyadsl](https://github.com/kennyadsl))
|
237
|
-
- Add Solidus v2.8 to Travis config [\#3](https://github.com/solidusio/solidus_stripe/pull/3) ([aitbw](https://github.com/aitbw))
|
238
|
-
- Update README.md [\#2](https://github.com/solidusio/solidus_stripe/pull/2) ([brchristian](https://github.com/brchristian))
|
239
|
-
- Add missing API partial for stripe gateway [\#1](https://github.com/solidusio/solidus_stripe/pull/1) ([jontarg](https://github.com/jontarg))
|
240
|
-
|
241
|
-
## [v1.2.0](https://github.com/solidusio/solidus_stripe/tree/v1.2.0) (2017-07-24)
|
242
|
-
|
243
|
-
[Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v1.1.1...v1.2.0)
|
244
|
-
|
245
|
-
## [v1.1.1](https://github.com/solidusio/solidus_stripe/tree/v1.1.1) (2016-09-22)
|
246
|
-
|
247
|
-
[Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v1.1.0...v1.1.1)
|
248
|
-
|
249
|
-
## [v1.1.0](https://github.com/solidusio/solidus_stripe/tree/v1.1.0) (2016-07-26)
|
250
|
-
|
251
|
-
[Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v1.0.1...v1.1.0)
|
252
|
-
|
253
|
-
## [v1.0.1](https://github.com/solidusio/solidus_stripe/tree/v1.0.1) (2016-01-13)
|
254
|
-
|
255
|
-
[Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v0.9.0...v1.0.1)
|
256
|
-
|
257
|
-
## [v0.9.0](https://github.com/solidusio/solidus_stripe/tree/v0.9.0) (2015-08-28)
|
258
|
-
|
259
|
-
[Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v1.0.0...v0.9.0)
|
260
|
-
|
261
|
-
## [v1.0.0](https://github.com/solidusio/solidus_stripe/tree/v1.0.0) (2015-08-27)
|
262
|
-
|
263
|
-
[Full Changelog](https://github.com/solidusio/solidus_stripe/compare/c20c3f69811d68c374ffedc2e20c1bc6bdb45f95...v1.0.0)
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
3
|
+
See https://github.com/solidusio/solidus_stripe/releases.
|
data/Gemfile
CHANGED
@@ -1,38 +1,18 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
source 'https://rubygems.org'
|
4
|
-
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
5
4
|
|
6
|
-
|
7
|
-
gem 'solidus', github: 'solidusio/solidus', branch: branch
|
8
|
-
|
9
|
-
# The solidus_frontend gem has been pulled out since v3.2
|
10
|
-
if (branch == 'master') || (branch >= 'v3.2')
|
11
|
-
gem 'solidus_frontend', github: 'solidusio/solidus_frontend', branch: branch
|
12
|
-
end
|
13
|
-
|
14
|
-
# Needed to help Bundler figure out how to resolve dependencies,
|
15
|
-
# otherwise it takes forever to resolve them.
|
16
|
-
# See https://github.com/bundler/bundler/issues/6677
|
17
|
-
gem 'rails', '>0.a'
|
5
|
+
gemspec
|
18
6
|
|
19
|
-
#
|
20
|
-
|
7
|
+
# Those are due to the "stdlib gemification" that's
|
8
|
+
# happening between versions of ruby.
|
9
|
+
gem 'stringio'
|
10
|
+
gem 'timeout'
|
21
11
|
|
22
|
-
|
23
|
-
when 'mysql'
|
24
|
-
gem 'mysql2'
|
25
|
-
when 'postgresql'
|
26
|
-
gem 'pg'
|
27
|
-
else
|
28
|
-
gem 'sqlite3'
|
29
|
-
end
|
12
|
+
gem 'listen'
|
30
13
|
|
31
|
-
|
14
|
+
gem 'activestorage'
|
32
15
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
# We use `send` instead of calling `eval_gemfile` to work around an issue with
|
37
|
-
# how Dependabot parses projects: https://github.com/dependabot/dependabot-core/issues/1658.
|
38
|
-
send(:eval_gemfile, 'Gemfile-local') if File.exist? 'Gemfile-local'
|
16
|
+
gem 'rspec_junit_formatter', require: false
|
17
|
+
gem 'simplecov', '~> 0.22', require: false
|
18
|
+
gem 'simplecov-cobertura', require: false
|
data/LICENSE
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
Copyright (c) 2014 Spree Commerce Inc
|
2
|
-
Copyright (c) 2021 Solidus Team
|
1
|
+
Copyright (c) 2014 Spree Commerce Inc., released under the New BSD License
|
2
|
+
Copyright (c) 2021 Solidus Team, released under the New BSD License.
|
3
3
|
All rights reserved.
|
4
4
|
|
5
5
|
Redistribution and use in source and binary forms, with or without modification,
|
data/Procfile.dev
ADDED
@@ -0,0 +1,3 @@
|
|
1
|
+
web: env RUBY_DEBUG_OPEN=true bin/rails-sandbox server
|
2
|
+
watch: bin/rails-sandbox g solidus_stripe:install --force --watch
|
3
|
+
stripe: stripe listen --forward-to http://localhost:3000/solidus_stripe/test/webhooks --events charge.refunded,payment_intent.succeeded,payment_intent.payment_failed,payment_intent.canceled
|