solidus_braintree 1.2.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (206) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +47 -0
  3. data/.gem_release.yml +5 -0
  4. data/.github/stale.yml +1 -0
  5. data/.github_changelog_generator +2 -0
  6. data/.gitignore +20 -10
  7. data/.rspec +1 -1
  8. data/.rubocop.yml +79 -0
  9. data/CHANGELOG.md +178 -18
  10. data/Gemfile +35 -17
  11. data/LICENSE +26 -0
  12. data/README.md +389 -24
  13. data/Rakefile +4 -19
  14. data/app/assets/config/solidus_braintree_manifest.js +1 -0
  15. data/app/assets/images/solidus_braintree/venmo/venmo_active_blue_button_280x48.svg +19 -0
  16. data/app/assets/images/solidus_braintree/venmo/venmo_active_blue_button_320x48.svg +19 -0
  17. data/app/assets/images/solidus_braintree/venmo/venmo_active_blue_button_375x48.svg +19 -0
  18. data/app/assets/images/solidus_braintree/venmo/venmo_active_white_button_280x48.svg +19 -0
  19. data/app/assets/images/solidus_braintree/venmo/venmo_active_white_button_320x48.svg +19 -0
  20. data/app/assets/images/solidus_braintree/venmo/venmo_active_white_button_375x48.svg +19 -0
  21. data/app/assets/images/solidus_braintree/venmo/venmo_blue_acceptance_mark.svg +15 -0
  22. data/app/assets/images/solidus_braintree/venmo/venmo_blue_button_280x48.svg +19 -0
  23. data/app/assets/images/solidus_braintree/venmo/venmo_blue_button_320x48.svg +19 -0
  24. data/app/assets/images/solidus_braintree/venmo/venmo_blue_button_375x48.svg +19 -0
  25. data/app/assets/images/solidus_braintree/venmo/venmo_blue_logo.svg +18 -0
  26. data/app/assets/images/solidus_braintree/venmo/venmo_white_acceptance_mark.svg +20 -0
  27. data/app/assets/images/solidus_braintree/venmo/venmo_white_button_280x48.svg +19 -0
  28. data/app/assets/images/solidus_braintree/venmo/venmo_white_button_320x48.svg +19 -0
  29. data/app/assets/images/solidus_braintree/venmo/venmo_white_button_375x48.svg +19 -0
  30. data/app/assets/images/solidus_braintree/venmo/venmo_white_logo.svg +18 -0
  31. data/app/assets/javascripts/solidus_braintree/apple_pay_button.js +179 -0
  32. data/app/assets/javascripts/solidus_braintree/checkout.js +108 -0
  33. data/app/assets/javascripts/solidus_braintree/client.js +239 -0
  34. data/app/assets/javascripts/solidus_braintree/constants.js +89 -0
  35. data/app/assets/javascripts/solidus_braintree/frontend.js +14 -0
  36. data/app/assets/javascripts/solidus_braintree/hosted_form.js +46 -0
  37. data/app/assets/javascripts/solidus_braintree/paypal_button.js +178 -0
  38. data/app/assets/javascripts/solidus_braintree/paypal_messaging.js +22 -0
  39. data/app/assets/javascripts/solidus_braintree/promise.js +20 -0
  40. data/app/assets/javascripts/solidus_braintree/venmo_button.js +86 -0
  41. data/app/assets/javascripts/spree/backend/solidus_braintree.js +96 -0
  42. data/app/assets/javascripts/spree/frontend/paypal_button.js +34 -0
  43. data/app/assets/javascripts/spree/frontend/solidus_braintree.js +1 -0
  44. data/app/assets/stylesheets/spree/backend/solidus_braintree.scss +28 -0
  45. data/app/assets/stylesheets/spree/frontend/solidus_braintree.scss +51 -0
  46. data/app/decorators/controllers/solidus_braintree/admin_payments_controller_decorator.rb +11 -0
  47. data/app/decorators/controllers/solidus_braintree/checkout_controller_decorator.rb +11 -0
  48. data/app/decorators/controllers/solidus_braintree/client_tokens_controller.rb +41 -0
  49. data/app/decorators/controllers/solidus_braintree/orders_controller_decorator.rb +11 -0
  50. data/app/decorators/models/solidus_braintree/spree/store_decorator.rb +20 -0
  51. data/app/decorators/models/solidus_braintree/spree/user_decorator.rb +13 -0
  52. data/app/helpers/solidus_braintree/braintree_admin_helper.rb +23 -0
  53. data/app/helpers/solidus_braintree/braintree_checkout_helper.rb +60 -0
  54. data/app/models/application_record.rb +5 -0
  55. data/app/models/solidus_braintree/address.rb +64 -0
  56. data/app/models/solidus_braintree/avs_result.rb +69 -0
  57. data/app/models/solidus_braintree/configuration.rb +39 -0
  58. data/app/models/solidus_braintree/customer.rb +8 -0
  59. data/app/models/solidus_braintree/gateway.rb +433 -0
  60. data/app/models/solidus_braintree/response.rb +80 -0
  61. data/app/models/solidus_braintree/source.rb +135 -0
  62. data/app/models/solidus_braintree/transaction.rb +31 -0
  63. data/app/models/solidus_braintree/transaction_address.rb +88 -0
  64. data/app/models/solidus_braintree/transaction_import.rb +98 -0
  65. data/app/overrides/spree/payments/payment/add_paypal_funding_source_to_payment.rb +9 -0
  66. data/app/views/spree/api/payments/source_views/_braintree.json.jbuilder +3 -0
  67. data/app/views/spree/checkout/existing_payment/_braintree.html.erb +10 -0
  68. data/app/views/spree/shared/_apple_pay_button.html.erb +27 -0
  69. data/app/views/spree/shared/_braintree_errors.html.erb +16 -0
  70. data/app/views/spree/shared/_braintree_head_scripts.html.erb +26 -0
  71. data/app/views/spree/shared/_braintree_hosted_fields.html.erb +43 -0
  72. data/app/views/spree/shared/_paypal_cart_button.html.erb +38 -0
  73. data/app/views/spree/shared/_paypal_messaging.html.erb +13 -0
  74. data/app/views/spree/shared/_venmo_button.html.erb +33 -0
  75. data/bin/console +4 -1
  76. data/bin/rails +5 -5
  77. data/bin/rails-engine +13 -0
  78. data/bin/rails-sandbox +16 -0
  79. data/bin/rake +7 -0
  80. data/bin/sandbox +103 -0
  81. data/bin/setup +5 -4
  82. data/config/locales/en.yml +94 -2
  83. data/config/locales/it.yml +56 -0
  84. data/config/routes.rb +12 -3
  85. data/db/migrate/20160830061749_create_solidus_paypal_braintree_sources.rb +16 -0
  86. data/db/migrate/20160906201711_create_solidus_paypal_braintree_customers.rb +13 -0
  87. data/db/migrate/20161114231422_create_solidus_paypal_braintree_configurations.rb +11 -0
  88. data/db/migrate/20161125172005_add_braintree_configuration_to_stores.rb +7 -0
  89. data/db/migrate/20170203191030_add_credit_card_to_braintree_configuration.rb +6 -0
  90. data/db/migrate/20170505193712_add_null_constraint_to_sources.rb +38 -0
  91. data/db/migrate/20170508085402_add_not_null_constraint_to_sources_payment_type.rb +14 -0
  92. data/db/migrate/20190705115327_add_paypal_button_preferences_to_braintree_configurations.rb +5 -0
  93. data/db/migrate/20190911141712_add_3d_secure_to_braintree_configuration.rb +5 -0
  94. data/db/migrate/20211222170950_add_paypal_funding_source_to_solidus_paypal_braintree_sources.rb +5 -0
  95. data/db/migrate/20220104150301_add_venmo_to_braintree_configuration.rb +5 -0
  96. data/db/migrate/20230109080950_rename_solidus_paypal_braintree_source_type.rb +31 -0
  97. data/lib/controllers/backend/solidus_braintree/configurations_controller.rb +48 -0
  98. data/lib/controllers/frontend/solidus_braintree/checkouts_controller.rb +31 -0
  99. data/lib/controllers/frontend/solidus_braintree/transactions_controller.rb +67 -0
  100. data/lib/generators/solidus_braintree/install/install_generator.rb +54 -18
  101. data/lib/generators/solidus_braintree/install/templates/initializer.rb +6 -0
  102. data/lib/solidus_braintree/country_mapper.rb +37 -0
  103. data/lib/solidus_braintree/engine.rb +55 -10
  104. data/lib/solidus_braintree/extension_configuration.rb +23 -0
  105. data/lib/solidus_braintree/request_protection.rb +21 -0
  106. data/lib/solidus_braintree/testing_support/factories.rb +53 -0
  107. data/lib/solidus_braintree/version.rb +3 -1
  108. data/lib/solidus_braintree.rb +14 -2
  109. data/lib/solidus_paypal_braintree.rb +6 -0
  110. data/lib/views/backend/solidus_braintree/configurations/list.html.erb +63 -0
  111. data/lib/views/backend/spree/admin/payments/source_forms/_braintree.html.erb +16 -0
  112. data/lib/views/backend/spree/admin/payments/source_views/_braintree.html.erb +39 -0
  113. data/lib/views/backend/spree/admin/shared/preference_fields/_preference_select.html.erb +13 -0
  114. data/lib/views/backend_v1.2/spree/admin/payments/source_forms/_braintree.html.erb +16 -0
  115. data/lib/views/backend_v2.4/spree/admin/shared/preference_fields/_hash.html.erb +12 -0
  116. data/lib/views/frontend/solidus_braintree/payments/_payment.html.erb +12 -0
  117. data/lib/views/frontend/spree/checkout/payment/_braintree.html.erb +23 -0
  118. data/lib/views/frontend/spree/shared/_paypal_checkout_button.html.erb +32 -0
  119. data/solidus_braintree.gemspec +39 -38
  120. data/spec/controllers/solidus_braintree/checkouts_controller_spec.rb +99 -0
  121. data/spec/controllers/solidus_braintree/client_tokens_controller_spec.rb +55 -0
  122. data/spec/controllers/solidus_braintree/configurations_controller_spec.rb +73 -0
  123. data/spec/controllers/solidus_braintree/transactions_controller_spec.rb +183 -0
  124. data/spec/features/backend/configuration_spec.rb +23 -0
  125. data/spec/features/backend/new_payment_spec.rb +137 -0
  126. data/spec/features/frontend/braintree_credit_card_checkout_spec.rb +191 -0
  127. data/spec/features/frontend/paypal_checkout_spec.rb +166 -0
  128. data/spec/features/frontend/venmo_checkout_spec.rb +194 -0
  129. data/spec/fixtures/cassettes/admin/invalid_credit_card.yml +63 -0
  130. data/spec/fixtures/cassettes/admin/resubmit_credit_card.yml +352 -0
  131. data/spec/fixtures/cassettes/admin/valid_credit_card.yml +412 -0
  132. data/spec/fixtures/cassettes/braintree/create_profile.yml +71 -0
  133. data/spec/fixtures/cassettes/braintree/generate_token.yml +63 -0
  134. data/spec/fixtures/cassettes/braintree/token.yml +63 -0
  135. data/spec/fixtures/cassettes/checkout/invalid_credit_card.yml +63 -0
  136. data/spec/fixtures/cassettes/checkout/resubmit_credit_card.yml +216 -0
  137. data/spec/fixtures/cassettes/checkout/update.yml +71 -0
  138. data/spec/fixtures/cassettes/checkout/valid_credit_card.yml +171 -0
  139. data/spec/fixtures/cassettes/checkout/valid_venmo_transaction.yml +599 -0
  140. data/spec/fixtures/cassettes/gateway/authorize/credit_card/address.yml +86 -0
  141. data/spec/fixtures/cassettes/gateway/authorize/merchant_account/EUR.yml +154 -0
  142. data/spec/fixtures/cassettes/gateway/authorize/paypal/EUR.yml +90 -0
  143. data/spec/fixtures/cassettes/gateway/authorize/paypal/address.yml +90 -0
  144. data/spec/fixtures/cassettes/gateway/authorize.yml +86 -0
  145. data/spec/fixtures/cassettes/gateway/authorized_transaction.yml +73 -0
  146. data/spec/fixtures/cassettes/gateway/cancel/missing.yml +63 -0
  147. data/spec/fixtures/cassettes/gateway/cancel/refunds.yml +272 -0
  148. data/spec/fixtures/cassettes/gateway/cancel/void.yml +201 -0
  149. data/spec/fixtures/cassettes/gateway/capture.yml +141 -0
  150. data/spec/fixtures/cassettes/gateway/complete.yml +157 -0
  151. data/spec/fixtures/cassettes/gateway/credit.yml +208 -0
  152. data/spec/fixtures/cassettes/gateway/customer.yml +79 -0
  153. data/spec/fixtures/cassettes/gateway/purchase.yml +87 -0
  154. data/spec/fixtures/cassettes/gateway/settled_transaction.yml +140 -0
  155. data/spec/fixtures/cassettes/gateway/void.yml +137 -0
  156. data/spec/fixtures/cassettes/source/bin.yml +295 -0
  157. data/spec/fixtures/cassettes/source/card_type.yml +267 -0
  158. data/spec/fixtures/cassettes/source/last4.yml +267 -0
  159. data/spec/fixtures/cassettes/transaction/import/valid/capture.yml +224 -0
  160. data/spec/fixtures/cassettes/transaction/import/valid.yml +71 -0
  161. data/spec/fixtures/views/spree/orders/edit.html.erb +50 -0
  162. data/spec/helpers/solidus_braintree/braintree_admin_helper_spec.rb +17 -0
  163. data/spec/helpers/solidus_braintree/braintree_checkout_helper_spec.rb +70 -0
  164. data/spec/models/solidus_braintree/address_spec.rb +71 -0
  165. data/spec/models/solidus_braintree/avs_result_spec.rb +317 -0
  166. data/spec/models/solidus_braintree/gateway_spec.rb +742 -0
  167. data/spec/models/solidus_braintree/response_spec.rb +280 -0
  168. data/spec/models/solidus_braintree/source_spec.rb +539 -0
  169. data/spec/models/solidus_braintree/transaction_address_spec.rb +235 -0
  170. data/spec/models/solidus_braintree/transaction_import_spec.rb +302 -0
  171. data/spec/models/solidus_braintree/transaction_spec.rb +86 -0
  172. data/spec/models/spree/store_spec.rb +14 -0
  173. data/spec/requests/spree/api/orders_controller_spec.rb +36 -0
  174. data/spec/spec_helper.rb +32 -0
  175. data/spec/support/capybara.rb +7 -0
  176. data/spec/support/gateway_helpers.rb +29 -0
  177. data/spec/support/order_ready_for_payment.rb +37 -0
  178. data/spec/support/vcr.rb +42 -0
  179. data/spec/support/views.rb +1 -0
  180. metadata +281 -228
  181. data/.travis.yml +0 -41
  182. data/LICENSE.txt +0 -21
  183. data/app/controllers/spree/api/braintree_client_token_controller.rb +0 -13
  184. data/app/helpers/braintree_view_helpers.rb +0 -20
  185. data/app/models/concerns/solidus_braintree/add_name_validation_concern.rb +0 -8
  186. data/app/models/concerns/solidus_braintree/inject_device_data_concern.rb +0 -18
  187. data/app/models/concerns/solidus_braintree/payment_braintree_nonce_concern.rb +0 -8
  188. data/app/models/concerns/solidus_braintree/permitted_attributes_concern.rb +0 -11
  189. data/app/models/concerns/solidus_braintree/skip_require_card_numbers_concern.rb +0 -14
  190. data/app/models/concerns/solidus_braintree/use_data_field_concern.rb +0 -23
  191. data/app/models/credit_card_decorator.rb +0 -3
  192. data/app/models/payment_decorator.rb +0 -2
  193. data/app/models/permitted_attributes_decorator.rb +0 -1
  194. data/app/models/solidus/gateway/braintree_gateway.rb +0 -306
  195. data/app/overrides/spree/checkout/_confirm/braintree_security.html.erb.deface +0 -9
  196. data/app/views/spree/admin/payments/source_forms/_braintree.html.erb +0 -38
  197. data/app/views/spree/admin/payments/source_views/_braintree.html.erb +0 -30
  198. data/app/views/spree/checkout/payment/_braintree.html.erb +0 -55
  199. data/app/views/spree/checkout/payment/_braintree_initialization.html.erb +0 -12
  200. data/config/initializers/braintree.rb +0 -1
  201. data/db/migrate/20150910170527_add_data_to_credit_card.rb +0 -5
  202. data/db/migrate/20160426221931_add_braintree_device_data_to_order.rb +0 -5
  203. data/lib/assets/javascripts/spree/backend/braintree/solidus_braintree.js +0 -59
  204. data/lib/assets/javascripts/spree/frontend/braintree/solidus_braintree.js +0 -144
  205. data/lib/assets/javascripts/vendor/braintree.js +0 -8
  206. data/lib/assets/stylesheets/spree/frontend/solidus_braintree.scss +0 -26
