spree_mollie_gateway 0.1.1 → 1.0.0.pre.beta3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +3 -1
  3. data/.travis.yml +12 -1
  4. data/CONTRIBUTING.md +28 -0
  5. data/Gemfile.lock +322 -2
  6. data/README.md +29 -54
  7. data/Rakefile +19 -4
  8. data/app/controllers/spree/api/v1/mollie_controller.rb +16 -0
  9. data/app/controllers/spree/checkout_controller_decorator.rb +5 -6
  10. data/app/controllers/spree/mollie_controller.rb +20 -8
  11. data/app/models/mollie/client_decorator.rb +13 -0
  12. data/app/models/spree/gateway/mollie_gateway.rb +108 -53
  13. data/app/models/spree/mollie_logger.rb +9 -0
  14. data/app/models/spree/{mollie_transaction.rb → mollie_payment_source.rb} +7 -3
  15. data/app/models/spree/order_decorator.rb +24 -0
  16. data/app/models/spree/payment/processing_decorator.rb +8 -2
  17. data/app/models/spree/payment_decorator.rb +16 -0
  18. data/app/models/spree/user_decorator.rb +4 -2
  19. data/app/views/spree/checkout/payment/_molliegateway.html.erb +40 -3
  20. data/app/views/spree/shared/_payment.html.erb +1 -1
  21. data/config/routes.rb +11 -1
  22. data/db/migrate/{20180214133044_create_spree_mollie_transactions.rb → 20180214133044_create_spree_mollie_payment_sources.rb} +2 -2
  23. data/db/migrate/20180301084841_add_mollie_customer_id_to_spree_user.rb +2 -1
  24. data/docs/api/methods.md +61 -0
  25. data/docs/api/readme.md +7 -0
  26. data/docs/debugging.md +26 -0
  27. data/lib/spree_mollie_gateway/engine.rb +13 -3
  28. data/lib/spree_mollie_gateway/factories.rb +10 -0
  29. data/lib/spree_mollie_gateway/version.rb +1 -1
  30. data/spree_mollie_gateway.gemspec +27 -12
  31. metadata +231 -8
  32. data/app/models/mollie/provider.rb +0 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c098ec86b543a0a8aa568b057205a2bef86ee910
4
- data.tar.gz: 90b670a56475c5f83f7cec0ff9cb1df349245270
2
+ SHA256:
3
+ metadata.gz: 1688558d513bf19eeee66cac4bd82c818fc231035d4049aaf292bf0f30b051fd
4
+ data.tar.gz: b1f3f05f2cac422b8ede9dced7ec4f614f4dfa91b6a476ff6cf30b21321dd1e8
5
5
  SHA512:
6
- metadata.gz: afe1c9833c0ec03f3e6681369a9e1be35642b8eb559ff2482232729c7d798a8e3bbebc9959e49a6af9c8d69a00c898d5a204b8807eeb969b440f3446813d9e5a
7
- data.tar.gz: 4d0c05790bf2abb12a786bb86c2cba0fcfce200debe6d1dbfa892d57cfad342339093234651f404b5726b9ac418fa7f2db64712541fef2b8a8d5a591dc5e6079
6
+ metadata.gz: db5293cc96b4b47ceda7d8e0cc38ffd1488a1f8b8aab6eca7026bea2381f63f763897f293f33d778394dfbc723dcdee86ad3b1a494394eba68c9a57ee1e9c0d1
7
+ data.tar.gz: 749248060c6ba4be40829b15a925b5b06405d8189f69cc079c636a23d7aa4bc818c59364e658cac6ab5a0803ee594eeaa36aa855f2e8ad6cdd2f00e9d2544a00
data/.gitignore CHANGED
@@ -9,4 +9,6 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
- .idea/
12
+ .idea/
13
+ *.gem
14
+ spec/dummy
data/.travis.yml CHANGED
@@ -1,5 +1,16 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.2.7
4
+ - 2.2.7
5
5
  before_install: gem install bundler -v 1.16.1
