solidus_stripe 4.4.0 → 4.4.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 +30 -16
- data/CHANGELOG.md +1 -265
- data/Rakefile +41 -1
- data/lib/generators/solidus_stripe/install/install_generator.rb +1 -1
- data/lib/solidus_stripe/version.rb +1 -1
- data/solidus_stripe.gemspec +1 -1
- data/spec/features/stripe_checkout_spec.rb +4 -4
- data/spec/models/solidus_stripe/create_intents_payment_service_spec.rb +1 -1
- data/spec/models/spree/payment_method/stripe_credit_card_spec.rb +8 -4
- data/spec/solidus_frontend_app_template.rb +17 -0
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 348461d7e783545d8c247ab5d0793cff60fd7313b6d268ab96d3ef1b8e0b6b2e
|
4
|
+
data.tar.gz: 48196238b9bcdb0af904edb0e9dcc0cdb52e2521adb07c3e3a9bf68a8063786a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b98a0822761ab828f600e751287335d251fccd00b0b35bc44a472edd1a63004fda9246576da9444c518cdbb5c3852d96b993cd7232f2e1bc1b39fce6f1bee260
|
7
|
+
data.tar.gz: 88b9c12851bca115cd2e3819d58447ce94cb460682a38ebd88843255193fe4bc908fc9f99470174a468be4fd83b6779c457da095a27c638ca37663d165298675
|
data/.circleci/config.yml
CHANGED
@@ -10,33 +10,47 @@ 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
14
|
run-specs-with-postgres:
|
24
|
-
executor:
|
15
|
+
executor:
|
16
|
+
name: solidusio_extensions/postgres
|
17
|
+
ruby_version: "3.2"
|
18
|
+
environment:
|
19
|
+
FRONTEND: "/home/circleci/project/spec/solidus_frontend_app_template.rb"
|
20
|
+
AUTHENTICATION: "devise"
|
25
21
|
steps:
|
26
22
|
- browser-tools/install-chrome
|
27
|
-
-
|
23
|
+
- checkout
|
24
|
+
- solidusio_extensions/dependencies
|
25
|
+
- solidusio_extensions/run-tests-solidus-main
|
26
|
+
- solidusio_extensions/store-test-results
|
27
|
+
|
28
28
|
run-specs-with-mysql:
|
29
|
-
executor:
|
29
|
+
executor:
|
30
|
+
name: solidusio_extensions/mysql
|
31
|
+
ruby_version: "3.1"
|
32
|
+
environment:
|
33
|
+
FRONTEND: "/home/circleci/project/spec/solidus_frontend_app_template.rb"
|
30
34
|
steps:
|
31
35
|
- browser-tools/install-chrome
|
32
|
-
-
|
36
|
+
- checkout
|
37
|
+
- solidusio_extensions/dependencies
|
38
|
+
- solidusio_extensions/run-tests-solidus-current
|
39
|
+
- solidusio_extensions/store-test-results
|
33
40
|
run-specs-with-sqlite:
|
34
|
-
executor:
|
41
|
+
executor:
|
42
|
+
name: solidusio_extensions/sqlite
|
43
|
+
ruby_version: "3.0"
|
35
44
|
steps:
|
36
45
|
- browser-tools/install-chrome
|
37
|
-
-
|
46
|
+
- checkout
|
47
|
+
- solidusio_extensions/dependencies
|
48
|
+
- solidusio_extensions/run-tests-solidus-older
|
49
|
+
- solidusio_extensions/store-test-results
|
38
50
|
lint-code:
|
39
|
-
executor:
|
51
|
+
executor:
|
52
|
+
name: solidusio_extensions/sqlite-memory
|
53
|
+
ruby_version: "3.0"
|
40
54
|
steps:
|
41
55
|
- solidusio_extensions/lint-code
|
42
56
|
|
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/Rakefile
CHANGED
@@ -6,4 +6,44 @@ ENV['SKIP_SOLIDUS_BOLT'] = 'true'
|
|
6
6
|
require 'solidus_dev_support/rake_tasks'
|
7
7
|
SolidusDevSupport::RakeTasks.install
|
8
8
|
|
9
|
-
|
9
|
+
require 'bundler/gem_tasks'
|
10
|
+
|
11
|
+
# Override the default dummy app generation task to
|
12
|
+
# make it compatible with all the supported Solidus versions.
|
13
|
+
Rake::Task['extension:test_app'].clear
|
14
|
+
task 'extension:test_app' do # rubocop:disable Rails/RakeEnvironment
|
15
|
+
Spree::DummyGeneratorHelper.inject_extension_requirements = true
|
16
|
+
|
17
|
+
require 'solidus_stripe'
|
18
|
+
|
19
|
+
Rails.env = ENV["RAILS_ENV"] = 'test'
|
20
|
+
|
21
|
+
Spree::DummyGenerator.start ["--lib-name=solidus_stripe"]
|
22
|
+
|
23
|
+
# While the dummy app is generated the current directory
|
24
|
+
# within ruby is changed to that of the dummy app.
|
25
|
+
sh({
|
26
|
+
'FRONTEND' => ENV['FRONTEND'] || "#{__dir__}/spec/solidus_frontend_app_template.rb",
|
27
|
+
}, [
|
28
|
+
'bin/rails',
|
29
|
+
'generate',
|
30
|
+
'solidus:install',
|
31
|
+
Dir.pwd, # use the current dir as Rails.root
|
32
|
+
"--auto-accept",
|
33
|
+
"--authentication=none",
|
34
|
+
"--payment-method=none",
|
35
|
+
"--migrate=false",
|
36
|
+
"--seed=false",
|
37
|
+
"--sample=false",
|
38
|
+
"--user-class=Spree::LegacyUser",
|
39
|
+
].shelljoin)
|
40
|
+
|
41
|
+
puts "Setting up dummy database..."
|
42
|
+
sh "bin/rails db:environment:set RAILS_ENV=test"
|
43
|
+
sh "bin/rails db:drop db:create db:migrate VERBOSE=false RAILS_ENV=test"
|
44
|
+
|
45
|
+
puts 'Running extension installation generator...'
|
46
|
+
sh "bin/rails generate solidus_stripe:install --auto-run-migrations"
|
47
|
+
end
|
48
|
+
|
49
|
+
task default: ['extension:specs']
|
@@ -14,7 +14,7 @@ module SolidusStripe
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def run_migrations
|
17
|
-
run_migrations = options[:auto_run_migrations] || ['', 'y', 'Y'].include?(ask('Would you like to run the migrations now? [Y/n]')) # rubocop:disable Layout/LineLength
|
17
|
+
run_migrations = options[:auto_run_migrations] || ENV['CI'] || ['', 'y', 'Y'].include?(ask('Would you like to run the migrations now? [Y/n]')) # rubocop:disable Layout/LineLength
|
18
18
|
if run_migrations
|
19
19
|
run 'bin/rails db:migrate'
|
20
20
|
else
|
data/solidus_stripe.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.executables = files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
30
|
spec.require_paths = ["lib"]
|
31
31
|
|
32
|
-
spec.add_dependency 'solidus_core', ['>=
|
32
|
+
spec.add_dependency 'solidus_core', ['>= 3', '< 5']
|
33
33
|
spec.add_dependency 'solidus_support', '~> 0.8'
|
34
34
|
spec.add_dependency 'activemerchant', '>= 1.105'
|
35
35
|
spec.add_dependency 'rexml'
|
@@ -23,7 +23,7 @@ RSpec.describe "Stripe checkout", type: :feature do
|
|
23
23
|
|
24
24
|
FactoryBot.create(:product, name: "DL-44")
|
25
25
|
|
26
|
-
visit
|
26
|
+
visit '/'
|
27
27
|
click_link "DL-44"
|
28
28
|
click_button "Add To Cart"
|
29
29
|
|
@@ -85,7 +85,7 @@ RSpec.describe "Stripe checkout", type: :feature do
|
|
85
85
|
click_button "Place Order"
|
86
86
|
expect(page).to have_content("Your order has been processed successfully")
|
87
87
|
|
88
|
-
visit
|
88
|
+
visit '/'
|
89
89
|
click_link "DL-44"
|
90
90
|
click_button "Add To Cart"
|
91
91
|
|
@@ -207,7 +207,7 @@ RSpec.describe "Stripe checkout", type: :feature do
|
|
207
207
|
click_button "Place Order"
|
208
208
|
expect(page).to have_content("Your order has been processed successfully")
|
209
209
|
|
210
|
-
visit
|
210
|
+
visit '/'
|
211
211
|
click_link "DL-44"
|
212
212
|
click_button "Add To Cart"
|
213
213
|
|
@@ -329,7 +329,7 @@ RSpec.describe "Stripe checkout", type: :feature do
|
|
329
329
|
click_button "Place Order"
|
330
330
|
expect(page).to have_content("Your order has been processed successfully")
|
331
331
|
|
332
|
-
visit
|
332
|
+
visit '/'
|
333
333
|
click_link "DL-44"
|
334
334
|
click_button "Add To Cart"
|
335
335
|
|
@@ -102,7 +102,7 @@ RSpec.describe SolidusStripe::CreateIntentsPaymentService do
|
|
102
102
|
end
|
103
103
|
|
104
104
|
before do
|
105
|
-
response =
|
105
|
+
response = ActiveMerchant::Billing::Response.new(true, nil, {}, authorization: payment.response_code)
|
106
106
|
allow_any_instance_of(Spree::PaymentMethod::StripeCreditCard).to receive(:void) { response }
|
107
107
|
end
|
108
108
|
|
@@ -262,10 +262,14 @@ describe Spree::PaymentMethod::StripeCreditCard do
|
|
262
262
|
end
|
263
263
|
|
264
264
|
let!(:success_response) do
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
265
|
+
ActiveMerchant::Billing::Response.new(
|
266
|
+
true,
|
267
|
+
nil,
|
268
|
+
{},
|
269
|
+
avs_result: { 'code' => 'avs-code' },
|
270
|
+
cvv_result: 'cvv-code',
|
271
|
+
authorization: '123',
|
272
|
+
)
|
269
273
|
end
|
270
274
|
|
271
275
|
after do
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
create_file "public/robots.txt"
|
4
|
+
bundle_command "add solidus_frontend --github solidusio/solidus_frontend --branch #{ENV['SOLIDUS_BRANCH'] || 'main'}"
|
5
|
+
generate "solidus_frontend:install --auto-accept"
|
6
|
+
empty_directory 'lib/generators/solidus_frontend/install'
|
7
|
+
|
8
|
+
create_file 'lib/generators/solidus_frontend/install/install_generator.rb', <<-CODE
|
9
|
+
puts "SolidusFrontend::Generators::InstallGenerator was disabled."
|
10
|
+
module SolidusFrontend
|
11
|
+
module Generators
|
12
|
+
class InstallGenerator < Rails::Generators::Base
|
13
|
+
class_option :auto_accept, type: :boolean, default: false
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
CODE
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.4.
|
4
|
+
version: 4.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_core
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '5'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '3'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '5'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: solidus_support
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -166,6 +166,7 @@ files:
|
|
166
166
|
- spec/models/solidus_stripe/shipping_rates_service_spec.rb
|
167
167
|
- spec/models/spree/payment_method/stripe_credit_card_spec.rb
|
168
168
|
- spec/requests/payment_requests_spec.rb
|
169
|
+
- spec/solidus_frontend_app_template.rb
|
169
170
|
- spec/spec_helper.rb
|
170
171
|
- spec/support/solidus_address_helper.rb
|
171
172
|
homepage: https://github.com/solidusio/solidus_stripe#readme
|
@@ -190,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
190
191
|
- !ruby/object:Gem::Version
|
191
192
|
version: '0'
|
192
193
|
requirements: []
|
193
|
-
rubygems_version: 3.
|
194
|
+
rubygems_version: 3.4.10
|
194
195
|
signing_key:
|
195
196
|
specification_version: 4
|
196
197
|
summary: Stripe Payment Method for Solidus
|
@@ -202,5 +203,6 @@ test_files:
|
|
202
203
|
- spec/models/solidus_stripe/shipping_rates_service_spec.rb
|
203
204
|
- spec/models/spree/payment_method/stripe_credit_card_spec.rb
|
204
205
|
- spec/requests/payment_requests_spec.rb
|
206
|
+
- spec/solidus_frontend_app_template.rb
|
205
207
|
- spec/spec_helper.rb
|
206
208
|
- spec/support/solidus_address_helper.rb
|