metadata CHANGED
@@ -1,239 +1,105 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_braintree
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - Solidus Team
8
- autorequire:
7
+ - Stembolt
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-25 00:00:00.000000000 Z
11
+ date: 2023-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: solidus_api
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 1.0.0
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '3'
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 1.0.0
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '3'
33
- - !ruby/object:Gem::Dependency
34
- name: solidus_core
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: 1.0.0
40
- - - "<"
41
- - !ruby/object:Gem::Version
42
- version: '3'
43
- type: :runtime
44
- prerelease: false
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 1.0.0
50
- - - "<"
51
- - !ruby/object:Gem::Version
52
- version: '3'
53
- - !ruby/object:Gem::Dependency
54
- name: solidus_support
55
- requirement: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- version: '0'
60
- type: :runtime
61
- prerelease: false
62
- version_requirements: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: '0'
67
- - !ruby/object:Gem::Dependency
68
- name: braintree
14
+ name: activemerchant
69
15
  requirement: !ruby/object:Gem::Requirement
70
16
  requirements:
71
17
  - - "~>"
72
18
  - !ruby/object:Gem::Version
73
- version: '2.46'
19
+ version: '1.48'
74
20
  type: :runtime
75
21
  prerelease: false
76
22
  version_requirements: !ruby/object:Gem::Requirement