6
+ deploy:
7
+ provider: rubygems
8
+ api_key:
9
+ secure: Yz+3DfSfTVK1a7teAc4Dc+n1FwXXEbwbolQA8uxKvBfzQ6qadDUUKkFc0rQgX6g+GIbAtEukwG3OpcY70hmE9SXE5iHlqPZr+4u1ibcHcYrZjcm+ITK7C/xI+CBVFkc90oOVQh/akFLfN6eQOZ0Qb2ugfM1xicKpqtLVhWyVukIZGVqegu2DY1ux3CvxPmrCg2eAsYLZVbTFAAgE3gZ9wnGNWus0FJHveoBg6nFY6hpfZZFA7V1EwfAanczMEvnH8SYn/VJasBqUGLCIQlJN6wH5XjFGTb8fwHNpxtuTS2DzE0Qt+ZY4nYGQjdFON8Jk0d/XS6Dq3uK5wUtpGgpMtSUto0rwBcT9tnZQ+gQaIPYXnGJe80LvdoQswcpnh3w/01hUF2rBNwGJl72t4VtnJt0IriMPlhzoFz9JPDHvPT3KKQLIN4mj+Rpm7p58X4iNgzDs6AHL+xg3OwSP/ywv+1Vd8LQUEBLV8BRVAU5K2+nJI/TK+yyuofSSO7ssKATF3cAaR8DH3Z6wy4iOfyrfVE8g661PDUKvQS3LFJ4LUFcHdA+ndnQL7WqCXqtj4pJhT8+pLLLvjSWDuwWAS62xzP3yHxazBns9KsDbaL4ciqSFUBq0ixtt9F1z3qkX4QLEYTBksrLatAUbcqCpc+qAqCXFPaSpnFd/d/GVEBh4VSk=
10
+ gem: spree_mollie_gateway
11
+ on:
12
+ tags: true
13
+ repo: mollie/spree-mollie-gateway
14
+ env:
15
+ matrix:
16
+ secure: OI45VbhLbiJmTRqyiYjOOqXT3HkhKOToXqgvgAnLXDPcL1SBZ1xLvOQas/SI/s2cR/smrTUwu1otK7/Di+ucMzURvzLvL2cTkNNjr8fIySw5RDQ5DKjM5xr4S95wnnaFMjXHu4yQ0VCDNXOm0qcfoVOj+E3Wd70d+ftFgbbNY5hwjiTfjspn6llB8Rgiof8X0gHJFX9hbIgNakPx/TX00uX6qnrMjmtfYkqTOjRdFFwWqR7/LHEe1qbdftTbqFMQu5U/xikBTtlY79nYgV3CjQpZGJJKv1sSsHasb7qLwvci5XlAURespKbiR0um3l3ZphTciQhE/OLVw/30Dd+CD4JJUHrrfu6LkpacWJcW9MT/RAbQCoXwXfNSthu0Sx6RAJd5Y2imuBDpUZ0CfjnKxRmyQRIrQgbdAs/y5L8t5l4ZBFxWkdN7mxWIOS2q5DyUv3g29rASzJMs4pHrhN92eGH57/odvWIj3/1eIeSDFgWgC+DC2j+tIM7+YdKvahjEq8VS8dXQlurftUDJl1ZnzucKek4RBuYLBPIHLZaMjCnAc3c/qcOMUl1cKHC2a9sY5UIXMmgyCVcyFULdmkuJc9CiZFAnyv+0cKhA2c0RGQC+jucbINF6Bnrf+zUnX4amErLT16G7Vylwdkdyu06y5k9jb/W96BJZrNy9xjQ+6Po=
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,28 @@
1
+ # Contributing
2
+
3
+ In the spirit of [free software][1], **everyone** is encouraged to help improve this project.
4
+
5
+ Here are some ways *you* can contribute:
6
+
7
+ * by using prerelease versions
8
+ * by reporting [bugs][2]
9
+ * by suggesting new features
10
+ * by writing or editing documentation
11
+ * by writing specifications
12
+ * by writing code (*no patch is too small*: fix typos, add comments, clean up inconsistent whitespace)
13
+ * by refactoring code
14
+ * by resolving [issues][2]
15
+ * by reviewing patches
16
+
17
+ Starting point:
18
+
19
+ * Fork the repo
20
+ * Clone your repo
21
+ * Run `bundle install`
22
+ * Run `bundle exec rake test_app` to create the test application in `spec/dummy`
23
+ * Make your changes
24
+ * Ensure specs pass by running `bundle exec rspec spec`
25
+ * Submit your pull request
26
+
27
+ [1]: http://www.fsf.org/licensing/essays/free-sw.html
28
+ [2]: https://github.com/mollie/spree-mollie-gateway/issues
data/Gemfile.lock CHANGED
@@ -1,15 +1,220 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- spree_mollie_gateway (0.1.0)
5
- mollie-api-ruby (~> 3.1.3)
4
+ spree_mollie_gateway (1.0.0.pre.beta3)
5
+ mollie-api-ruby (~> 3.1, >= 3.1.3)
6
+ spree_backend (>= 3.1.0, < 4.0)
7
+ spree_core (>= 3.1.0, < 4.0)
8
+ spree_extension
9
+ spree_frontend (>= 3.1.0, < 4.0)
6
10
 
