workarea-braintree 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +7 -0
  2. data/.editorconfig +20 -0
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +37 -0
  4. data/.github/ISSUE_TEMPLATE/documentation-request.md +17 -0
  5. data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  6. data/.gitignore +17 -0
  7. data/CHANGELOG.md +37 -0
  8. data/CODE_OF_CONDUCT.md +3 -0
  9. data/CONTRIBUTING.md +3 -0
  10. data/Gemfile +11 -0
  11. data/LICENSE +52 -0
  12. data/README.md +43 -0
  13. data/Rakefile +50 -0
  14. data/app/models/workarea/payment/authorize/credit_card.decorator +72 -0
  15. data/app/models/workarea/payment/capture/credit_card.decorator +14 -0
  16. data/app/models/workarea/payment/purchase/credit_card.decorator +52 -0
  17. data/app/models/workarea/payment/refund/credit_card.decorator +14 -0
  18. data/app/models/workarea/payment/store_credit_card.decorator +13 -0
  19. data/bin/rails +18 -0
  20. data/config/initializers/workarea.rb +1 -0
  21. data/lib/active_merchant/billing/bogus_braintree_gateway.rb +284 -0
  22. data/lib/tasks/braintree.rake +25 -0
  23. data/lib/workarea/braintree.rb +26 -0
  24. data/lib/workarea/braintree/engine.rb +8 -0
  25. data/lib/workarea/braintree/version.rb +5 -0
  26. data/test/dummy/Rakefile +6 -0
  27. data/test/dummy/app/assets/config/manifest.js +4 -0
  28. data/test/dummy/app/assets/javascripts/application.js +13 -0
  29. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  30. data/test/dummy/app/controllers/application_controller.rb +3 -0
  31. data/test/dummy/app/helpers/application_helper.rb +2 -0
  32. data/test/dummy/app/jobs/application_job.rb +2 -0
  33. data/test/dummy/app/mailers/application_mailer.rb +4 -0
  34. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  35. data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
  36. data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
  37. data/test/dummy/bin/bundle +3 -0
  38. data/test/dummy/bin/rails +4 -0
  39. data/test/dummy/bin/rake +4 -0
  40. data/test/dummy/bin/setup +34 -0
  41. data/test/dummy/bin/update +29 -0
  42. data/test/dummy/config.ru +5 -0
  43. data/test/dummy/config/application.rb +23 -0
  44. data/test/dummy/config/boot.rb +5 -0
  45. data/test/dummy/config/cable.yml +9 -0
  46. data/test/dummy/config/environment.rb +5 -0
  47. data/test/dummy/config/environments/development.rb +56 -0
  48. data/test/dummy/config/environments/production.rb +86 -0
  49. data/test/dummy/config/environments/test.rb +44 -0
  50. data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
  51. data/test/dummy/config/initializers/assets.rb +11 -0
  52. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  53. data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  54. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  55. data/test/dummy/config/initializers/inflections.rb +16 -0
  56. data/test/dummy/config/initializers/mime_types.rb +4 -0
  57. data/test/dummy/config/initializers/new_framework_defaults.rb +23 -0
  58. data/test/dummy/config/initializers/session_store.rb +3 -0
  59. data/test/dummy/config/initializers/workarea.rb +5 -0
  60. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  61. data/test/dummy/config/locales/en.yml +23 -0
  62. data/test/dummy/config/puma.rb +47 -0
  63. data/test/dummy/config/routes.rb +5 -0
  64. data/test/dummy/config/secrets.yml +22 -0
  65. data/test/dummy/config/spring.rb +6 -0
  66. data/test/dummy/db/seeds.rb +2 -0
  67. data/test/dummy/log/.keep +0 -0
  68. data/test/dummy/public/404.html +67 -0
  69. data/test/dummy/public/422.html +67 -0
  70. data/test/dummy/public/500.html +66 -0
  71. data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  72. data/test/dummy/public/apple-touch-icon.png +0 -0
  73. data/test/dummy/public/favicon.ico +0 -0
  74. data/test/models/workarea/payment/authorize/credit_card_test.decorator +92 -0
  75. data/test/models/workarea/payment/capture/credit_card_test.decorator +25 -0
  76. data/test/models/workarea/payment/credit_card_integration_test.decorator +8 -0
  77. data/test/models/workarea/payment/purchase/credit_card_test.decorator +78 -0
  78. data/test/models/workarea/payment/refund/credit_card_test.decorator +25 -0
  79. data/test/models/workarea/payment/store_credit_card_test.decorator +23 -0
  80. data/test/support/workarea/braintree_support_vcr_config.rb +23 -0
  81. data/test/test_helper.rb +16 -0
  82. data/test/vcr_cassettes/braintree/authorize_failure.yml +98 -0
  83. data/test/vcr_cassettes/braintree/authorize_success.yml +89 -0
  84. data/test/vcr_cassettes/braintree/capture_success.yml +64 -0
  85. data/test/vcr_cassettes/braintree/purchase_failure.yml +97 -0
  86. data/test/vcr_cassettes/braintree/purchase_success.yml +89 -0
  87. data/test/vcr_cassettes/braintree/refund_success.yml +64 -0
  88. data/test/vcr_cassettes/braintree/store_credit_card-sets_token_on_the_card.yml +86 -0
  89. data/test/vcr_cassettes/braintree/store_without_token.yml +82 -0
  90. data/test/vcr_cassettes/braintree/void_success.yml +60 -0
  91. data/test/vcr_cassettes/credit_card/auth_capture.yml +419 -0
  92. data/test/vcr_cassettes/credit_card/auth_void.yml +415 -0
  93. data/test/vcr_cassettes/credit_card/purchase_void.yml +415 -0
  94. data/test/vcr_cassettes/credit_card/store_auth.yml +227 -0
  95. data/test/vcr_cassettes/credit_card/store_purchase.yml +227 -0
  96. data/workarea-braintree.gemspec +20 -0
  97. metadata +166 -0