77
23
  requirements:
78
24
  - - "~>"
79
25
  - !ruby/object:Gem::Version
80
- version: '2.46'
26
+ version: '1.48'
81
27
  - !ruby/object:Gem::Dependency
82
- name: bundler
83
- requirement: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - "~>"
86
- - !ruby/object:Gem::Version
87
- version: '1.10'
88
- type: :development
89
- prerelease: false
90
- version_requirements: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - "~>"
93
- - !ruby/object:Gem::Version
94
- version: '1.10'
95
- - !ruby/object:Gem::Dependency
96
- name: rake
97
- requirement: !ruby/object:Gem::Requirement
98
- requirements:
99
- - - "~>"
100
- - !ruby/object:Gem::Version
101
- version: '10.0'
102
- type: :development
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- requirements:
106
- - - "~>"
107
- - !ruby/object:Gem::Version
108
- version: '10.0'
109
- - !ruby/object:Gem::Dependency
110
- name: factory_bot
28
+ name: braintree
111
29
  requirement: !ruby/object:Gem::Requirement
112
30
  requirements:
113
31
  - - "~>"
114
32
  - !ruby/object:Gem::Version
115
- version: '4.4'
116
- type: :development
33
+ version: '3.4'
34
+ type: :runtime
117
35
  prerelease: false