7
11
  GEM
8
12
  remote: https://rubygems.org/
9
13
  specs:
14
+ actioncable (5.1.5)
15
+ actionpack (= 5.1.5)
16
+ nio4r (~> 2.0)
17
+ websocket-driver (~> 0.6.1)
18
+ actionmailer (5.1.5)
19
+ actionpack (= 5.1.5)
20
+ actionview (= 5.1.5)
21
+ activejob (= 5.1.5)
22
+ mail (~> 2.5, >= 2.5.4)
23
+ rails-dom-testing (~> 2.0)
24
+ actionpack (5.1.5)
25
+ actionview (= 5.1.5)
26
+ activesupport (= 5.1.5)
27
+ rack (~> 2.0)
28
+ rack-test (>= 0.6.3)
29
+ rails-dom-testing (~> 2.0)
30
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
31
+ actionview (5.1.5)
32
+ activesupport (= 5.1.5)
33
+ builder (~> 3.1)
34
+ erubi (~> 1.4)
35
+ rails-dom-testing (~> 2.0)
36
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
37
+ activejob (5.1.5)
38
+ activesupport (= 5.1.5)
39
+ globalid (>= 0.3.6)
40
+ activemerchant (1.77.0)
41
+ activesupport (>= 3.2.14, < 6.x)
42
+ builder (>= 2.1.2, < 4.0.0)
43
+ i18n (>= 0.6.9)
44
+ nokogiri (~> 1.4)
45
+ activemodel (5.1.5)
46
+ activesupport (= 5.1.5)
47
+ activerecord (5.1.5)
48
+ activemodel (= 5.1.5)
49
+ activesupport (= 5.1.5)
50
+ arel (~> 8.0)
51
+ activesupport (5.1.5)
52
+ concurrent-ruby (~> 1.0, >= 1.0.2)
53
+ i18n (~> 0.7)
54
+ minitest (~> 5.1)
55
+ tzinfo (~> 1.1)
56
+ acts-as-taggable-on (5.0.0)
57
+ activerecord (>= 4.2.8)
58
+ acts_as_list (0.9.11)
59
+ activerecord (>= 3.0)
60
+ addressable (2.5.2)
61
+ public_suffix (>= 2.0.2, < 4.0)
62
+ arel (8.0.0)
63
+ autoprefixer-rails (8.2.0)
64
+ execjs
65
+ awesome_nested_set (3.1.4)
66
+ activerecord (>= 4.0.0, < 5.3)
67
+ bootstrap-sass (3.3.7)
68
+ autoprefixer-rails (>= 5.2.1)
69
+ sass (>= 3.3.4)
70
+ builder (3.2.3)
71
+ camertron-eprun (1.1.1)
72
+ cancancan (2.1.3)
73
+ canonical-rails (0.2.2)
74
+ rails (>= 4.1, < 5.2)
75
+ carmen (1.0.2)
76
+ activesupport (>= 3.0.0)
77
+ childprocess (0.9.0)
78
+ ffi (~> 1.0, >= 1.0.11)
79
+ cldr-plurals-runtime-rb (1.0.1)
80
+ climate_control (0.2.0)
81
+ cocaine (0.5.8)
82
+ climate_control (>= 0.0.3, < 1.0)
83
+ coffee-rails (4.2.2)
84
+ coffee-script (>= 2.2.0)
85
+ railties (>= 4.0.0)
86
+ coffee-script (2.4.1)
87
+ coffee-script-source
88
+ execjs
89
+ coffee-script-source (1.12.2)
90
+ concurrent-ruby (1.0.5)
91
+ crass (1.0.3)
92
+ css_parser (1.6.0)
93
+ addressable
94
+ database_cleaner (1.6.2)
95
+ deface (1.3.0)
96
+ nokogiri (~> 1.6)
97
+ polyglot
98
+ rails (>= 4.1)
99
+ rainbow (>= 2.1.0)
10
100
  diff-lcs (1.3)