@@ -0,0 +1,227 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.sandbox.braintreegateway.com/merchants/b/transactions
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <transaction>
11
+ <amount>5.00</amount>
12
+ <order-id nil="true"/>
13
+ <customer>
14
+ <id></id>
15
+ <email nil="true"/>
16
+ <phone nil="true"/>
17
+ <first-name>Ben</first-name>
18
+ <last-name>Crouse</last-name>
19
+ </customer>
20
+ <options>
21
+ <store-in-vault type="boolean">true</store-in-vault>
22
+ <submit-for-settlement type="boolean">true</submit-for-settlement>
23
+ <hold-in-escrow nil="true"/>
24
+ </options>
25
+ <custom-fields nil="true"/>
26
+ <merchant-account-id>a</merchant-account-id>
27
+ <credit-card>
28
+ <number>4111111111111111</number>
29
+ <cvv type="integer">999</cvv>
30
+ <expiration-month>01</expiration-month>
31
+ <expiration-year>2019</expiration-year>
32
+ <cardholder-name>Ben Crouse</cardholder-name>
33
+ </credit-card>
34
+ <billing>
35
+ <street-address>22 s. 3rd st.</street-address>
36
+ <extended-address nil="true"/>
37
+ <company nil="true"/>
38
+ <locality>Philadelphia</locality>
39
+ <region>PA</region>
40
+ <postal-code>19106</postal-code>
41
+ <country-code-alpha2>US</country-code-alpha2>
42
+ </billing>
43
+ <type>sale</type>
44
+ </transaction>
45
+ headers:
46
+ Accept-Encoding:
47
+ - gzip
48
+ Accept:
49
+ - application/xml
50
+ User-Agent:
51
+ - Braintree Ruby Gem 2.89.0 (ActiveMerchant 1.79.2)
52
+ X-Apiversion:
53
+ - '4'
54
+ Authorization:
55
+ - Basic dzN2NmQ5eXRnajRqNG56ODplYjFmODliZTlmMzYzZjYxZmZmM2Y5MDI0NDQ1NmViMg==
56
+ Content-Type:
57
+ - application/xml
58
+ response:
59
+ status:
60
+ code: 201
61
+ message: Created
62
+ headers:
63
+ Date:
64
+ - Thu, 14 Jun 2018 15:36:26 GMT
65
+ Content-Type:
66
+ - application/xml; charset=utf-8
67
+ Transfer-Encoding:
68
+ - chunked
69
+ X-Frame-Options:
70
+ - SAMEORIGIN
71
+ X-Xss-Protection:
72
+ - 1; mode=block
73
+ X-Content-Type-Options:
74
+ - nosniff
75
+ X-Authentication:
76
+ - basic_auth
77
+ X-User:
78
+ - nrkvc7nn7kyfbtm6
79
+ Vary:
80
+ - Accept-Encoding
81
+ Content-Encoding:
82
+ - gzip
83
+ Etag:
84
+ - W/"b4870582fc80c0efe44a57400a8965e3"
85
+ Cache-Control:
86
+ - max-age=0, private, must-revalidate
87
+ X-Runtime:
88
+ - '0.731457'
89
+ X-Request-Id:
90
+ - 02-1528990585.446-173.161.162.1-366576881
91
+ Content-Security-Policy:
92
+ - frame-ancestors 'self'
93
+ X-Broxyid:
94
+ - 02-1528990585.446-173.161.162.1-366576881
95
+ Strict-Transport-Security:
96
+ - max-age=31536000; includeSubDomains
97
+ body:
98
+ encoding: ASCII-8BIT
99
+ string: !binary |-
100
+ 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
101
+ http_version:
102
+ recorded_at: Thu, 14 Jun 2018 15:36:26 GMT
103
+ - request:
104
+ method: get
105
+ uri: https://api.sandbox.braintreegateway.com/merchants/b/customers/522100319
106
+ body:
107
+ encoding: US-ASCII
108
+ string: ''
109
+ headers:
110
+ Accept-Encoding:
111
+ - gzip
112
+ Accept:
113
+ - application/xml
114
+ User-Agent:
115
+ - Braintree Ruby Gem 2.89.0 (ActiveMerchant 1.79.2)
116
+ X-Apiversion:
117
+ - '4'
118
+ Authorization:
119
+ - Basic dzN2NmQ5eXRnajRqNG56ODplYjFmODliZTlmMzYzZjYxZmZmM2Y5MDI0NDQ1NmViMg==
120
+ response:
121
+ status:
122
+ code: 200
123
+ message: OK
124
+ headers:
125
+ Date:
126
+ - Thu, 14 Jun 2018 15:36:26 GMT
127
+ Content-Type:
128
+ - application/xml; charset=utf-8
129
+ Transfer-Encoding:
130
+ - chunked
131
+ X-Frame-Options:
132
+ - SAMEORIGIN
133
+ X-Xss-Protection:
134
+ - 1; mode=block
135
+ X-Content-Type-Options:
136
+ - nosniff
137
+ X-Authentication:
138
+ - basic_auth
139
+ X-User:
140
+ - nrkvc7nn7kyfbtm6
141
+ Vary:
142
+ - Accept-Encoding
143
+ Content-Encoding:
144
+ - gzip
145
+ Etag:
146
+ - W/"61c08436a130679faeb79fecb29ca731"
147
+ Cache-Control:
148
+ - max-age=0, private, must-revalidate
149
+ X-Runtime:
150
+ - '0.111110'
151
+ X-Request-Id:
152
+ - 02-1528990586.599-173.161.162.1-366577025
153
+ Content-Security-Policy:
154
+ - frame-ancestors 'self'
155
+ X-Broxyid:
156
+ - 02-1528990586.599-173.161.162.1-366577025
157
+ Strict-Transport-Security:
158
+ - max-age=31536000; includeSubDomains
159
+ body:
160
+ encoding: ASCII-8BIT
161
+ string: !binary |-
162
+ H4sIAHqLIlsAA6RUy27bMBC85ysM3WlJtuNHIDNAC/QHmvTQS7ASVxZhilRIyrby9SXl6OEoORTxyTszu1pyh5s8XkoxO6E2XMl9EM+jYIYyU4zLwz54fvpFtsEjvUuy2lhVoqZ3s1nCGb1fLOIoWsa7JHSRBx2ZFSAtcfHrWaf5Smr2VjS75ZtOwjHr1TnXxhIJJdIfKJNwFHtaQBf91Ko2mIQD4vlMlRXIZia52AdW1xiELY4lcDFBq0JJnKA5XCbYGVPD7VSbaQSLjICd2abCfcBcaHmJAV1E8ZZEaxKvnuL7h+X6YbH+m4RDQptfV+z/8oeE6/fb6yc5R8FM3xLjlmSgmXkvClpDE3j2lr8iDku5pKvY/5LQ/+9wLyK+Bv3DDbju+3isKJRgqPuhzbrRfOT6HFX6sXMQ9FkepTq7OY+wQVZLqxuicsKNqUFmONZPyT7xe0O51nj3Nbn19BieSIXKwLrnQp9/j5Q92ukZptwOJ7mGA5lDLbrGU6UEggyot5yXtuQgrrWbFtF4qIU/wKjoR6ZLwUvFddsPKZW0BY3cyCfgJ+oGQfvr293IW/RGjexj7zkI74Z3tlcXCMIWziOjqY6wTsZLOCCptaCFtZV5CEMwBq2Zpxq4swDiwR3wDM3cWSisoClR2pcSbaHYi1AHFZ6cdeeVPDyiPHGtpBfsDUiWqovbUn39/ovOT27LkRTkcWjtBu2k7fJZ0evDeQ86zrWilRhZvAN6gcYK+GhoHTAIFKuzdjWOND3WyUydmkzzyg/k9sWHvcaqI0q63Z5Xx00SXqOOqyV/rZHIukxbY7vr4W6haBotV9H9dgP5MouXsFxv0zTfZbjZrFm8XqVrt42+Su1rf2+/tTVOKEtFDDt+YayeH2Vo18b12X16I+2TH2/BG8C0CDCm0VltUmB42/TuHwAAAP//AwCdiZInJwcAAA==
163
+ http_version:
164
+ recorded_at: Thu, 14 Jun 2018 15:36:26 GMT
165
+ - request:
166
+ method: get
167
+ uri: https://api.sandbox.braintreegateway.com/merchants/b/customers/522100319
168
+ body:
169
+ encoding: US-ASCII
170
+ string: ''
171
+ headers:
172
+ Accept-Encoding:
173
+ - gzip
174
+ Accept:
175
+ - application/xml
176
+ User-Agent:
177
+ - Braintree Ruby Gem 2.89.0 (ActiveMerchant 1.79.2)
178
+ X-Apiversion:
179
+ - '4'
180
+ Authorization:
181
+ - Basic dzN2NmQ5eXRnajRqNG56ODplYjFmODliZTlmMzYzZjYxZmZmM2Y5MDI0NDQ1NmViMg==
182
+ response:
183
+ status:
184
+ code: 200
185
+ message: OK
186
+ headers:
187
+ Date:
188
+ - Thu, 14 Jun 2018 15:36:27 GMT
189
+ Content-Type:
190
+ - application/xml; charset=utf-8
191
+ Transfer-Encoding:
192
+ - chunked
193
+ X-Frame-Options:
194
+ - SAMEORIGIN
195
+ X-Xss-Protection:
196
+ - 1; mode=block
197
+ X-Content-Type-Options:
198
+ - nosniff
199
+ X-Authentication:
200
+ - basic_auth
201
+ X-User:
202
+ - nrkvc7nn7kyfbtm6
203
+ Vary:
204
+ - Accept-Encoding
205
+ Content-Encoding:
206
+ - gzip
207
+ Etag:
208
+ - W/"2ec592c6a4f6545b5bd081167b104d45"
209
+ Cache-Control:
210
+ - max-age=0, private, must-revalidate
211
+ X-Runtime:
212
+ - '0.107521'
213
+ X-Request-Id:
214
+ - 02-1528990587.112-173.161.162.1-366577080
215
+ Content-Security-Policy:
216
+ - frame-ancestors 'self'
217
+ X-Broxyid:
218
+ - 02-1528990587.112-173.161.162.1-366577080
219
+ Strict-Transport-Security:
220
+ - max-age=31536000; includeSubDomains
221
+ body:
222
+ encoding: ASCII-8BIT
223
+ string: !binary |-
224
+ H4sIAHuLIlsAA6RUy27bMBC85ysM3WlJtuNHIDNAC/QHmvTQS7ASVxZhilRIyrby9SXl6OEoORTxyTszu1pyh5s8XkoxO6E2XMl9EM+jYIYyU4zLwz54fvpFtsEjvUuy2lhVoqZ3s1nCGb1fLOIoWsa7JHSRBx2ZFSAtcfHrWaf5Smr2VjS75ZtOwjHr1TnXxhIJJdIfKJNwFHtaQBf91Ko2mIQD4vlMlRXIZia52AdW1xiELY4lcDFBq0JJnKA5XCbYGVPD7VSbaQSLjICd2abCfcBcaHmJAV1E8ZZEaxKvnuL7h+X6YbH+m4RDQptfV+z/8oeE6/fb6yc5R8FM3xLjlmSgmXkvClpDE3j2lr8iDku5pKvY/5LQ/+9wLyK+Bv3DDbju+3isKJRgqPuhzbrRfOT6HFX6sXMQ9FkepTq7OY+wQVZLqxuicsKNqUFmONZPyT7xe0O51nj3Nbn19BieSIXKwLrnQp9/j5Q92ukZptwOJ7mGA5lDLbrGU6UEggyot5yXtuQgrrWbFtF4qIU/wKjoR6ZLwUvFddsPKZW0BY3cyCfgJ+oGQfvr293IW/RGjexj7zkI74Z3tlcXCMIWziOjqY6wTsZLOCCptaCFtZV5CEMwBq2Zpxq4swDiwR3wDM3cWSisoClR2pcSbaHYi1AHFZ6cdeeVPDyiPHGtpBfsDUiWqovbUn39/ovOT27LkRTkcWjtBu2k7fJZ0evDeQ86zrWilRhZvAN6gcYK+GhoHTAIFKuzdjWOND3WyUydmkzzyg/k9sWHvcaqI0q63Z5Xx00SXqOOqyV/rZHIukxbY7vr4W6haBotV9H9dgP5MouXsFxv0zTfZbjZrFm8XqVrt42+Su1rf2+/tTVOKEtFDDt+YayeH2Vo18b12X16I+2TH2/BG8C0CDCm0VltUmB42/TuHwAAAP//AwCdiZInJwcAAA==
225
+ http_version:
226
+ recorded_at: Thu, 14 Jun 2018 15:36:27 GMT
227
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,20 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+
3
+ require "workarea/braintree/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "workarea-braintree"
7
+ s.version = Workarea::Braintree::VERSION
8
+ s.authors = ["Eric Pigeon"]
9
+ s.email = ["epigeon@workarea.com"]
10
+ s.homepage = "https://github.com/workarea-commerce/workarea-braintree"
11
+ s.summary = "Braintree integration for Workarea Commerce Platform"
12
+ s.description = "Adds ability to handle credit card storage and processing with Braintree"
13
+ s.files = `git ls-files`.split("\n")
14
+ s.license = 'Business Software License'
15
+
16
+ s.required_ruby_version = ">= 2.0.0"
17
+
18
+ s.add_dependency "workarea", "~> 3.x"
19
+ s.add_dependency "braintree", "~> 2.63"
20
+ end
metadata ADDED
@@ -0,0 +1,166 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: workarea-braintree
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Eric Pigeon
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-08-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: workarea
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 3.x
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 3.x
27
+ - !ruby/object:Gem::Dependency
28
+ name: braintree
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.63'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.63'
41
+ description: Adds ability to handle credit card storage and processing with Braintree
42
+ email:
43
+ - epigeon@workarea.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".editorconfig"
49
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
50
+ - ".github/ISSUE_TEMPLATE/documentation-request.md"
51
+ - ".github/ISSUE_TEMPLATE/feature_request.md"
52
+ - ".gitignore"
53
+ - CHANGELOG.md
54
+ - CODE_OF_CONDUCT.md
55
+ - CONTRIBUTING.md
56
+ - Gemfile
57
+ - LICENSE
58
+ - README.md
59
+ - Rakefile
60
+ - app/models/workarea/payment/authorize/credit_card.decorator
61
+ - app/models/workarea/payment/capture/credit_card.decorator
62
+ - app/models/workarea/payment/purchase/credit_card.decorator
63
+ - app/models/workarea/payment/refund/credit_card.decorator
64
+ - app/models/workarea/payment/store_credit_card.decorator
65
+ - bin/rails
66
+ - config/initializers/workarea.rb
67
+ - lib/active_merchant/billing/bogus_braintree_gateway.rb
68
+ - lib/tasks/braintree.rake
69
+ - lib/workarea/braintree.rb
70
+ - lib/workarea/braintree/engine.rb
71
+ - lib/workarea/braintree/version.rb
72
+ - test/dummy/Rakefile
73
+ - test/dummy/app/assets/config/manifest.js
74
+ - test/dummy/app/assets/javascripts/application.js
75
+ - test/dummy/app/assets/stylesheets/application.css
76
+ - test/dummy/app/controllers/application_controller.rb
77
+ - test/dummy/app/helpers/application_helper.rb
78
+ - test/dummy/app/jobs/application_job.rb
79
+ - test/dummy/app/mailers/application_mailer.rb
80
+ - test/dummy/app/views/layouts/application.html.erb
81
+ - test/dummy/app/views/layouts/mailer.html.erb
82
+ - test/dummy/app/views/layouts/mailer.text.erb
83
+ - test/dummy/bin/bundle
84
+ - test/dummy/bin/rails
85
+ - test/dummy/bin/rake
86
+ - test/dummy/bin/setup
87
+ - test/dummy/bin/update
88
+ - test/dummy/config.ru
89
+ - test/dummy/config/application.rb
90
+ - test/dummy/config/boot.rb
91
+ - test/dummy/config/cable.yml
92
+ - test/dummy/config/environment.rb
93
+ - test/dummy/config/environments/development.rb
94
+ - test/dummy/config/environments/production.rb
95
+ - test/dummy/config/environments/test.rb
96
+ - test/dummy/config/initializers/application_controller_renderer.rb
97
+ - test/dummy/config/initializers/assets.rb
98
+ - test/dummy/config/initializers/backtrace_silencers.rb
99
+ - test/dummy/config/initializers/cookies_serializer.rb
100
+ - test/dummy/config/initializers/filter_parameter_logging.rb
101
+ - test/dummy/config/initializers/inflections.rb
102
+ - test/dummy/config/initializers/mime_types.rb
103
+ - test/dummy/config/initializers/new_framework_defaults.rb
104
+ - test/dummy/config/initializers/session_store.rb
105
+ - test/dummy/config/initializers/workarea.rb
106
+ - test/dummy/config/initializers/wrap_parameters.rb
107
+ - test/dummy/config/locales/en.yml
108
+ - test/dummy/config/puma.rb
109
+ - test/dummy/config/routes.rb
110
+ - test/dummy/config/secrets.yml
111
+ - test/dummy/config/spring.rb
112
+ - test/dummy/db/seeds.rb
113
+ - test/dummy/log/.keep
114
+ - test/dummy/public/404.html
115
+ - test/dummy/public/422.html
116
+ - test/dummy/public/500.html
117
+ - test/dummy/public/apple-touch-icon-precomposed.png
118
+ - test/dummy/public/apple-touch-icon.png
119
+ - test/dummy/public/favicon.ico
120
+ - test/models/workarea/payment/authorize/credit_card_test.decorator
121
+ - test/models/workarea/payment/capture/credit_card_test.decorator
122
+ - test/models/workarea/payment/credit_card_integration_test.decorator
123
+ - test/models/workarea/payment/purchase/credit_card_test.decorator
124
+ - test/models/workarea/payment/refund/credit_card_test.decorator
125
+ - test/models/workarea/payment/store_credit_card_test.decorator
126
+ - test/support/workarea/braintree_support_vcr_config.rb
127
+ - test/test_helper.rb
128
+ - test/vcr_cassettes/braintree/authorize_failure.yml
129
+ - test/vcr_cassettes/braintree/authorize_success.yml
130
+ - test/vcr_cassettes/braintree/capture_success.yml
131
+ - test/vcr_cassettes/braintree/purchase_failure.yml
132
+ - test/vcr_cassettes/braintree/purchase_success.yml
133
+ - test/vcr_cassettes/braintree/refund_success.yml
134
+ - test/vcr_cassettes/braintree/store_credit_card-sets_token_on_the_card.yml
135
+ - test/vcr_cassettes/braintree/store_without_token.yml
136
+ - test/vcr_cassettes/braintree/void_success.yml
137
+ - test/vcr_cassettes/credit_card/auth_capture.yml
138
+ - test/vcr_cassettes/credit_card/auth_void.yml
139
+ - test/vcr_cassettes/credit_card/purchase_void.yml
140
+ - test/vcr_cassettes/credit_card/store_auth.yml
141
+ - test/vcr_cassettes/credit_card/store_purchase.yml
142
+ - workarea-braintree.gemspec
143
+ homepage: https://github.com/workarea-commerce/workarea-braintree
144
+ licenses:
145
+ - Business Software License
146
+ metadata: {}
147
+ post_install_message:
148
+ rdoc_options: []
149
+ require_paths:
150
+ - lib
151
+ required_ruby_version: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: 2.0.0
156
+ required_rubygems_version: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ requirements: []
162
+ rubygems_version: 3.0.4
163
+ signing_key:
164
+ specification_version: 4
165
+ summary: Braintree integration for Workarea Commerce Platform
166
+ test_files: []