118
36
  version_requirements: !ruby/object:Gem::Requirement
119
37
  requirements:
120
38
  - - "~>"
121
39
  - !ruby/object:Gem::Version
122
- version: '4.4'
40
+ version: '3.4'
123
41
  - !ruby/object:Gem::Dependency
124
- name: rspec-rails
42
+ name: solidus_api
125
43
  requirement: !ruby/object:Gem::Requirement
126
44
  requirements:
127
45
  - - ">="
128
46
  - !ruby/object:Gem::Version
129
- version: '0'
130
- type: :development
47
+ version: 2.4.0
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: '4'
51
+ type: :runtime
131
52
  prerelease: false
132
53
  version_requirements: !ruby/object:Gem::Requirement
133
54
  requirements:
134
55
  - - ">="
135
56
  - !ruby/object:Gem::Version
136
- version: '0'
137
- - !ruby/object:Gem::Dependency
138
- name: capybara
139
- requirement: !ruby/object:Gem::Requirement
140
- requirements:
141
- - - "~>"
142
- - !ruby/object:Gem::Version
143
- version: '2.18'
144
- type: :development
145
- prerelease: false
146
- version_requirements: !ruby/object:Gem::Requirement
147
- requirements:
148
- - - "~>"
57
+ version: 2.4.0
58
+ - - "<"
149
59
  - !ruby/object:Gem::Version
150
- version: '2.18'
60
+ version: '4'
151
61
  - !ruby/object:Gem::Dependency
152
- name: capybara-screenshot
62
+ name: solidus_core
153
63
  requirement: !ruby/object:Gem::Requirement
154
64
  requirements:
155
65
  - - ">="
156
66
  - !ruby/object:Gem::Version
157
- version: '0'
158
- type: :development
159
- prerelease: false
160
- version_requirements: !ruby/object:Gem::Requirement
161
- requirements:
162
- - - ">="
163
- - !ruby/object:Gem::Version
164
- version: '0'
165
- - !ruby/object:Gem::Dependency
166
- name: poltergeist
167
- requirement: !ruby/object:Gem::Requirement
168
- requirements:
169
- - - "~>"
67
+ version: 2.4.0
68
+ - - "<"
170
69
  - !ruby/object:Gem::Version
171
- version: '1.9'
172
- type: :development
70
+ version: '4'
71
+ type: :runtime
173
72
  prerelease: false
174
73
  version_requirements: !ruby/object:Gem::Requirement
175
- requirements:
176
- - - "~>"
177
- - !ruby/object:Gem::Version
178
- version: '1.9'
179
- - !ruby/object:Gem::Dependency
180
- name: ffaker
181
- requirement: !ruby/object:Gem::Requirement
182
74
  requirements:
183
75
  - - ">="
184
76
  - !ruby/object:Gem::Version
185
- version: '0'
186
- type: :development
187
- prerelease: false
188
- version_requirements: !ruby/object:Gem::Requirement
189
- requirements:
190
- - - ">="
77
+ version: 2.4.0
78
+ - - "<"
191
79
  - !ruby/object:Gem::Version
192
- version: '0'
80
+ version: '4'
193
81
  - !ruby/object:Gem::Dependency
194
- name: rspec
82
+ name: solidus_support
195
83
  requirement: !ruby/object:Gem::Requirement
196
84
  requirements:
197
85
  - - ">="
198
86
  - !ruby/object:Gem::Version
199
- version: '0'
200
- type: :development
201
- prerelease: false
202
- version_requirements: !ruby/object:Gem::Requirement
203
- requirements:
204
- - - ">="
205
- - !ruby/object:Gem::Version
206
- version: '0'
207
- - !ruby/object:Gem::Dependency
208
- name: pry
209
- requirement: !ruby/object:Gem::Requirement
210
- requirements:
211
- - - ">="
87
+ version: 0.8.1
88
+ - - "<"
212
89
  - !ruby/object:Gem::Version
213
- version: '0'
214
- type: :development
90
+ version: '1'
91
+ type: :runtime
215
92
  prerelease: false
216
93
  version_requirements: !ruby/object:Gem::Requirement