101
+ docile (1.3.0)
102
+ erubi (1.7.1)
103
+ execjs (2.7.0)
104
+ factory_bot (4.8.2)
105
+ activesupport (>= 3.0.0)
106
+ ffaker (2.8.1)
107
+ ffi (1.9.23)
108
+ friendly_id (5.2.3)
109
+ activerecord (>= 4.0.0)
110
+ globalid (0.4.1)
111
+ activesupport (>= 4.2.0)
112
+ highline (1.6.21)
113
+ htmlentities (4.3.4)
114
+ i18n (0.9.5)
115
+ concurrent-ruby (~> 1.0)
116
+ jquery-rails (4.3.1)
117
+ rails-dom-testing (>= 1, < 3)
118
+ railties (>= 4.2.0)
119
+ thor (>= 0.14, < 2.0)
120
+ jquery-ui-rails (6.0.1)
121
+ railties (>= 3.2.16)
122
+ json (2.1.0)
123
+ kaminari (1.0.1)
124
+ activesupport (>= 4.1.0)
125
+ kaminari-actionview (= 1.0.1)
126
+ kaminari-activerecord (= 1.0.1)
127
+ kaminari-core (= 1.0.1)
128
+ kaminari-actionview (1.0.1)
129
+ actionview
130
+ kaminari-core (= 1.0.1)
131
+ kaminari-activerecord (1.0.1)
132
+ activerecord
133
+ kaminari-core (= 1.0.1)
134
+ kaminari-core (1.0.1)
135
+ loofah (2.2.1)
136
+ crass (~> 1.0.2)
137
+ nokogiri (>= 1.5.9)
138
+ mail (2.7.0)
139
+ mini_mime (>= 0.1.1)
140
+ method_source (0.9.0)
141
+ mime-types (3.1)
142
+ mime-types-data (~> 3.2015)
143
+ mime-types-data (3.2016.0521)
144
+ mimemagic (0.3.2)
145
+ mini_mime (1.0.0)
146
+ mini_portile2 (2.3.0)
147
+ minitest (5.11.3)
11
148
  mollie-api-ruby (3.1.3)