217
94
  requirements:
218
95
  - - ">="
219
96
  - !ruby/object:Gem::Version
220
- version: '0'
221
- - !ruby/object:Gem::Dependency
222
- name: byebug
223
- requirement: !ruby/object:Gem::Requirement
224
- requirements:
225
- - - ">="
226
- - !ruby/object:Gem::Version
227
- version: '0'
228
- type: :development
229
- prerelease: false
230
- version_requirements: !ruby/object:Gem::Requirement
231
- requirements:
232
- - - ">="
97
+ version: 0.8.1
98
+ - - "<"
233
99
  - !ruby/object:Gem::Version
234
- version: '0'
100
+ version: '1'
235
101
  - !ruby/object:Gem::Dependency
236
- name: sqlite3
102
+ name: rails-controller-testing
237
103
  requirement: !ruby/object:Gem::Requirement
238
104
  requirements:
239
105
  - - ">="
@@ -247,35 +113,21 @@ dependencies:
247
113
  - !ruby/object:Gem::Version
248
114
  version: '0'
249
115
  - !ruby/object:Gem::Dependency
250
- name: database_cleaner
116
+ name: solidus_dev_support
251
117
  requirement: !ruby/object:Gem::Requirement
252
118
  requirements:
253
119
  - - "~>"
254
120
  - !ruby/object:Gem::Version
255
- version: '1.2'
121
+ version: '2.5'
256
122
  type: :development
257
123
  prerelease: false
258
124
  version_requirements: !ruby/object:Gem::Requirement
259
125
  requirements:
260
126
  - - "~>"
261
127
  - !ruby/object:Gem::Version
262
- version: '1.2'
128
+ version: '2.5'
263
129
  - !ruby/object:Gem::Dependency
264
130
  name: vcr
265
- requirement: !ruby/object:Gem::Requirement
266
- requirements:
267
- - - "~>"
268
- - !ruby/object:Gem::Version
269
- version: '3.0'
270
- type: :development
271
- prerelease: false
272
- version_requirements: !ruby/object:Gem::Requirement
273
- requirements:
274
- - - "~>"
275
- - !ruby/object:Gem::Version
276
- version: '3.0'
277
- - !ruby/object:Gem::Dependency
278
- name: webmock
279
131
  requirement: !ruby/object:Gem::Requirement
280
132
  requirements:
281
133
  - - ">="
@@ -289,7 +141,7 @@ dependencies:
289
141
  - !ruby/object:Gem::Version
290
142
  version: '0'
291
143
  - !ruby/object:Gem::Dependency
292
- name: simplecov
144
+ name: webmock
293
145
  requirement: !ruby/object:Gem::Requirement
294
146
  requirements:
295
147
  - - ">="
@@ -302,60 +154,199 @@ dependencies:
302
154
  - - ">="
303
155
  - !ruby/object:Gem::Version
304
156
  version: '0'
305
- description: Adds Solidus support for Braintree v.zero Gateway.
306
- email:
307
- - contact@solidus.io
157
+ description: Uses the javascript API for seamless braintree payments
158
+ email: braintree+gemfile@stembolt.com
308
159
  executables: []
309
160
  extensions: []
310
161
  extra_rdoc_files: []
311
162
  files:
163
+ - ".circleci/config.yml"
164
+ - ".gem_release.yml"
165
+ - ".github/stale.yml"
166
+ - ".github_changelog_generator"
312
167
  - ".gitignore"
313
168
  - ".rspec"
314
- - ".travis.yml"
169
+ - ".rubocop.yml"
315
170
  - CHANGELOG.md
316
171
  - Gemfile
317
- - LICENSE.txt
172
+ - LICENSE
318
173
  - README.md
319
174
  - Rakefile