149
+ monetize (1.7.0)
150
+ money (~> 6.9)
151
+ money (6.10.1)
152
+ i18n (>= 0.6.4, < 1.0)
153
+ mysql2 (0.4.10)
154
+ nio4r (2.3.0)
155
+ nokogiri (1.8.2)
156
+ mini_portile2 (~> 2.3.0)
157
+ paperclip (5.2.0)
158
+ activemodel (>= 4.2.0)
159
+ activesupport (>= 4.2.0)
160
+ cocaine (~> 0.5.5)
161
+ mime-types
162
+ mimemagic (~> 0.3.0)
163
+ paranoia (2.3.1)
164
+ activerecord (>= 4.0, < 5.2)
165
+ polyamorous (1.3.3)
166
+ activerecord (>= 3.0)
167
+ polyglot (0.3.5)
168
+ premailer (1.11.1)
169
+ addressable
170
+ css_parser (>= 1.6.0)
171
+ htmlentities (>= 4.0.0)
172
+ premailer-rails (1.10.2)
173
+ actionmailer (>= 3, < 6)
174
+ premailer (~> 1.7, >= 1.7.9)
175
+ public_suffix (3.0.2)
176
+ rabl (0.13.1)
177
+ activesupport (>= 2.3.14)
178
+ rack (2.0.4)
179
+ rack-test (0.8.3)
180
+ rack (>= 1.0, < 3)
181
+ rails (5.1.5)
182
+ actioncable (= 5.1.5)
183
+ actionmailer (= 5.1.5)
184
+ actionpack (= 5.1.5)
185
+ actionview (= 5.1.5)
186
+ activejob (= 5.1.5)
187
+ activemodel (= 5.1.5)
188
+ activerecord (= 5.1.5)
189
+ activesupport (= 5.1.5)
190
+ bundler (>= 1.3.0)
191
+ railties (= 5.1.5)
192
+ sprockets-rails (>= 2.0.0)
193
+ rails-dom-testing (2.0.3)
194
+ activesupport (>= 4.2.0)
195
+ nokogiri (>= 1.6)
196
+ rails-html-sanitizer (1.0.3)
197
+ loofah (~> 2.0)
198
+ railties (5.1.5)
199
+ actionpack (= 5.1.5)
200
+ activesupport (= 5.1.5)
201
+ method_source
202
+ rake (>= 0.8.7)
203
+ thor (>= 0.18.1, < 2.0)
204
+ rainbow (3.0.0)
12
205
  rake (10.5.0)
206
+ ransack (1.8.8)
207
+ actionpack (>= 3.0)
208
+ activerecord (>= 3.0)
209
+ activesupport (>= 3.0)
210
+ i18n
211
+ polyamorous (~> 1.3.2)
212
+ rb-fsevent (0.10.3)
213
+ rb-inotify (0.9.10)
214
+ ffi (>= 0.5.0, < 2)
215
+ responders (2.4.0)
216
+ actionpack (>= 4.2.0, < 5.3)
217
+ railties (>= 4.2.0, < 5.3)
13
218
  rspec (3.7.0)
14
219
  rspec-core (~> 3.7.0)
15
220
  rspec-expectations (~> 3.7.0)
@@ -22,17 +227,132 @@ GEM
22
227
  rspec-mocks (3.7.0)
23
228
  diff-lcs (>= 1.2.0, < 2.0)
24
229
  rspec-support (~> 3.7.0)
230
+ rspec-rails (3.7.2)
231
+ actionpack (>= 3.0)
232
+ activesupport (>= 3.0)
233
+ railties (>= 3.0)
234
+ rspec-core (~> 3.7.0)
235
+ rspec-expectations (~> 3.7.0)
236
+ rspec-mocks (~> 3.7.0)
237
+ rspec-support (~> 3.7.0)
25
238
  rspec-support (3.7.1)
239
+ rubyzip (1.2.1)
240
+ sass (3.5.5)
241
+ sass-listen (~> 4.0.0)
242
+ sass-listen (4.0.0)
243
+ rb-fsevent (~> 0.9, >= 0.9.4)
244
+ rb-inotify (~> 0.9, >= 0.9.7)
245
+ sass-rails (5.0.7)
246
+ railties (>= 4.0.0, < 6)
247
+ sass (~> 3.1)
248
+ sprockets (>= 2.8, < 4.0)
249
+ sprockets-rails (>= 2.0, < 4.0)
250
+ tilt (>= 1.1, < 3)
251
+ select2-rails (3.5.9.1)
252
+ thor (~> 0.14)
253
+ selenium-webdriver (3.11.0)
254
+ childprocess (~> 0.5)
255
+ rubyzip (~> 1.2)
256
+ simplecov (0.16.1)
257
+ docile (~> 1.1)
258
+ json (>= 1.8, < 3)
259
+ simplecov-html (~> 0.10.0)
260
+ simplecov-html (0.10.2)
261
+ spree_api (3.4.4)
262
+ rabl (~> 0.13.1)
263
+ spree_core (= 3.4.4)
264
+ versioncake (~> 3.3.0)
265
+ spree_backend (3.4.4)
266
+ bootstrap-sass (~> 3.3)
267
+ jquery-rails (~> 4.3)
268
+ jquery-ui-rails (~> 6.0.1)
269
+ select2-rails (= 3.5.9.1)
270
+ spree_api (= 3.4.4)
271
+ spree_core (= 3.4.4)
272
+ spree_core (3.4.4)
273
+ activemerchant (~> 1.67)
274
+ acts-as-taggable-on (~> 5.0)
275
+ acts_as_list (~> 0.8)
276
+ awesome_nested_set (~> 3.1.3)
277
+ cancancan (~> 2.0)
278
+ carmen (~> 1.0.0)
279
+ deface (~> 1.0)
280
+ ffaker (~> 2.2)
281
+ friendly_id (~> 5.2.1)
282
+ highline (~> 1.6.18)
283
+ kaminari (~> 1.0.1)
284
+ monetize (~> 1.1)
285
+ paperclip (~> 5.1.0)
286
+ paranoia (~> 2.3.0)
287
+ premailer-rails
288
+ rails (~> 5.1.4)
289
+ ransack (~> 1.8.0)
290
+ responders
291
+ sprockets-rails
292
+ state_machines-activerecord (~> 0.5)
293
+ stringex
294
+ twitter_cldr (~> 4.3)
295
+ spree_extension (0.0.5)
296
+ activerecord (>= 4.2)
297
+ spree_frontend (3.4.4)
298
+ bootstrap-sass (>= 3.3.5.1, < 3.4)
299
+ canonical-rails (~> 0.2.0)
300
+ jquery-rails (~> 4.3)
301
+ spree_api (= 3.4.4)
302
+ spree_core (= 3.4.4)
303
+ sprockets (3.7.1)
304
+ concurrent-ruby (~> 1.0)
305
+ rack (> 1, < 3)
306
+ sprockets-rails (3.2.1)
307
+ actionpack (>= 4.0)
308
+ activesupport (>= 4.0)
309
+ sprockets (>= 3.0.0)
310
+ sqlite3 (1.3.13)
311
+ state_machines (0.5.0)
312
+ state_machines-activemodel (0.5.1)
313
+ activemodel (>= 4.1, < 6.0)
314
+ state_machines (>= 0.5.0)
315
+ state_machines-activerecord (0.5.1)
316
+ activerecord (>= 4.1, < 6.0)
317
+ state_machines-activemodel (>= 0.5.0)
318
+ stringex (2.8.4)
319
+ thor (0.20.0)
320
+ thread_safe (0.3.6)
321
+ tilt (2.0.8)
322
+ twitter_cldr (4.4.3)
323
+ camertron-eprun
324
+ cldr-plurals-runtime-rb (~> 1.0)
325
+ tzinfo
326
+ tzinfo (1.2.5)
327
+ thread_safe (~> 0.1)
328
+ versioncake (3.3.0)
329
+ actionpack (>= 3.2)
330
+ activesupport (>= 3.2)
331
+ railties (>= 3.2)
332
+ tzinfo
333
+ websocket-driver (0.6.5)
334
+ websocket-extensions (>= 0.1.0)
335
+ websocket-extensions (0.1.3)
26
336
 