320
- - app/controllers/spree/api/braintree_client_token_controller.rb
321
- - app/helpers/braintree_view_helpers.rb
322
- - app/models/concerns/solidus_braintree/add_name_validation_concern.rb
323
- - app/models/concerns/solidus_braintree/inject_device_data_concern.rb
324
- - app/models/concerns/solidus_braintree/payment_braintree_nonce_concern.rb
325
- - app/models/concerns/solidus_braintree/permitted_attributes_concern.rb
326
- - app/models/concerns/solidus_braintree/skip_require_card_numbers_concern.rb
327
- - app/models/concerns/solidus_braintree/use_data_field_concern.rb
328
- - app/models/credit_card_decorator.rb
329
- - app/models/payment_decorator.rb
330
- - app/models/permitted_attributes_decorator.rb
331
- - app/models/solidus/gateway/braintree_gateway.rb
332
- - app/overrides/spree/checkout/_confirm/braintree_security.html.erb.deface
333
- - app/views/spree/admin/payments/source_forms/_braintree.html.erb
334
- - app/views/spree/admin/payments/source_views/_braintree.html.erb
335
- - app/views/spree/checkout/payment/_braintree.html.erb
336
- - app/views/spree/checkout/payment/_braintree_initialization.html.erb
175
+ - app/assets/config/solidus_braintree_manifest.js
176
+ - app/assets/images/solidus_braintree/venmo/venmo_active_blue_button_280x48.svg
177
+ - app/assets/images/solidus_braintree/venmo/venmo_active_blue_button_320x48.svg
178
+ - app/assets/images/solidus_braintree/venmo/venmo_active_blue_button_375x48.svg
179
+ - app/assets/images/solidus_braintree/venmo/venmo_active_white_button_280x48.svg
180
+ - app/assets/images/solidus_braintree/venmo/venmo_active_white_button_320x48.svg
181
+ - app/assets/images/solidus_braintree/venmo/venmo_active_white_button_375x48.svg
182
+ - app/assets/images/solidus_braintree/venmo/venmo_blue_acceptance_mark.svg
183
+ - app/assets/images/solidus_braintree/venmo/venmo_blue_button_280x48.svg
184
+ - app/assets/images/solidus_braintree/venmo/venmo_blue_button_320x48.svg
185
+ - app/assets/images/solidus_braintree/venmo/venmo_blue_button_375x48.svg
186
+ - app/assets/images/solidus_braintree/venmo/venmo_blue_logo.svg
187
+ - app/assets/images/solidus_braintree/venmo/venmo_white_acceptance_mark.svg
188
+ - app/assets/images/solidus_braintree/venmo/venmo_white_button_280x48.svg
189
+ - app/assets/images/solidus_braintree/venmo/venmo_white_button_320x48.svg
190
+ - app/assets/images/solidus_braintree/venmo/venmo_white_button_375x48.svg
191
+ - app/assets/images/solidus_braintree/venmo/venmo_white_logo.svg
192
+ - app/assets/javascripts/solidus_braintree/apple_pay_button.js
193
+ - app/assets/javascripts/solidus_braintree/checkout.js
194
+ - app/assets/javascripts/solidus_braintree/client.js
195
+ - app/assets/javascripts/solidus_braintree/constants.js
196
+ - app/assets/javascripts/solidus_braintree/frontend.js
197
+ - app/assets/javascripts/solidus_braintree/hosted_form.js
198
+ - app/assets/javascripts/solidus_braintree/paypal_button.js
199
+ - app/assets/javascripts/solidus_braintree/paypal_messaging.js
200
+ - app/assets/javascripts/solidus_braintree/promise.js
201
+ - app/assets/javascripts/solidus_braintree/venmo_button.js
202
+ - app/assets/javascripts/spree/backend/solidus_braintree.js
203
+ - app/assets/javascripts/spree/frontend/paypal_button.js
204
+ - app/assets/javascripts/spree/frontend/solidus_braintree.js
205
+ - app/assets/stylesheets/spree/backend/solidus_braintree.scss
206
+ - app/assets/stylesheets/spree/frontend/solidus_braintree.scss
207
+ - app/decorators/controllers/solidus_braintree/admin_payments_controller_decorator.rb
208
+ - app/decorators/controllers/solidus_braintree/checkout_controller_decorator.rb
209
+ - app/decorators/controllers/solidus_braintree/client_tokens_controller.rb
210
+ - app/decorators/controllers/solidus_braintree/orders_controller_decorator.rb
211
+ - app/decorators/models/solidus_braintree/spree/store_decorator.rb
212
+ - app/decorators/models/solidus_braintree/spree/user_decorator.rb
213
+ - app/helpers/solidus_braintree/braintree_admin_helper.rb
214
+ - app/helpers/solidus_braintree/braintree_checkout_helper.rb
215
+ - app/models/application_record.rb
216
+ - app/models/solidus_braintree/address.rb
217
+ - app/models/solidus_braintree/avs_result.rb
218
+ - app/models/solidus_braintree/configuration.rb
219
+ - app/models/solidus_braintree/customer.rb
220
+ - app/models/solidus_braintree/gateway.rb
221
+ - app/models/solidus_braintree/response.rb
222
+ - app/models/solidus_braintree/source.rb
223
+ - app/models/solidus_braintree/transaction.rb
224
+ - app/models/solidus_braintree/transaction_address.rb
225
+ - app/models/solidus_braintree/transaction_import.rb
226
+ - app/overrides/spree/payments/payment/add_paypal_funding_source_to_payment.rb
227
+ - app/views/spree/api/payments/source_views/_braintree.json.jbuilder
228
+ - app/views/spree/checkout/existing_payment/_braintree.html.erb
229
+ - app/views/spree/shared/_apple_pay_button.html.erb
230
+ - app/views/spree/shared/_braintree_errors.html.erb
231
+ - app/views/spree/shared/_braintree_head_scripts.html.erb
232
+ - app/views/spree/shared/_braintree_hosted_fields.html.erb
233
+ - app/views/spree/shared/_paypal_cart_button.html.erb
234
+ - app/views/spree/shared/_paypal_messaging.html.erb
235
+ - app/views/spree/shared/_venmo_button.html.erb
337
236
  - bin/console
338
237
  - bin/rails
238
+ - bin/rails-engine
239
+ - bin/rails-sandbox
240
+ - bin/rake
241
+ - bin/sandbox
339
242
  - bin/setup
340
- - config/initializers/braintree.rb
341
243
  - config/locales/en.yml
244
+ - config/locales/it.yml
342
245
  - config/routes.rb
343
- - db/migrate/20150910170527_add_data_to_credit_card.rb
344
- - db/migrate/20160426221931_add_braintree_device_data_to_order.rb
345
- - lib/assets/javascripts/spree/backend/braintree/solidus_braintree.js
346
- - lib/assets/javascripts/spree/frontend/braintree/solidus_braintree.js
347
- - lib/assets/javascripts/vendor/braintree.js
348
- - lib/assets/stylesheets/spree/frontend/solidus_braintree.scss
246
+ - db/migrate/20160830061749_create_solidus_paypal_braintree_sources.rb
247
+ - db/migrate/20160906201711_create_solidus_paypal_braintree_customers.rb
248
+ - db/migrate/20161114231422_create_solidus_paypal_braintree_configurations.rb
249
+ - db/migrate/20161125172005_add_braintree_configuration_to_stores.rb
250
+ - db/migrate/20170203191030_add_credit_card_to_braintree_configuration.rb
251
+ - db/migrate/20170505193712_add_null_constraint_to_sources.rb
252
+ - db/migrate/20170508085402_add_not_null_constraint_to_sources_payment_type.rb
253
+ - db/migrate/20190705115327_add_paypal_button_preferences_to_braintree_configurations.rb
254
+ - db/migrate/20190911141712_add_3d_secure_to_braintree_configuration.rb
255
+ - db/migrate/20211222170950_add_paypal_funding_source_to_solidus_paypal_braintree_sources.rb
256
+ - db/migrate/20220104150301_add_venmo_to_braintree_configuration.rb
257
+ - db/migrate/20230109080950_rename_solidus_paypal_braintree_source_type.rb
258
+ - lib/controllers/backend/solidus_braintree/configurations_controller.rb
259
+ - lib/controllers/frontend/solidus_braintree/checkouts_controller.rb
260
+ - lib/controllers/frontend/solidus_braintree/transactions_controller.rb
349
261
  - lib/generators/solidus_braintree/install/install_generator.rb