27
337
  PLATFORMS
28
338
  ruby
29
339
 
30
340
  DEPENDENCIES
31
341
  bundler (~> 1.16)
342
+ coffee-rails
343
+ database_cleaner
344
+ factory_bot
345
+ ffaker
32
346
  mollie-api-ruby (~> 3.1.3)
347
+ mysql2
33
348
  rake (~> 10.0)
34
349
  rspec (~> 3.0)
350
+ rspec-rails (~> 3.7.2)
351
+ sass-rails
352
+ selenium-webdriver
353
+ simplecov
35
354
  spree_mollie_gateway!
355
+ sqlite3
36
356
 
37
357
  BUNDLED WITH
38
358
  1.16.1
data/README.md CHANGED
@@ -1,78 +1,48 @@
1
1
  [<img src="https://www.mollie.com/assets/images/mollie/logo-black.svg" width="110">](https://www.mollie.com/)
2
+
3
+ [![Build Status](https://travis-ci.com/mollie/spree-mollie-gateway.svg?token=vSsWARRCtaEKat97szyu&branch=master)](https://travis-ci.com/mollie/spree-mollie-gateway)
2
4
 
3
- Quickly integrate all major payment methods in Spree Commerce, wherever you need them. Simply drop them ready-made into your Spree Commerce webshop with this powerful plugin by Mollie. Mollie is dedicated to making payments better for Spree Commerce.
5
+ This is the official Mollie payment gateway for Spree Commerce. Implement this to easily accept all major payment methods, including iDEAL, Bancontact, Visa, Mastercard, AmEx, and many more, in your Spree Commerce storefront.
6
+
7
+ This gateway supports all aspect of Spree Commerce and payments can be created through both `spree_frontend` and `spree_api`.
4
8
 
5
- > Next level payments, for Spree Commerce
9
+ Please go to the [signup page](https://www.mollie.com/signup) to create a new Mollie account and start receiving payments in a couple of minutes.
6
10
 
7
- No need to spend weeks on paperwork or security compliance procedures. No more lost conversions because you don’t support a shopper’s favorite payment method or because they don’t feel safe. We made payments intuitive and safe for merchants and their customers.
11
+ > Our pricing is always per transaction. No startup fees, no monthly fees, and no gateway fees. No hidden fees, period.
8
12
 
9
- 1. [Payment methods](#payment-methods)
10
- 2. [Features](#features)
11
- 3. [Requirements](#requirements)
12
- 4. [Installation](#installation)
13
- 5. [Configuring Mollie Gateway](#configuring-mollie-gateway)
13
+ 1. [Features](#features)
14
+ 2. [Requirements](#requirements)
15
+ 3. [Installation](#installation)
16
+ 4. [Configuring Mollie Gateway](#configuring-mollie-gateway)
17
+ 5. [API endpoints](#api-endpoints)
14
18
  6. [License](#license)
15
19
 
16
- ## Payment methods
17
-
18
- Credit cards:
19
-
20
- * VISA (International)
21
- * MasterCard (International)
22
- * American Express (International)
23
- * Cartes Bancaires (France)
24
- * CartaSi (Italy)
25
-
26
- Debit cards:
27
-
28
- * V Pay (International)
29
- * Maestro (International)
30
-
31
- Alternative payment methods:
32
-
33
- * iDEAL (Netherlands)
34
- * Bancontact (Belgium)
35
- * Home'Pay (Belgium)
36
- * PayPal (International)
37
- * SOFORTbanking (EU)
38
- * Belfius (Belgium)
39
- * KBC/CBC payment button (Belgium)
40
- * SEPA - Credit Transfer (EU)
41
- * SEPA - Direct Debit (EU)
42
- * Bitcoin (International)
43
- * Paysafecard (International)
44
- * Gift cards (Netherlands)
45
-
46
- Please go to the [signup page](https://www.mollie.com/signup) to create a new Mollie account and start receiving payments in a couple of minutes. Contact info@mollie.com if you have any questions or comments about this plugin.
47
-
48
- > Our pricing is always per transaction. No startup fees, no monthly fees, and no gateway fees. No hidden fees, period.
49
-
50
20
  ## Features
51
21
 
52
22
  * Support for all available Mollie payment methods.
53
23
  * Support for [one-click payments](https://www.mollie.com/en/features/checkout).
54
- * Transparent pricing. No startup fees, no monthly fees, and no gateway fees. No hidden fees, period.
55
- * Configurable pay outs: daily, weekly, monthly - whatever you prefer.
56
- * [Powerful dashboard](https://www.mollie.com/en/features/dashboard) on mollie.com to easily keep track of your payments.
57
24
  * Fast in-house support. You will always be helped by someone who knows our products intimately.
58
25
  * Multiple translations: English and Dutch.
59
- * Event log for debugging purposes.
26
+ * Refund orders from the Spree admin.
27
+ * Event log for <a href="docs/debugging.md">debugging purposes</a>.
28
+ * Available for `spree_api` and `spree_frontend`.
29
+ * Allow returning customers to <a href="https://www.mollie.com/en/features/checkout" title="One-click payments">use their previous payment details</a> and pay instantly.
60
30
 
61
31
  ## Requirements
62
- - Spree 3.4.x or higher.
63
- - Rails 5.1.x or higher.
32
+ - Spree 3.4.x or newer.
33
+ - Rails 5.1.x or newer.
64
34
 
65
35
  ## Installation
66
36
 
67
- Open your `Gemfile` and add `spree_mollie_gateway`.
37
+ 1. Add the extension to your Gemfile using:
68
38
 
69
39
  ```ruby
70
40
  gem 'spree_mollie_gateway'
71
41
  ```
72
42
 
73
- Install the gem by running `bundle install`.
43
+ 2. Install the gem by running `bundle install`.
74
44
 
75
- Run the installer which takes care of copying migrations:
45
+ 3. Run the installer which takes care of copying migrations:
76
46
 
77
47
  ```bash
78
48
  bundle exec rails g spree_mollie_gateway:install
@@ -80,14 +50,19 @@ bundle exec rails g spree_mollie_gateway:install
80
50
 
81
51
  ## Configuring Mollie Gateway
82
52
 
53
+ <img src="https://info.mollie.com/hubfs/configuration.jpg" alt="Add new Payment Method." />
54
+
83
55
  1. Configure a new payment method (`Spree Admin -> Configurations -> Payment Methods -> New Payment Method`).
84
56
  2. Select `Spree::Gateway::MollieGateway` as a `Provider`.
85
57
  3. Fill in your live / test `API key`.
86
58
  4. Fill in your hostname. Used for generating the webhook URL and redirect URL.
87
59
  5. Select "Front End" in the `Display` selectbox.
88
- 6. Fill in "Mollie" for the `Name` field.
89
60
  7. Save and you're done!
90
61
 
62
+ ## API endpoints
63
+ This gateway comes with a couple of API endpoints which seamlessly integrate with the Spree API.
64
+
65
+ <a href="docs/api">Overview of available API endpoints.</a>
66
+
91
67
  ## License
92
- [GPLv2 (GNU General Public License, version 2) License](http://www.gnu.org/licenses/gpl-2.0.html).
93
- Copyright (c) 2018, Mollie B.V.
68
+ BSD (Berkeley Software Distribution) License. Copyright (c) 2014-2018, Mollie B.V.