262
+ - lib/generators/solidus_braintree/install/templates/initializer.rb
350
263
  - lib/solidus_braintree.rb
264
+ - lib/solidus_braintree/country_mapper.rb
351
265
  - lib/solidus_braintree/engine.rb
266
+ - lib/solidus_braintree/extension_configuration.rb
267
+ - lib/solidus_braintree/request_protection.rb
268
+ - lib/solidus_braintree/testing_support/factories.rb
352
269
  - lib/solidus_braintree/version.rb
270
+ - lib/solidus_paypal_braintree.rb
271
+ - lib/views/backend/solidus_braintree/configurations/list.html.erb
272
+ - lib/views/backend/spree/admin/payments/source_forms/_braintree.html.erb
273
+ - lib/views/backend/spree/admin/payments/source_views/_braintree.html.erb
274
+ - lib/views/backend/spree/admin/shared/preference_fields/_preference_select.html.erb
275
+ - lib/views/backend_v1.2/spree/admin/payments/source_forms/_braintree.html.erb
276
+ - lib/views/backend_v2.4/spree/admin/shared/preference_fields/_hash.html.erb
277
+ - lib/views/frontend/solidus_braintree/payments/_payment.html.erb
278
+ - lib/views/frontend/spree/checkout/payment/_braintree.html.erb
279
+ - lib/views/frontend/spree/shared/_paypal_checkout_button.html.erb
353
280
  - solidus_braintree.gemspec
354
- homepage: https://solidus.io
281
+ - spec/controllers/solidus_braintree/checkouts_controller_spec.rb
282
+ - spec/controllers/solidus_braintree/client_tokens_controller_spec.rb
283
+ - spec/controllers/solidus_braintree/configurations_controller_spec.rb
284
+ - spec/controllers/solidus_braintree/transactions_controller_spec.rb
285
+ - spec/features/backend/configuration_spec.rb
286
+ - spec/features/backend/new_payment_spec.rb
287
+ - spec/features/frontend/braintree_credit_card_checkout_spec.rb
288
+ - spec/features/frontend/paypal_checkout_spec.rb
289
+ - spec/features/frontend/venmo_checkout_spec.rb
290
+ - spec/fixtures/cassettes/admin/invalid_credit_card.yml
291
+ - spec/fixtures/cassettes/admin/resubmit_credit_card.yml
292
+ - spec/fixtures/cassettes/admin/valid_credit_card.yml
293
+ - spec/fixtures/cassettes/braintree/create_profile.yml
294
+ - spec/fixtures/cassettes/braintree/generate_token.yml
295
+ - spec/fixtures/cassettes/braintree/token.yml
296
+ - spec/fixtures/cassettes/checkout/invalid_credit_card.yml
297
+ - spec/fixtures/cassettes/checkout/resubmit_credit_card.yml
298
+ - spec/fixtures/cassettes/checkout/update.yml
299
+ - spec/fixtures/cassettes/checkout/valid_credit_card.yml
300
+ - spec/fixtures/cassettes/checkout/valid_venmo_transaction.yml
301
+ - spec/fixtures/cassettes/gateway/authorize.yml
302
+ - spec/fixtures/cassettes/gateway/authorize/credit_card/address.yml
303
+ - spec/fixtures/cassettes/gateway/authorize/merchant_account/EUR.yml
304
+ - spec/fixtures/cassettes/gateway/authorize/paypal/EUR.yml
305
+ - spec/fixtures/cassettes/gateway/authorize/paypal/address.yml
306
+ - spec/fixtures/cassettes/gateway/authorized_transaction.yml
307
+ - spec/fixtures/cassettes/gateway/cancel/missing.yml
308
+ - spec/fixtures/cassettes/gateway/cancel/refunds.yml
309
+ - spec/fixtures/cassettes/gateway/cancel/void.yml
310
+ - spec/fixtures/cassettes/gateway/capture.yml
311
+ - spec/fixtures/cassettes/gateway/complete.yml
312
+ - spec/fixtures/cassettes/gateway/credit.yml
313
+ - spec/fixtures/cassettes/gateway/customer.yml
314
+ - spec/fixtures/cassettes/gateway/purchase.yml
315
+ - spec/fixtures/cassettes/gateway/settled_transaction.yml
316
+ - spec/fixtures/cassettes/gateway/void.yml
317
+ - spec/fixtures/cassettes/source/bin.yml
318
+ - spec/fixtures/cassettes/source/card_type.yml
319
+ - spec/fixtures/cassettes/source/last4.yml
320
+ - spec/fixtures/cassettes/transaction/import/valid.yml
321
+ - spec/fixtures/cassettes/transaction/import/valid/capture.yml
322
+ - spec/fixtures/views/spree/orders/edit.html.erb
323
+ - spec/helpers/solidus_braintree/braintree_admin_helper_spec.rb
324
+ - spec/helpers/solidus_braintree/braintree_checkout_helper_spec.rb
325
+ - spec/models/solidus_braintree/address_spec.rb
326
+ - spec/models/solidus_braintree/avs_result_spec.rb
327
+ - spec/models/solidus_braintree/gateway_spec.rb
328
+ - spec/models/solidus_braintree/response_spec.rb
329
+ - spec/models/solidus_braintree/source_spec.rb
330
+ - spec/models/solidus_braintree/transaction_address_spec.rb
331
+ - spec/models/solidus_braintree/transaction_import_spec.rb
332
+ - spec/models/solidus_braintree/transaction_spec.rb
333
+ - spec/models/spree/store_spec.rb
334
+ - spec/requests/spree/api/orders_controller_spec.rb
335
+ - spec/spec_helper.rb
336
+ - spec/support/capybara.rb
337
+ - spec/support/gateway_helpers.rb
338
+ - spec/support/order_ready_for_payment.rb
339
+ - spec/support/vcr.rb
340
+ - spec/support/views.rb
341
+ homepage: https://github.com/solidusio/solidus_braintree
355
342
  licenses:
356
- - MIT
357
- metadata: {}
358
- post_install_message:
343
+ - BSD-3-Clause
344
+ metadata:
345
+ homepage_uri: https://github.com/solidusio/solidus_braintree
346
+ source_code_uri: https://github.com/solidusio/solidus_braintree
347
+ changelog_uri: https://github.com/solidusio/solidus_braintree/blob/master/CHANGELOG.md
348
+ post_install_message: If you're upgrading to v2.0.0, please see the README for upgrade
349
+ instructions.
359
350
  rdoc_options: []
360
351
  require_paths:
361
352
  - lib
@@ -363,16 +354,78 @@ required_ruby_version: !ruby/object:Gem::Requirement
363
354
  requirements:
364
355
  - - ">="
365
356
  - !ruby/object:Gem::Version
366
- version: '0'
357
+ version: '2.5'
358
+ - - "<"
359
+ - !ruby/object:Gem::Version
360
+ version: '4'
367
361
  required_rubygems_version: !ruby/object:Gem::Requirement
368
362
  requirements:
369
363
  - - ">="
370
364
  - !ruby/object:Gem::Version
371
365
  version: '0'
372
366
  requirements: []
373
- rubyforge_project:
374
- rubygems_version: 2.7.6
375
- signing_key:
367
+ rubygems_version: 3.3.7
368
+ signing_key:
376
369
  specification_version: 4
377
- summary: Adds Solidus support for Braintree v.zero Gateway.
378
- test_files: []
370
+ summary: Officially supported Braintree extension
371
+ test_files:
372
+ - spec/controllers/solidus_braintree/checkouts_controller_spec.rb
373
+ - spec/controllers/solidus_braintree/client_tokens_controller_spec.rb
374
+ - spec/controllers/solidus_braintree/configurations_controller_spec.rb
375
+ - spec/controllers/solidus_braintree/transactions_controller_spec.rb
376
+ - spec/features/backend/configuration_spec.rb
377
+ - spec/features/backend/new_payment_spec.rb
378
+ - spec/features/frontend/braintree_credit_card_checkout_spec.rb
379
+ - spec/features/frontend/paypal_checkout_spec.rb
380
+ - spec/features/frontend/venmo_checkout_spec.rb
381
+ - spec/fixtures/cassettes/admin/invalid_credit_card.yml
382
+ - spec/fixtures/cassettes/admin/resubmit_credit_card.yml
383
+ - spec/fixtures/cassettes/admin/valid_credit_card.yml
384
+ - spec/fixtures/cassettes/braintree/create_profile.yml
385
+ - spec/fixtures/cassettes/braintree/generate_token.yml
386
+ - spec/fixtures/cassettes/braintree/token.yml
387
+ - spec/fixtures/cassettes/checkout/invalid_credit_card.yml
388
+ - spec/fixtures/cassettes/checkout/resubmit_credit_card.yml
389
+ - spec/fixtures/cassettes/checkout/update.yml
390
+ - spec/fixtures/cassettes/checkout/valid_credit_card.yml
391
+ - spec/fixtures/cassettes/checkout/valid_venmo_transaction.yml
392
+ - spec/fixtures/cassettes/gateway/authorize.yml
393
+ - spec/fixtures/cassettes/gateway/authorize/credit_card/address.yml
394
+ - spec/fixtures/cassettes/gateway/authorize/merchant_account/EUR.yml
395
+ - spec/fixtures/cassettes/gateway/authorize/paypal/EUR.yml
396
+ - spec/fixtures/cassettes/gateway/authorize/paypal/address.yml
397
+ - spec/fixtures/cassettes/gateway/authorized_transaction.yml
398
+ - spec/fixtures/cassettes/gateway/cancel/missing.yml
399
+ - spec/fixtures/cassettes/gateway/cancel/refunds.yml
400
+ - spec/fixtures/cassettes/gateway/cancel/void.yml
401
+ - spec/fixtures/cassettes/gateway/capture.yml
402
+ - spec/fixtures/cassettes/gateway/complete.yml
403
+ - spec/fixtures/cassettes/gateway/credit.yml
404
+ - spec/fixtures/cassettes/gateway/customer.yml
405
+ - spec/fixtures/cassettes/gateway/purchase.yml
406
+ - spec/fixtures/cassettes/gateway/settled_transaction.yml
407
+ - spec/fixtures/cassettes/gateway/void.yml
408
+ - spec/fixtures/cassettes/source/bin.yml
409
+ - spec/fixtures/cassettes/source/card_type.yml
410
+ - spec/fixtures/cassettes/source/last4.yml
411
+ - spec/fixtures/cassettes/transaction/import/valid.yml
412
+ - spec/fixtures/cassettes/transaction/import/valid/capture.yml
413
+ - spec/fixtures/views/spree/orders/edit.html.erb
414
+ - spec/helpers/solidus_braintree/braintree_admin_helper_spec.rb
415
+ - spec/helpers/solidus_braintree/braintree_checkout_helper_spec.rb
416
+ - spec/models/solidus_braintree/address_spec.rb
417
+ - spec/models/solidus_braintree/avs_result_spec.rb
418
+ - spec/models/solidus_braintree/gateway_spec.rb
419
+ - spec/models/solidus_braintree/response_spec.rb
420
+ - spec/models/solidus_braintree/source_spec.rb
421
+ - spec/models/solidus_braintree/transaction_address_spec.rb
422
+ - spec/models/solidus_braintree/transaction_import_spec.rb
423
+ - spec/models/solidus_braintree/transaction_spec.rb
424
+ - spec/models/spree/store_spec.rb
425
+ - spec/requests/spree/api/orders_controller_spec.rb
426
+ - spec/spec_helper.rb
427
+ - spec/support/capybara.rb
428
+ - spec/support/gateway_helpers.rb
429
+ - spec/support/order_ready_for_payment.rb
430
+ - spec/support/vcr.rb
431
+ - spec/support/views.rb