Mollie Payments for WooCommerce - Version 2.1.0

Version Description

  • 01/12/2015 =
  • For payment methods where the payment status will be delivered after a couple of days you can set the initial order status. Choose between on-hold or pending.
  • Get the correct current locale (with support for WPML).
  • Cache payment methods and issuers by locale.
  • Cancel order when payment is expired.
  • Reduce order when initial order status is on-hold. Restore order stock when payment fails.
  • Hide payment gateway when cart exceeds method min / max amount. Method min / max amount is returned by Mollie API.
  • Add filter to change the return URL.

=

Download this release

Release Info

Developer l.vangunst
Plugin Icon wp plugin Mollie Payments for WooCommerce
Version 2.1.0
Comparing to
See all releases

Code changes from version 2.0.1 to 2.1.0

Files changed (43) hide show
  1. i18n/languages/mollie-payments-for-woocommerce-nl_NL.mo +0 -0
  2. i18n/languages/mollie-payments-for-woocommerce-nl_NL.po +226 -164
  3. i18n/languages/mollie-payments-for-woocommerce.pot +109 -87
  4. includes/mollie-api-php/README.mdown +9 -1
  5. includes/mollie-api-php/composer.json +6 -3
  6. includes/mollie-api-php/examples/{1-new-payment.php → 01-new-payment.php} +0 -0
  7. includes/mollie-api-php/examples/{2-webhook-verification.php → 02-webhook-verification.php} +8 -0
  8. includes/mollie-api-php/examples/{3-return-page.php → 03-return-page.php} +0 -0
  9. includes/mollie-api-php/examples/{4-ideal-payment.php → 04-ideal-payment.php} +0 -0
  10. includes/mollie-api-php/examples/{5-payments-history.php → 05-payments-history.php} +0 -0
  11. includes/mollie-api-php/examples/{6-list-activated-methods.php → 06-list-activated-methods.php} +1 -1
  12. includes/mollie-api-php/examples/{7-refund-payment.php → 07-refund-payment.php} +0 -0
  13. includes/mollie-api-php/examples/08-oauth-list-profiles.php +32 -0
  14. includes/mollie-api-php/examples/09-oauth-list-settlements.php +70 -0
  15. includes/mollie-api-php/examples/10-oauth-new-payment.php +84 -0
  16. includes/mollie-api-php/examples/initialize.php +1 -1
  17. includes/mollie-api-php/examples/initialize_with_oauth.php +11 -0
  18. includes/mollie-api-php/src/Mollie/API/Client.php +95 -4
  19. includes/mollie-api-php/src/Mollie/API/Object/Method.php +15 -10
  20. includes/mollie-api-php/src/Mollie/API/Object/Organization.php +90 -0
  21. includes/mollie-api-php/src/Mollie/API/Object/Payment.php +1 -1
  22. includes/mollie-api-php/src/Mollie/API/Object/Permission.php +61 -0
  23. includes/mollie-api-php/src/Mollie/API/Object/Profile.php +109 -0
  24. includes/mollie-api-php/src/Mollie/API/Object/Settlement.php +74 -0
  25. includes/mollie-api-php/src/Mollie/API/Resource/Base.php +52 -29
  26. includes/mollie-api-php/src/Mollie/API/Resource/Issuers.php +2 -2
  27. includes/mollie-api-php/src/Mollie/API/Resource/Methods.php +2 -2
  28. includes/mollie-api-php/src/Mollie/API/Resource/Organizations.php +57 -0
  29. includes/mollie-api-php/src/Mollie/API/Resource/Payments.php +6 -6
  30. includes/mollie-api-php/src/Mollie/API/Resource/Payments/Refunds.php +2 -2
  31. includes/mollie-api-php/src/Mollie/API/Resource/Permissions.php +62 -0
  32. includes/mollie-api-php/src/Mollie/API/Resource/Profiles.php +44 -0
  33. includes/mollie-api-php/src/Mollie/API/Resource/Settlements.php +44 -0
  34. includes/mollie-api-php/src/Mollie/API/Resource/Undefined.php +107 -0
  35. includes/mollie-api-php/tests/apiUnitTest.php +51 -3
  36. includes/mollie/wc/gateway/abstract.php +186 -18
  37. includes/mollie/wc/gateway/banktransfer.php +4 -12
  38. includes/mollie/wc/gateway/directdebit.php +10 -0
  39. includes/mollie/wc/helper/data.php +60 -3
  40. includes/mollie/wc/helper/settings.php +12 -2
  41. includes/mollie/wc/plugin.php +1 -1
  42. mollie-payments-for-woocommerce.php +1 -1
  43. readme.txt +17 -2
i18n/languages/mollie-payments-for-woocommerce-nl_NL.mo CHANGED
Binary file
i18n/languages/mollie-payments-for-woocommerce-nl_NL.po CHANGED
@@ -3,160 +3,200 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Mollie Payments for WooCommerce 2.0\n"
6
- "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mollie-payments-for-woocommerce\n"
7
- "POT-Creation-Date: 2015-10-01 17:00+0200\n"
8
- "PO-Revision-Date: 2015-10-01 17:00+0200\n"
 
9
  "Last-Translator: Lennard van Gunst <lennard@mollie.com>\n"
10
  "Language-Team: Mollie <info@mollie.nl>\n"
11
  "Language: nl\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
- "X-Generator: Poedit 1.8.5\n"
16
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
  "X-Poedit-Basepath: ../..\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
20
- #: includes/mollie/wc/gateway/abstract.php:60
21
  msgid "Enable/Disable"
22
  msgstr "In-/uitschakelen"
23
 
24
- #: includes/mollie/wc/gateway/abstract.php:62
25
  msgid "Enable %s"
26
  msgstr "%s inschakelen"
27
 
28
- #: includes/mollie/wc/gateway/abstract.php:66
29
  msgid "Title"
30
  msgstr "Titel"
31
 
32
- #: includes/mollie/wc/gateway/abstract.php:68
33
- msgid "This controls the title which the user sees during checkout. Default <code>%s</code>"
34
- msgstr "De titel welke de gebruiker ziet in de winkelwagen. Standaard <code>%s</code>"
 
 
 
35
 
36
- #: includes/mollie/wc/gateway/abstract.php:73
37
  msgid "Display logo"
38
  msgstr "Logo weergeven"
39
 
40
- #: includes/mollie/wc/gateway/abstract.php:75
41
  msgid "Display logo on checkout page. Default <code>enabled</code>"
42
  msgstr "Logo weergeven in de winkelwagen. Standaard <code>ingeschakeld</code>"
43
 
44
- #: includes/mollie/wc/gateway/abstract.php:79 includes/mollie/wc/helper/settings.php:330
 
45
  msgid "Description"
46
  msgstr "Omschrijving"
47
 
48
- #: includes/mollie/wc/gateway/abstract.php:81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  msgid ""
50
- "Payment method description that the customer will see on your checkout. Default <code>%s</code>"
51
- msgstr "Betaalmethode omschrijving is zichtbaar in de winkelwagen. Standaard <code>%s</code>"
 
 
 
 
 
52
 
53
- #: includes/mollie/wc/gateway/abstract.php:111 includes/mollie/wc/gateway/abstract.php:146
54
- #: includes/mollie/wc/helper/settings.php:187
 
 
 
 
 
55
  msgid "Test mode enabled."
56
  msgstr "Test modus ingeschakeld."
57
 
58
- #: includes/mollie/wc/gateway/abstract.php:123
59
  msgid "Gateway Disabled"
60
  msgstr "Gateway uitgeschakeld"
61
 
62
  #. translators: The surrounding %s's Will be replaced by a link to the global
63
  #. setting page
64
- #: includes/mollie/wc/gateway/abstract.php:148
65
  msgid "No API key provided. Please %sset you Mollie API key%s first."
66
  msgstr "Geen API key ingesteld. %sStel een API key in%s."
67
 
68
  #. translators: Placeholder 1: payment method title. The surrounding %s's Will
69
  #. be replaced by a link to the Mollie profile
70
- #: includes/mollie/wc/gateway/abstract.php:160
71
  msgid ""
72
- "%s not enabled in your Mollie profile. You can enabled it by editing your %sMollie profile%s."
 
73
  msgstr ""
74
- "%s is niet ingeschakeld in je Mollie profiel. Je kunt de betaalmethode inschakelen in je "
75
- "%sMollie profiel%s."
76
 
77
  #. translators: Placeholder 1: WooCommerce currency, placeholder 2: Supported
78
  #. Mollie currencies
79
- #: includes/mollie/wc/gateway/abstract.php:173
80
  msgid "Shop currency %s not supported by Mollie. Mollie only supports: %s."
81
- msgstr "Winkel valuta %s wordt niet door Mollie ondersteund. Mollie ondersteunt alleen: %s."
 
 
82
 
83
- #: includes/mollie/wc/gateway/abstract.php:196
84
  msgid "Could not load order %s"
85
  msgstr "Kan bestelling %s niet laden"
86
 
87
- #: includes/mollie/wc/gateway/abstract.php:213
88
  msgid "Awaiting payment confirmation."
89
  msgstr "In afwachting van betaling bevestiging."
90
 
91
  #. translators: Placeholder 1: Payment method title, placeholder 2: payment ID
92
- #: includes/mollie/wc/gateway/abstract.php:276
93
  msgid "%s payment started (%s)."
94
  msgstr "%s betaling gestart (%s)."
95
 
96
- #: includes/mollie/wc/gateway/abstract.php:278 includes/mollie/wc/gateway/abstract.php:401
97
- #: includes/mollie/wc/gateway/abstract.php:432 includes/mollie/wc/gateway/abstract.php:457
98
- #: includes/mollie/wc/gateway/abstract.php:476
 
 
99
  msgid "test mode"
100
  msgstr "test modus"
101
 
102
  #. translators: Placeholder 1: Payment method title
103
- #: includes/mollie/wc/gateway/abstract.php:291
104
  msgid "Could not create %s payment."
105
  msgstr "Kon geen %s betaling aanmaken."
106
 
107
  #. translators: Placeholder 1: payment method title, placeholder 2: payment
108
  #. status, placeholder 3: payment ID
109
- #: includes/mollie/wc/gateway/abstract.php:398
110
  msgid "%s payment %s (%s)."
111
  msgstr "%s betaling %s (%s)."
112
 
113
  #. translators: Placeholder 1: payment method title, placeholder 2: payment ID
114
- #: includes/mollie/wc/gateway/abstract.php:430
115
  msgid "Order completed using %s payment (%s)."
116
  msgstr "Bestelling afgerond met %s betaling (%s)."
117
 
118
  #. translators: Placeholder 1: payment method title, placeholder 2: payment ID
119
- #: includes/mollie/wc/gateway/abstract.php:455
120
  msgid "%s payment cancelled (%s)."
121
  msgstr "%s betaling geannuleerd (%s)."
122
 
123
  #. translators: Placeholder 1: payment method title, placeholder 2: payment ID
124
- #: includes/mollie/wc/gateway/abstract.php:474
125
  msgid "%s payment expired (%s)."
126
  msgstr "%s betaling verlopen (%s)."
127
 
128
- #: includes/mollie/wc/gateway/abstract.php:490
129
  msgid ""
130
- "You have cancelled your payment. Please complete your order with a different payment method."
 
131
  msgstr ""
132
- "Je hebt de betaling geannuleerd. U kunt de bestelling afronden met een andere betaalmethode."
 
133
 
134
  #. translators: Placeholder 1: currency, placeholder 2: refunded amount,
135
  #. placeholder 3: optional refund reason, placeholder 4: payment ID,
136
  #. placeholder 5: refund ID
137
- #: includes/mollie/wc/gateway/abstract.php:550
138
  msgid "Refunded %s%s (reason: %s) - Payment ID: %s, Refund: %s"
139
  msgstr "Terugstorting %s%s (reden: %s) - Payment ID: %s, Refund: %s"
140
 
141
- #: includes/mollie/wc/gateway/abstract.php:619
142
  msgid "Payment"
143
  msgstr "Betaling"
144
 
145
- #: includes/mollie/wc/gateway/abstract.php:640
146
  msgid "We have not received a definite payment status."
147
  msgstr "We hebben nog geen definitieve status van de betaling ontvangen."
148
 
149
- #: includes/mollie/wc/gateway/abstract.php:645
150
  msgid ""
151
- "We have not received a definite payment status. You will receive an email as soon as we "
152
- "receive a confirmation of the bank/merchant."
153
  msgstr ""
154
- "We hebben nog geen definitieve status van de betaling ontvangen. U ontvangt een e-mail zodra "
155
- "wij een bevestiging van de bank ontvangen."
156
 
157
  #. translators: Placeholder 1: payment method
158
- #: includes/mollie/wc/gateway/abstract.php:652
159
- #, fuzzy
160
  msgid "Payment completed with <strong>%s</strong>"
161
  msgstr "Betaling afgerond met <strong>%s</strong>"
162
 
@@ -165,8 +205,10 @@ msgid "Expiry date"
165
  msgstr "Verloopdatum"
166
 
167
  #: includes/mollie/wc/gateway/banktransfer.php:34
168
- msgid "Number of days after the payment will expire. Default <code>%d</code> days"
169
- msgstr "Aantal dagen waarna de betaling zal verlopen. Standaard <code>%d</code> dagen"
 
 
170
 
171
  #: includes/mollie/wc/gateway/banktransfer.php:43
172
  msgid "Mail payment instructions"
@@ -175,22 +217,25 @@ msgstr "Mail betalingsinstructies"
175
  #. translators: Placeholder 1: enabled or disabled
176
  #: includes/mollie/wc/gateway/banktransfer.php:45
177
  msgid ""
178
- "Should Mollie automatically mail the payment instructions to the customer? Default <code>%s</"
179
- "code>"
180
  msgstr ""
181
- "Laat Mollie automatisch de betaalinstructies mailen naar de klant. Standaard <code>%s</code>"
 
182
 
183
- #: includes/mollie/wc/gateway/banktransfer.php:45 includes/mollie/wc/helper/settings.php:181
 
184
  msgid "Disabled"
185
  msgstr "Uitgeschakeld"
186
 
187
  #: includes/mollie/wc/gateway/banktransfer.php:48
188
  msgid ""
189
- "If you disable this option the customer still has an option to send the payment instructions "
190
- "to an email address on the Mollie payment screen."
191
  msgstr ""
192
- "Als je deze instelling uitschakelt kan de klant op het Mollie betaalscherm er zelf nog voor "
193
- "kiezen om de betaalinstructies te versturen naar een e-mailadres."
 
194
 
195
  #: includes/mollie/wc/gateway/banktransfer.php:93
196
  msgid "Bank Transfer"
@@ -198,52 +243,59 @@ msgstr "Overboeking"
198
 
199
  #. translators: Placeholder 1: consumer name, placeholder 2: consumer IBAN,
200
  #. placeholder 3: consumer BIC
201
- #: includes/mollie/wc/gateway/banktransfer.php:144 includes/mollie/wc/gateway/directdebit.php:41
202
- #: includes/mollie/wc/gateway/ideal.php:86 includes/mollie/wc/gateway/sofort.php:56
 
 
203
  msgid "Payment completed by <strong>%s</strong> (IBAN: %s, BIC: %s)"
204
  msgstr "Betaling afgerond door <strong>%s</strong> (IBAN: %s, BIC: %s)"
205
 
206
- #: includes/mollie/wc/gateway/banktransfer.php:154
207
  msgid ""
208
- "Please complete your payment by transferring the total amount to the following bank account:"
209
- msgstr "Rond de betaling af door het totale bedrag over te boeken naar de volgende rekening:"
 
 
 
210
 
211
  #. translators: Placeholder 1: 'Stichting Mollie Payments'
212
- #: includes/mollie/wc/gateway/banktransfer.php:158
213
  msgid "Beneficiary: %s"
214
  msgstr "Begunstigde: %s"
215
 
216
- #: includes/mollie/wc/gateway/banktransfer.php:159
217
  msgid "IBAN: <strong>%s</strong>"
218
  msgstr "IBAN: <strong>%s</strong>"
219
 
220
- #: includes/mollie/wc/gateway/banktransfer.php:160
221
  msgid "BIC: %s"
222
  msgstr "BIC: %s"
223
 
224
  #. translators: Placeholder 1: Payment reference e.g. RF49-0000-4716-6216
225
  #. (SEPA) or +++513/7587/59959+++ (Belgium)
226
- #: includes/mollie/wc/gateway/banktransfer.php:165
227
  msgid "Payment reference: %s"
228
  msgstr "Betalingskenmerk: %s"
229
 
230
  #. translators: Placeholder 1: Payment reference e.g. RF49-0000-4716-6216
231
  #. (SEPA) or +++513/7587/59959+++ (Belgium)
232
- #: includes/mollie/wc/gateway/banktransfer.php:170
233
  msgid "Please provide the payment reference <strong>%s</strong>"
234
- msgstr "Gelieve het betalingskenmerk <strong>%s</strong> op te geven bij de overboeking"
 
 
235
 
236
- #: includes/mollie/wc/gateway/banktransfer.php:183
237
  msgid "The payment will expire on <strong>%s</strong>."
238
  msgstr "De betaling zal op <strong>%s</strong> verlopen."
239
 
240
- #: includes/mollie/wc/gateway/banktransfer.php:190
241
  msgid ""
242
- "The payment will expire on <strong>%s</strong>. Please make sure you transfer the total amount "
243
- "before this date."
244
  msgstr ""
245
- "De betaling zal op <strong>%s</strong> verlopen. Zorg dat u het totale bedrag voor deze datum "
246
- "heeft overgeboekt."
247
 
248
  #: includes/mollie/wc/gateway/belfius.php:30
249
  msgid "Belfius Direct Net"
@@ -286,8 +338,10 @@ msgstr "PayPal"
286
  #. translators: Placeholder 1: PayPal consumer name, placeholder 2: PayPal
287
  #. email, placeholder 3: PayPal transaction ID
288
  #: includes/mollie/wc/gateway/paypal.php:56
289
- msgid "Payment completed by <strong>%s</strong> - %s (PayPal transaction ID: %s)"
290
- msgstr "Betaling afgerond door <strong>%s</strong> - %s (PayPal transactie ID: %s)"
 
 
291
 
292
  #: includes/mollie/wc/gateway/paysafecard.php:17
293
  msgid "paysafecard"
@@ -303,170 +357,174 @@ msgstr "Geen API key ingesteld."
303
 
304
  #: includes/mollie/wc/helper/api.php:39
305
  msgid ""
306
- "Invalid API key. The API key must start with 'live_' or 'test_' and can't further contain any "
307
- "special characters."
308
  msgstr ""
309
- "Ongeldige API key ingesteld. De API key moet beginnen met 'live_’ of 'test_’ en mag verder "
310
- "geen speciale tekens bevatten."
 
 
 
 
311
 
312
- #: includes/mollie/wc/helper/settings.php:109
313
  msgid "Error"
314
  msgstr "Fout"
315
 
316
- #: includes/mollie/wc/helper/settings.php:119
317
  msgid "Mollie status:"
318
  msgstr "Mollie status:"
319
 
320
- #: includes/mollie/wc/helper/settings.php:120
321
  msgid "Connected"
322
  msgstr "Verbonden"
323
 
324
- #: includes/mollie/wc/helper/settings.php:180
325
  msgid "Gateway enabled"
326
  msgstr "Gateway ingeschakeld"
327
 
328
- #: includes/mollie/wc/helper/settings.php:180
329
  msgid "Enabled"
330
  msgstr "Ingeschakeld"
331
 
332
- #: includes/mollie/wc/helper/settings.php:181
333
  msgid "Gateway disabled"
334
  msgstr "Gateway uitgeschakeld"
335
 
336
  #. translators: The surrounding %s's Will be replaced by a link to the Mollie
337
  #. profile
338
- #: includes/mollie/wc/helper/settings.php:192
339
  msgid "The following payment methods are activated in your %sMollie profile%s:"
340
  msgstr "De volgende betaalmethodes zijn ingeschakeld in je %sMollie profiel%s:"
341
 
342
- #: includes/mollie/wc/helper/settings.php:202
343
  msgid "Refresh"
344
  msgstr "Ververs"
345
 
346
- #: includes/mollie/wc/helper/settings.php:226
347
  msgid "Edit"
348
  msgstr "Bewerk"
349
 
350
  #. translators: Default payment description. {order_number} and {order_date}
351
  #. are available tags.
352
- #: includes/mollie/wc/helper/settings.php:257
353
  msgid "Order {order_number}"
354
  msgstr "Bestelling {order_number}"
355
 
356
- #: includes/mollie/wc/helper/settings.php:260
357
  msgid "Log plugin events."
358
  msgstr "Log plugin events."
359
 
360
- #: includes/mollie/wc/helper/settings.php:265
361
  msgid "View logs"
362
  msgstr "Bekijk logboeken"
363
 
364
  #. translators: Placeholder 1: Location of the log files
365
- #: includes/mollie/wc/helper/settings.php:271
366
  msgid "Log files are saved to <code>%s</code>"
367
  msgstr "Logboeken worden opgeslagen in <code>%s</code>"
368
 
369
- #: includes/mollie/wc/helper/settings.php:278 includes/mollie/wc/plugin.php:280
370
  msgid "Mollie settings"
371
  msgstr "Mollie instellingen"
372
 
373
- #: includes/mollie/wc/helper/settings.php:281
374
  msgid ""
375
- "The following options are required to use the plugin and are used by all Mollie payment methods"
376
- msgstr "De volgende instellingen zijn nodig om gebruik te maken van de Mollie plugin."
 
 
377
 
378
- #: includes/mollie/wc/helper/settings.php:285
379
  msgid "Live API key"
380
  msgstr "Live API key"
381
 
382
  #. translators: Placeholder 1: API key mode (live or test). The surrounding
383
  #. %s's Will be replaced by a link to the Mollie profile
384
- #: includes/mollie/wc/helper/settings.php:290 includes/mollie/wc/helper/settings.php:316
 
385
  msgid ""
386
- "The API key is used to connect to Mollie. You can find your <strong>%s</strong> API key in "
387
- "your %sMollie profile%s"
388
  msgstr ""
389
- "De API key wordt gebruikt om verbinding te maken met Mollie. Je kan je <strong>%s</strong> API "
390
- "key vinden in je %sMollie profiel%s"
391
 
392
- #: includes/mollie/wc/helper/settings.php:296
393
  msgid "Live API key should start with live_"
394
  msgstr "Live API key moet beginnen met live_"
395
 
396
- #: includes/mollie/wc/helper/settings.php:304
397
  msgid "Enable test mode"
398
  msgstr "Test modus inschakelen"
399
 
400
- #: includes/mollie/wc/helper/settings.php:307
401
- msgid "Enable test mode if you want to test the plugin without using real payments."
 
402
  msgstr ""
403
- "Schakel de test modus in wanneer u de plugin wilt testen zonder echte betalingen te moeten "
404
- "doen."
405
 
406
- #: includes/mollie/wc/helper/settings.php:311
407
  msgid "Test API key"
408
  msgstr "Test API key"
409
 
410
- #: includes/mollie/wc/helper/settings.php:322
411
  msgid "Test API key should start with test_"
412
  msgstr "Test API key moet beginnen met test_"
413
 
414
  #. translators: Placeholder 1: Default payment description, placeholder 2: list
415
  #. of available tags
416
- #: includes/mollie/wc/helper/settings.php:333
417
  msgid ""
418
- "Payment description send to Mollie. Default <code>%s</code><br/>You can use the following "
419
- "tags: %s"
420
  msgstr ""
421
- "Betaling beschrijving. Standaard <code>%s</code><br/> Je kunt gebruik maken van de volgende "
422
- "tags: %s"
423
 
424
- #: includes/mollie/wc/helper/settings.php:339
425
  msgid "Payment screen language"
426
  msgstr "Taal betaalscherm"
427
 
428
- #: includes/mollie/wc/helper/settings.php:342
429
  msgid "Detect using browser language"
430
  msgstr "Detecteren met behulp van de internet browser taal"
431
 
432
  #. translators: Placeholder 1: Current WordPress locale
433
- #: includes/mollie/wc/helper/settings.php:344
434
  msgid "Send WordPress language (%s)"
435
  msgstr "Stuur de WordPress taal door (%s)"
436
 
437
- #: includes/mollie/wc/helper/settings.php:344
438
- msgid "default"
439
- msgstr "standaard"
440
-
441
- #: includes/mollie/wc/helper/settings.php:345
442
  msgid "Dutch"
443
  msgstr "Nederlands"
444
 
445
- #: includes/mollie/wc/helper/settings.php:346
446
  msgid "Flemish (Belgium)"
447
  msgstr "Vlaams (België)"
448
 
449
- #: includes/mollie/wc/helper/settings.php:347
450
  msgid "English"
451
  msgstr "Engels"
452
 
453
- #: includes/mollie/wc/helper/settings.php:348
454
  msgid "German"
455
  msgstr "Duits"
456
 
457
- #: includes/mollie/wc/helper/settings.php:349
458
  msgid "Spanish"
459
  msgstr "Spaans"
460
 
461
- #: includes/mollie/wc/helper/settings.php:350
462
  msgid "French"
463
  msgstr "Frans"
464
 
465
- #: includes/mollie/wc/helper/settings.php:351
466
  msgid "French (Belgium)"
467
  msgstr "Frans (België)"
468
 
469
- #: includes/mollie/wc/helper/settings.php:357
470
  msgid "Debug Log"
471
  msgstr "Debug Log"
472
 
@@ -474,15 +532,19 @@ msgstr "Debug Log"
474
  #. version, placeholder 3: used WooCommerce version
475
  #: includes/mollie/wc/helper/status.php:53
476
  msgid ""
477
- "The %s plugin requires at least WooCommerce version %s, you are using version %s. Please "
478
- "update your WooCommerce plugin."
479
  msgstr ""
480
- "De %s plugin heeft minimaal WooCommerce versie %s nodig, jij gebruikt versie %s. Update de "
481
- "WooCommerce plugin."
482
 
483
  #: includes/mollie/wc/helper/status.php:64
484
- msgid "Mollie API client not installed. Please make sure the plugin is installed correctly."
485
- msgstr "Mollie API client niet geïnstalleerd. Zorg er voor dat de plugin juist is geïnstalleerd."
 
 
 
 
486
 
487
  #. translators: Placeholder 1: Required PHP version, placeholder 2: current PHP
488
  #. version
@@ -492,28 +554,28 @@ msgstr "De API client heeft PHP versie >= %s nodig, jij gebruikt versie %s."
492
 
493
  #: includes/mollie/wc/helper/status.php:89
494
  msgid ""
495
- "The Mollie API client requires the PHP extension JSON to be enabled. Please enable the 'json' "
496
- "extension in your PHP configuration."
497
  msgstr ""
498
- "De Mollie API client heeft de PHP extensie JSON nodig om te werken. Schakel de PHP extensie "
499
- "'json' in."
500
 
501
  #: includes/mollie/wc/helper/status.php:93
502
  msgid ""
503
- "The Mollie API client requires the PHP extension cURL to be enabled. Please enable the 'curl' "
504
- "extension in your PHP configuration."
505
  msgstr ""
506
- "De Mollie API client heeft de PHP extensie cURL nodig om te werken. Schakel de PHP extensie "
507
- "‘curl’ in."
508
 
509
  #. translators: Placeholder 1: The required cURL function names
510
  #: includes/mollie/wc/helper/status.php:99
511
  msgid ""
512
- "The Mollie API client requires the following PHP cURL functions to be available: %s. Please "
513
- "make sure all of these functions are available."
514
  msgstr ""
515
- "De Mollie API client heeft de volgende PHP cURL functies nodig: %s. Zorg dat al deze functies "
516
- "beschikbaar zijn."
517
 
518
  #: includes/mollie/wc/plugin.php:287
519
  msgid "Logs"
@@ -537,11 +599,11 @@ msgstr "https://github.com/mollie/WooCommerce"
537
 
538
  #. Description of the plugin/theme
539
  msgid ""
540
- "Accept payments in WooCommerce with Mollie iDEAL, Credit Card, Bancontact/Mister Cash, Bank "
541
- "Transfer, PayPal, Bitcoin, paysafecard and SOFORT Banking"
542
  msgstr ""
543
- "Accepteer betalingen in WooCommerce met Mollie iDEAL, Creditcard, Bancontact/Mister Cash, "
544
- "Overboeking, PayPal, Bitcoin, paysafecard en SOFORT Banking"
545
 
546
  #. Author of the plugin/theme
547
  msgid "Mollie"
@@ -552,21 +614,21 @@ msgid "https://www.mollie.com"
552
  msgstr "https://www.mollie.com"
553
 
554
  #~ msgid ""
555
- #~ "This payment method is not supported by this plugin. Please check if there is an update "
556
- #~ "available."
557
  #~ msgstr ""
558
- #~ "Deze betaalmethode wordt niet ondersteunt door deze plugin. Controleer of er een update "
559
- #~ "beschikbaar is voor deze plugin."
560
 
561
  #~ msgid "Not supported"
562
  #~ msgstr "Niet ondersteund"
563
 
564
  #~ msgid ""
565
- #~ "No active Mollie payment methods found. Please check your Mollie profile which payment "
566
- #~ "methods are activated."
567
  #~ msgstr ""
568
- #~ "Geen actieve Mollie betaalmethodes gevonden. Controleer in je Mollie profiel welke "
569
- #~ "betaalmethodes zijn geactiveerd."
570
 
571
  #~ msgid "Mollie payments for WooCommerce"
572
  #~ msgstr "Mollie payments for WooCommerce"
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Mollie Payments for WooCommerce 2.0\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mollie-payments-"
7
+ "for-woocommerce\n"
8
+ "POT-Creation-Date: 2015-12-01 11:32+0100\n"
9
+ "PO-Revision-Date: 2015-12-01 11:43+0100\n"
10
  "Last-Translator: Lennard van Gunst <lennard@mollie.com>\n"
11
  "Language-Team: Mollie <info@mollie.nl>\n"
12
  "Language: nl\n"
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
+ "X-Generator: Poedit 1.8.6\n"
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
  "X-Poedit-Basepath: ../..\n"
19
  "X-Poedit-SearchPath-0: .\n"
20
 
21
+ #: includes/mollie/wc/gateway/abstract.php:83
22
  msgid "Enable/Disable"
23
  msgstr "In-/uitschakelen"
24
 
25
+ #: includes/mollie/wc/gateway/abstract.php:85
26
  msgid "Enable %s"
27
  msgstr "%s inschakelen"
28
 
29
+ #: includes/mollie/wc/gateway/abstract.php:89
30
  msgid "Title"
31
  msgstr "Titel"
32
 
33
+ #: includes/mollie/wc/gateway/abstract.php:91
34
+ msgid ""
35
+ "This controls the title which the user sees during checkout. Default <code>"
36
+ "%s</code>"
37
+ msgstr ""
38
+ "De titel welke de gebruiker ziet in de winkelwagen. Standaard <code>%s</code>"
39
 
40
+ #: includes/mollie/wc/gateway/abstract.php:96
41
  msgid "Display logo"
42
  msgstr "Logo weergeven"
43
 
44
+ #: includes/mollie/wc/gateway/abstract.php:98
45
  msgid "Display logo on checkout page. Default <code>enabled</code>"
46
  msgstr "Logo weergeven in de winkelwagen. Standaard <code>ingeschakeld</code>"
47
 
48
+ #: includes/mollie/wc/gateway/abstract.php:102
49
+ #: includes/mollie/wc/helper/settings.php:340
50
  msgid "Description"
51
  msgstr "Omschrijving"
52
 
53
+ #: includes/mollie/wc/gateway/abstract.php:104
54
+ msgid ""
55
+ "Payment method description that the customer will see on your checkout. "
56
+ "Default <code>%s</code>"
57
+ msgstr ""
58
+ "Betaalmethode omschrijving is zichtbaar in de winkelwagen. Standaard <code>"
59
+ "%s</code>"
60
+
61
+ #: includes/mollie/wc/gateway/abstract.php:113
62
+ msgid "Initial order status"
63
+ msgstr "Standaard bestelstatus"
64
+
65
+ #: includes/mollie/wc/gateway/abstract.php:116
66
+ #: includes/mollie/wc/helper/settings.php:354
67
+ msgid "default"
68
+ msgstr "standaard"
69
+
70
+ #. translators: Placeholder 1: Default order status, placeholder 2: Link to
71
+ #. 'Hold Stock' setting
72
+ #: includes/mollie/wc/gateway/abstract.php:122
73
  msgid ""
74
+ "Some payment methods take longer than a few hours to complete. The initial "
75
+ "order state is then set to '%s'. This ensures the order is not cancelled "
76
+ "when the setting %s is used."
77
+ msgstr ""
78
+ "Bij sommige betaalmethodes is de betaalstatus pas na een paar dagen bekend. "
79
+ "In dat geval wordt de bestelstatus ingesteld op '%s'. Dit voorkomt dat de "
80
+ "bestelling per ongeluk geannuleerd wordt door de instelling %s."
81
 
82
+ #: includes/mollie/wc/gateway/abstract.php:124
83
+ msgid "Hold Stock (minutes)"
84
+ msgstr ""
85
+
86
+ #: includes/mollie/wc/gateway/abstract.php:153
87
+ #: includes/mollie/wc/gateway/abstract.php:197
88
+ #: includes/mollie/wc/helper/settings.php:197
89
  msgid "Test mode enabled."
90
  msgstr "Test modus ingeschakeld."
91
 
92
+ #: includes/mollie/wc/gateway/abstract.php:174
93
  msgid "Gateway Disabled"
94
  msgstr "Gateway uitgeschakeld"
95
 
96
  #. translators: The surrounding %s's Will be replaced by a link to the global
97
  #. setting page
98
+ #: includes/mollie/wc/gateway/abstract.php:199
99
  msgid "No API key provided. Please %sset you Mollie API key%s first."
100
  msgstr "Geen API key ingesteld. %sStel een API key in%s."
101
 
102
  #. translators: Placeholder 1: payment method title. The surrounding %s's Will
103
  #. be replaced by a link to the Mollie profile
104
+ #: includes/mollie/wc/gateway/abstract.php:211
105
  msgid ""
106
+ "%s not enabled in your Mollie profile. You can enabled it by editing your "
107
+ "%sMollie profile%s."
108
  msgstr ""
109
+ "%s is niet ingeschakeld in je Mollie profiel. Je kunt de betaalmethode "
110
+ "inschakelen in je %sMollie profiel%s."
111
 
112
  #. translators: Placeholder 1: WooCommerce currency, placeholder 2: Supported
113
  #. Mollie currencies
114
+ #: includes/mollie/wc/gateway/abstract.php:224
115
  msgid "Shop currency %s not supported by Mollie. Mollie only supports: %s."
116
+ msgstr ""
117
+ "Winkel valuta %s wordt niet door Mollie ondersteund. Mollie ondersteunt "
118
+ "alleen: %s."
119
 
120
+ #: includes/mollie/wc/gateway/abstract.php:291
121
  msgid "Could not load order %s"
122
  msgstr "Kan bestelling %s niet laden"
123
 
124
+ #: includes/mollie/wc/gateway/abstract.php:367
125
  msgid "Awaiting payment confirmation."
126
  msgstr "In afwachting van betaling bevestiging."
127
 
128
  #. translators: Placeholder 1: Payment method title, placeholder 2: payment ID
129
+ #: includes/mollie/wc/gateway/abstract.php:372
130
  msgid "%s payment started (%s)."
131
  msgstr "%s betaling gestart (%s)."
132
 
133
+ #: includes/mollie/wc/gateway/abstract.php:374
134
+ #: includes/mollie/wc/gateway/abstract.php:539
135
+ #: includes/mollie/wc/gateway/abstract.php:570
136
+ #: includes/mollie/wc/gateway/abstract.php:595
137
+ #: includes/mollie/wc/gateway/abstract.php:614
138
  msgid "test mode"
139
  msgstr "test modus"
140
 
141
  #. translators: Placeholder 1: Payment method title
142
+ #: includes/mollie/wc/gateway/abstract.php:392
143
  msgid "Could not create %s payment."
144
  msgstr "Kon geen %s betaling aanmaken."
145
 
146
  #. translators: Placeholder 1: payment method title, placeholder 2: payment
147
  #. status, placeholder 3: payment ID
148
+ #: includes/mollie/wc/gateway/abstract.php:536
149
  msgid "%s payment %s (%s)."
150
  msgstr "%s betaling %s (%s)."
151
 
152
  #. translators: Placeholder 1: payment method title, placeholder 2: payment ID
153
+ #: includes/mollie/wc/gateway/abstract.php:568
154
  msgid "Order completed using %s payment (%s)."
155
  msgstr "Bestelling afgerond met %s betaling (%s)."
156
 
157
  #. translators: Placeholder 1: payment method title, placeholder 2: payment ID
158
+ #: includes/mollie/wc/gateway/abstract.php:593
159
  msgid "%s payment cancelled (%s)."
160
  msgstr "%s betaling geannuleerd (%s)."
161
 
162
  #. translators: Placeholder 1: payment method title, placeholder 2: payment ID
163
+ #: includes/mollie/wc/gateway/abstract.php:612
164
  msgid "%s payment expired (%s)."
165
  msgstr "%s betaling verlopen (%s)."
166
 
167
+ #: includes/mollie/wc/gateway/abstract.php:628
168
  msgid ""
169
+ "You have cancelled your payment. Please complete your order with a different "
170
+ "payment method."
171
  msgstr ""
172
+ "Je hebt de betaling geannuleerd. U kunt de bestelling afronden met een "
173
+ "andere betaalmethode."
174
 
175
  #. translators: Placeholder 1: currency, placeholder 2: refunded amount,
176
  #. placeholder 3: optional refund reason, placeholder 4: payment ID,
177
  #. placeholder 5: refund ID
178
+ #: includes/mollie/wc/gateway/abstract.php:702
179
  msgid "Refunded %s%s (reason: %s) - Payment ID: %s, Refund: %s"
180
  msgstr "Terugstorting %s%s (reden: %s) - Payment ID: %s, Refund: %s"
181
 
182
+ #: includes/mollie/wc/gateway/abstract.php:771
183
  msgid "Payment"
184
  msgstr "Betaling"
185
 
186
+ #: includes/mollie/wc/gateway/abstract.php:792
187
  msgid "We have not received a definite payment status."
188
  msgstr "We hebben nog geen definitieve status van de betaling ontvangen."
189
 
190
+ #: includes/mollie/wc/gateway/abstract.php:797
191
  msgid ""
192
+ "We have not received a definite payment status. You will receive an email as "
193
+ "soon as we receive a confirmation of the bank/merchant."
194
  msgstr ""
195
+ "We hebben nog geen definitieve status van de betaling ontvangen. U ontvangt "
196
+ "een e-mail zodra wij een bevestiging van de bank ontvangen."
197
 
198
  #. translators: Placeholder 1: payment method
199
+ #: includes/mollie/wc/gateway/abstract.php:804
 
200
  msgid "Payment completed with <strong>%s</strong>"
201
  msgstr "Betaling afgerond met <strong>%s</strong>"
202
 
205
  msgstr "Verloopdatum"
206
 
207
  #: includes/mollie/wc/gateway/banktransfer.php:34
208
+ msgid ""
209
+ "Number of days after the payment will expire. Default <code>%d</code> days"
210
+ msgstr ""
211
+ "Aantal dagen waarna de betaling zal verlopen. Standaard <code>%d</code> dagen"
212
 
213
  #: includes/mollie/wc/gateway/banktransfer.php:43
214
  msgid "Mail payment instructions"
217
  #. translators: Placeholder 1: enabled or disabled
218
  #: includes/mollie/wc/gateway/banktransfer.php:45
219
  msgid ""
220
+ "Should Mollie automatically mail the payment instructions to the customer? "
221
+ "Default <code>%s</code>"
222
  msgstr ""
223
+ "Laat Mollie automatisch de betaalinstructies mailen naar de klant. Standaard "
224
+ "<code>%s</code>"
225
 
226
+ #: includes/mollie/wc/gateway/banktransfer.php:45
227
+ #: includes/mollie/wc/helper/settings.php:191
228
  msgid "Disabled"
229
  msgstr "Uitgeschakeld"
230
 
231
  #: includes/mollie/wc/gateway/banktransfer.php:48
232
  msgid ""
233
+ "If you disable this option the customer still has an option to send the "
234
+ "payment instructions to an email address on the Mollie payment screen."
235
  msgstr ""
236
+ "Als je deze instelling uitschakelt kan de klant op het Mollie betaalscherm "
237
+ "er zelf nog voor kiezen om de betaalinstructies te versturen naar een e-"
238
+ "mailadres."
239
 
240
  #: includes/mollie/wc/gateway/banktransfer.php:93
241
  msgid "Bank Transfer"
243
 
244
  #. translators: Placeholder 1: consumer name, placeholder 2: consumer IBAN,
245
  #. placeholder 3: consumer BIC
246
+ #: includes/mollie/wc/gateway/banktransfer.php:136
247
+ #: includes/mollie/wc/gateway/directdebit.php:51
248
+ #: includes/mollie/wc/gateway/ideal.php:86
249
+ #: includes/mollie/wc/gateway/sofort.php:56
250
  msgid "Payment completed by <strong>%s</strong> (IBAN: %s, BIC: %s)"
251
  msgstr "Betaling afgerond door <strong>%s</strong> (IBAN: %s, BIC: %s)"
252
 
253
+ #: includes/mollie/wc/gateway/banktransfer.php:146
254
  msgid ""
255
+ "Please complete your payment by transferring the total amount to the "
256
+ "following bank account:"
257
+ msgstr ""
258
+ "Rond de betaling af door het totale bedrag over te boeken naar de volgende "
259
+ "rekening:"
260
 
261
  #. translators: Placeholder 1: 'Stichting Mollie Payments'
262
+ #: includes/mollie/wc/gateway/banktransfer.php:150
263
  msgid "Beneficiary: %s"
264
  msgstr "Begunstigde: %s"
265
 
266
+ #: includes/mollie/wc/gateway/banktransfer.php:151
267
  msgid "IBAN: <strong>%s</strong>"
268
  msgstr "IBAN: <strong>%s</strong>"
269
 
270
+ #: includes/mollie/wc/gateway/banktransfer.php:152
271
  msgid "BIC: %s"
272
  msgstr "BIC: %s"
273
 
274
  #. translators: Placeholder 1: Payment reference e.g. RF49-0000-4716-6216
275
  #. (SEPA) or +++513/7587/59959+++ (Belgium)
276
+ #: includes/mollie/wc/gateway/banktransfer.php:157
277
  msgid "Payment reference: %s"
278
  msgstr "Betalingskenmerk: %s"
279
 
280
  #. translators: Placeholder 1: Payment reference e.g. RF49-0000-4716-6216
281
  #. (SEPA) or +++513/7587/59959+++ (Belgium)
282
+ #: includes/mollie/wc/gateway/banktransfer.php:162
283
  msgid "Please provide the payment reference <strong>%s</strong>"
284
+ msgstr ""
285
+ "Gelieve het betalingskenmerk <strong>%s</strong> op te geven bij de "
286
+ "overboeking"
287
 
288
+ #: includes/mollie/wc/gateway/banktransfer.php:175
289
  msgid "The payment will expire on <strong>%s</strong>."
290
  msgstr "De betaling zal op <strong>%s</strong> verlopen."
291
 
292
+ #: includes/mollie/wc/gateway/banktransfer.php:182
293
  msgid ""
294
+ "The payment will expire on <strong>%s</strong>. Please make sure you "
295
+ "transfer the total amount before this date."
296
  msgstr ""
297
+ "De betaling zal op <strong>%s</strong> verlopen. Zorg dat u het totale "
298
+ "bedrag voor deze datum heeft overgeboekt."
299
 
300
  #: includes/mollie/wc/gateway/belfius.php:30
301
  msgid "Belfius Direct Net"
338
  #. translators: Placeholder 1: PayPal consumer name, placeholder 2: PayPal
339
  #. email, placeholder 3: PayPal transaction ID
340
  #: includes/mollie/wc/gateway/paypal.php:56
341
+ msgid ""
342
+ "Payment completed by <strong>%s</strong> - %s (PayPal transaction ID: %s)"
343
+ msgstr ""
344
+ "Betaling afgerond door <strong>%s</strong> - %s (PayPal transactie ID: %s)"
345
 
346
  #: includes/mollie/wc/gateway/paysafecard.php:17
347
  msgid "paysafecard"
357
 
358
  #: includes/mollie/wc/helper/api.php:39
359
  msgid ""
360
+ "Invalid API key. The API key must start with 'live_' or 'test_' and can't "
361
+ "further contain any special characters."
362
  msgstr ""
363
+ "Ongeldige API key ingesteld. De API key moet beginnen met 'live_’ of 'test_’ "
364
+ "en mag verder geen speciale tekens bevatten."
365
+
366
+ #: includes/mollie/wc/helper/data.php:501
367
+ msgid "Item #%s stock incremented from %s to %s."
368
+ msgstr "Artikel #%s voorraad verhoogd van %s naar %s."
369
 
370
+ #: includes/mollie/wc/helper/settings.php:119
371
  msgid "Error"
372
  msgstr "Fout"
373
 
374
+ #: includes/mollie/wc/helper/settings.php:129
375
  msgid "Mollie status:"
376
  msgstr "Mollie status:"
377
 
378
+ #: includes/mollie/wc/helper/settings.php:130
379
  msgid "Connected"
380
  msgstr "Verbonden"
381
 
382
+ #: includes/mollie/wc/helper/settings.php:190
383
  msgid "Gateway enabled"
384
  msgstr "Gateway ingeschakeld"
385
 
386
+ #: includes/mollie/wc/helper/settings.php:190
387
  msgid "Enabled"
388
  msgstr "Ingeschakeld"
389
 
390
+ #: includes/mollie/wc/helper/settings.php:191
391
  msgid "Gateway disabled"
392
  msgstr "Gateway uitgeschakeld"
393
 
394
  #. translators: The surrounding %s's Will be replaced by a link to the Mollie
395
  #. profile
396
+ #: includes/mollie/wc/helper/settings.php:202
397
  msgid "The following payment methods are activated in your %sMollie profile%s:"
398
  msgstr "De volgende betaalmethodes zijn ingeschakeld in je %sMollie profiel%s:"
399
 
400
+ #: includes/mollie/wc/helper/settings.php:212
401
  msgid "Refresh"
402
  msgstr "Ververs"
403
 
404
+ #: includes/mollie/wc/helper/settings.php:236
405
  msgid "Edit"
406
  msgstr "Bewerk"
407
 
408
  #. translators: Default payment description. {order_number} and {order_date}
409
  #. are available tags.
410
+ #: includes/mollie/wc/helper/settings.php:267
411
  msgid "Order {order_number}"
412
  msgstr "Bestelling {order_number}"
413
 
414
+ #: includes/mollie/wc/helper/settings.php:270
415
  msgid "Log plugin events."
416
  msgstr "Log plugin events."
417
 
418
+ #: includes/mollie/wc/helper/settings.php:275
419
  msgid "View logs"
420
  msgstr "Bekijk logboeken"
421
 
422
  #. translators: Placeholder 1: Location of the log files
423
+ #: includes/mollie/wc/helper/settings.php:281
424
  msgid "Log files are saved to <code>%s</code>"
425
  msgstr "Logboeken worden opgeslagen in <code>%s</code>"
426
 
427
+ #: includes/mollie/wc/helper/settings.php:288 includes/mollie/wc/plugin.php:280
428
  msgid "Mollie settings"
429
  msgstr "Mollie instellingen"
430
 
431
+ #: includes/mollie/wc/helper/settings.php:291
432
  msgid ""
433
+ "The following options are required to use the plugin and are used by all "
434
+ "Mollie payment methods"
435
+ msgstr ""
436
+ "De volgende instellingen zijn nodig om gebruik te maken van de Mollie plugin."
437
 
438
+ #: includes/mollie/wc/helper/settings.php:295
439
  msgid "Live API key"
440
  msgstr "Live API key"
441
 
442
  #. translators: Placeholder 1: API key mode (live or test). The surrounding
443
  #. %s's Will be replaced by a link to the Mollie profile
444
+ #: includes/mollie/wc/helper/settings.php:300
445
+ #: includes/mollie/wc/helper/settings.php:326
446
  msgid ""
447
+ "The API key is used to connect to Mollie. You can find your <strong>%s</"
448
+ "strong> API key in your %sMollie profile%s"
449
  msgstr ""
450
+ "De API key wordt gebruikt om verbinding te maken met Mollie. Je kan je "
451
+ "<strong>%s</strong> API key vinden in je %sMollie profiel%s"
452
 
453
+ #: includes/mollie/wc/helper/settings.php:306
454
  msgid "Live API key should start with live_"
455
  msgstr "Live API key moet beginnen met live_"
456
 
457
+ #: includes/mollie/wc/helper/settings.php:314
458
  msgid "Enable test mode"
459
  msgstr "Test modus inschakelen"
460
 
461
+ #: includes/mollie/wc/helper/settings.php:317
462
+ msgid ""
463
+ "Enable test mode if you want to test the plugin without using real payments."
464
  msgstr ""
465
+ "Schakel de test modus in wanneer u de plugin wilt testen zonder echte "
466
+ "betalingen te moeten doen."
467
 
468
+ #: includes/mollie/wc/helper/settings.php:321
469
  msgid "Test API key"
470
  msgstr "Test API key"
471
 
472
+ #: includes/mollie/wc/helper/settings.php:332
473
  msgid "Test API key should start with test_"
474
  msgstr "Test API key moet beginnen met test_"
475
 
476
  #. translators: Placeholder 1: Default payment description, placeholder 2: list
477
  #. of available tags
478
+ #: includes/mollie/wc/helper/settings.php:343
479
  msgid ""
480
+ "Payment description send to Mollie. Default <code>%s</code><br/>You can use "
481
+ "the following tags: %s"
482
  msgstr ""
483
+ "Betaling beschrijving. Standaard <code>%s</code><br/> Je kunt gebruik maken "
484
+ "van de volgende tags: %s"
485
 
486
+ #: includes/mollie/wc/helper/settings.php:349
487
  msgid "Payment screen language"
488
  msgstr "Taal betaalscherm"
489
 
490
+ #: includes/mollie/wc/helper/settings.php:352
491
  msgid "Detect using browser language"
492
  msgstr "Detecteren met behulp van de internet browser taal"
493
 
494
  #. translators: Placeholder 1: Current WordPress locale
495
+ #: includes/mollie/wc/helper/settings.php:354
496
  msgid "Send WordPress language (%s)"
497
  msgstr "Stuur de WordPress taal door (%s)"
498
 
499
+ #: includes/mollie/wc/helper/settings.php:355
 
 
 
 
500
  msgid "Dutch"
501
  msgstr "Nederlands"
502
 
503
+ #: includes/mollie/wc/helper/settings.php:356
504
  msgid "Flemish (Belgium)"
505
  msgstr "Vlaams (België)"
506
 
507
+ #: includes/mollie/wc/helper/settings.php:357
508
  msgid "English"
509
  msgstr "Engels"
510
 
511
+ #: includes/mollie/wc/helper/settings.php:358
512
  msgid "German"
513
  msgstr "Duits"
514
 
515
+ #: includes/mollie/wc/helper/settings.php:359
516
  msgid "Spanish"
517
  msgstr "Spaans"
518
 
519
+ #: includes/mollie/wc/helper/settings.php:360
520
  msgid "French"
521
  msgstr "Frans"
522
 
523
+ #: includes/mollie/wc/helper/settings.php:361
524
  msgid "French (Belgium)"
525
  msgstr "Frans (België)"
526
 
527
+ #: includes/mollie/wc/helper/settings.php:367
528
  msgid "Debug Log"
529
  msgstr "Debug Log"
530
 
532
  #. version, placeholder 3: used WooCommerce version
533
  #: includes/mollie/wc/helper/status.php:53
534
  msgid ""
535
+ "The %s plugin requires at least WooCommerce version %s, you are using "
536
+ "version %s. Please update your WooCommerce plugin."
537
  msgstr ""
538
+ "De %s plugin heeft minimaal WooCommerce versie %s nodig, jij gebruikt versie "
539
+ "%s. Update de WooCommerce plugin."
540
 
541
  #: includes/mollie/wc/helper/status.php:64
542
+ msgid ""
543
+ "Mollie API client not installed. Please make sure the plugin is installed "
544
+ "correctly."
545
+ msgstr ""
546
+ "Mollie API client niet geïnstalleerd. Zorg er voor dat de plugin juist is "
547
+ "geïnstalleerd."
548
 
549
  #. translators: Placeholder 1: Required PHP version, placeholder 2: current PHP
550
  #. version
554
 
555
  #: includes/mollie/wc/helper/status.php:89
556
  msgid ""
557
+ "The Mollie API client requires the PHP extension JSON to be enabled. Please "
558
+ "enable the 'json' extension in your PHP configuration."
559
  msgstr ""
560
+ "De Mollie API client heeft de PHP extensie JSON nodig om te werken. Schakel "
561
+ "de PHP extensie 'json' in."
562
 
563
  #: includes/mollie/wc/helper/status.php:93
564
  msgid ""
565
+ "The Mollie API client requires the PHP extension cURL to be enabled. Please "
566
+ "enable the 'curl' extension in your PHP configuration."
567
  msgstr ""
568
+ "De Mollie API client heeft de PHP extensie cURL nodig om te werken. Schakel "
569
+ "de PHP extensie ‘curl’ in."
570
 
571
  #. translators: Placeholder 1: The required cURL function names
572
  #: includes/mollie/wc/helper/status.php:99
573
  msgid ""
574
+ "The Mollie API client requires the following PHP cURL functions to be "
575
+ "available: %s. Please make sure all of these functions are available."
576
  msgstr ""
577
+ "De Mollie API client heeft de volgende PHP cURL functies nodig: %s. Zorg dat "
578
+ "al deze functies beschikbaar zijn."
579
 
580
  #: includes/mollie/wc/plugin.php:287
581
  msgid "Logs"
599
 
600
  #. Description of the plugin/theme
601
  msgid ""
602
+ "Accept payments in WooCommerce with Mollie iDEAL, Credit Card, Bancontact/"
603
+ "Mister Cash, Bank Transfer, PayPal, Bitcoin, paysafecard and SOFORT Banking"
604
  msgstr ""
605
+ "Accepteer betalingen in WooCommerce met Mollie iDEAL, Creditcard, Bancontact/"
606
+ "Mister Cash, Overboeking, PayPal, Bitcoin, paysafecard en SOFORT Banking"
607
 
608
  #. Author of the plugin/theme
609
  msgid "Mollie"
614
  msgstr "https://www.mollie.com"
615
 
616
  #~ msgid ""
617
+ #~ "This payment method is not supported by this plugin. Please check if "
618
+ #~ "there is an update available."
619
  #~ msgstr ""
620
+ #~ "Deze betaalmethode wordt niet ondersteunt door deze plugin. Controleer of "
621
+ #~ "er een update beschikbaar is voor deze plugin."
622
 
623
  #~ msgid "Not supported"
624
  #~ msgstr "Niet ondersteund"
625
 
626
  #~ msgid ""
627
+ #~ "No active Mollie payment methods found. Please check your Mollie profile "
628
+ #~ "which payment methods are activated."
629
  #~ msgstr ""
630
+ #~ "Geen actieve Mollie betaalmethodes gevonden. Controleer in je Mollie "
631
+ #~ "profiel welke betaalmethodes zijn geactiveerd."
632
 
633
  #~ msgid "Mollie payments for WooCommerce"
634
  #~ msgstr "Mollie payments for WooCommerce"
i18n/languages/mollie-payments-for-woocommerce.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the same license as the Mollie Payments for WooCommerce package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mollie Payments for WooCommerce 2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mollie-payments-"
7
  "for-woocommerce\n"
8
- "POT-Creation-Date: 2015-10-01 14:42:30+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -13,62 +13,84 @@ msgstr ""
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
 
16
- #: includes/mollie/wc/gateway/abstract.php:60
17
  msgid "Enable/Disable"
18
  msgstr ""
19
 
20
- #: includes/mollie/wc/gateway/abstract.php:62
21
  msgid "Enable %s"
22
  msgstr ""
23
 
24
- #: includes/mollie/wc/gateway/abstract.php:66
25
  msgid "Title"
26
  msgstr ""
27
 
28
- #: includes/mollie/wc/gateway/abstract.php:68
29
  msgid ""
30
  "This controls the title which the user sees during checkout. Default <code>"
31
  "%s</code>"
32
  msgstr ""
33
 
34
- #: includes/mollie/wc/gateway/abstract.php:73
35
  msgid "Display logo"
36
  msgstr ""
37
 
38
- #: includes/mollie/wc/gateway/abstract.php:75
39
  msgid "Display logo on checkout page. Default <code>enabled</code>"
40
  msgstr ""
41
 
42
- #: includes/mollie/wc/gateway/abstract.php:79
43
- #: includes/mollie/wc/helper/settings.php:330
44
  msgid "Description"
45
  msgstr ""
46
 
47
- #: includes/mollie/wc/gateway/abstract.php:81
48
  msgid ""
49
  "Payment method description that the customer will see on your checkout. "
50
  "Default <code>%s</code>"
51
  msgstr ""
52
 
53
- #: includes/mollie/wc/gateway/abstract.php:111
54
- #: includes/mollie/wc/gateway/abstract.php:146
55
- #: includes/mollie/wc/helper/settings.php:187
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  msgid "Test mode enabled."
57
  msgstr ""
58
 
59
- #: includes/mollie/wc/gateway/abstract.php:123
60
  msgid "Gateway Disabled"
61
  msgstr ""
62
 
63
  #. translators: The surrounding %s's Will be replaced by a link to the global
64
  #. setting page
65
- #: includes/mollie/wc/gateway/abstract.php:148
66
  msgid "No API key provided. Please %sset you Mollie API key%s first."
67
  msgstr ""
68
 
69
  #. translators: Placeholder 1: payment method title. The surrounding %s's Will
70
  #. be replaced by a link to the Mollie profile
71
- #: includes/mollie/wc/gateway/abstract.php:160
72
  msgid ""
73
  "%s not enabled in your Mollie profile. You can enabled it by editing your "
74
  "%sMollie profile%s."
@@ -76,58 +98,58 @@ msgstr ""
76
 
77
  #. translators: Placeholder 1: WooCommerce currency, placeholder 2: Supported
78
  #. Mollie currencies
79
- #: includes/mollie/wc/gateway/abstract.php:173
80
  msgid "Shop currency %s not supported by Mollie. Mollie only supports: %s."
81
  msgstr ""
82
 
83
- #: includes/mollie/wc/gateway/abstract.php:196
84
  msgid "Could not load order %s"
85
  msgstr ""
86
 
87
- #: includes/mollie/wc/gateway/abstract.php:213
88
  msgid "Awaiting payment confirmation."
89
  msgstr ""
90
 
91
  #. translators: Placeholder 1: Payment method title, placeholder 2: payment ID
92
- #: includes/mollie/wc/gateway/abstract.php:276
93
  msgid "%s payment started (%s)."
94
  msgstr ""
95
 
96
- #: includes/mollie/wc/gateway/abstract.php:278
97
- #: includes/mollie/wc/gateway/abstract.php:401
98
- #: includes/mollie/wc/gateway/abstract.php:432
99
- #: includes/mollie/wc/gateway/abstract.php:457
100
- #: includes/mollie/wc/gateway/abstract.php:476
101
  msgid "test mode"
102
  msgstr ""
103
 
104
  #. translators: Placeholder 1: Payment method title
105
- #: includes/mollie/wc/gateway/abstract.php:291
106
  msgid "Could not create %s payment."
107
  msgstr ""
108
 
109
  #. translators: Placeholder 1: payment method title, placeholder 2: payment
110
  #. status, placeholder 3: payment ID
111
- #: includes/mollie/wc/gateway/abstract.php:398
112
  msgid "%s payment %s (%s)."
113
  msgstr ""
114
 
115
  #. translators: Placeholder 1: payment method title, placeholder 2: payment ID
116
- #: includes/mollie/wc/gateway/abstract.php:430
117
  msgid "Order completed using %s payment (%s)."
118
  msgstr ""
119
 
120
  #. translators: Placeholder 1: payment method title, placeholder 2: payment ID
121
- #: includes/mollie/wc/gateway/abstract.php:455
122
  msgid "%s payment cancelled (%s)."
123
  msgstr ""
124
 
125
  #. translators: Placeholder 1: payment method title, placeholder 2: payment ID
126
- #: includes/mollie/wc/gateway/abstract.php:474
127
  msgid "%s payment expired (%s)."
128
  msgstr ""
129
 
130
- #: includes/mollie/wc/gateway/abstract.php:490
131
  msgid ""
132
  "You have cancelled your payment. Please complete your order with a different "
133
  "payment method."
@@ -136,26 +158,26 @@ msgstr ""
136
  #. translators: Placeholder 1: currency, placeholder 2: refunded amount,
137
  #. placeholder 3: optional refund reason, placeholder 4: payment ID,
138
  #. placeholder 5: refund ID
139
- #: includes/mollie/wc/gateway/abstract.php:550
140
  msgid "Refunded %s%s (reason: %s) - Payment ID: %s, Refund: %s"
141
  msgstr ""
142
 
143
- #: includes/mollie/wc/gateway/abstract.php:619
144
  msgid "Payment"
145
  msgstr ""
146
 
147
- #: includes/mollie/wc/gateway/abstract.php:640
148
  msgid "We have not received a definite payment status."
149
  msgstr ""
150
 
151
- #: includes/mollie/wc/gateway/abstract.php:645
152
  msgid ""
153
  "We have not received a definite payment status. You will receive an email as "
154
  "soon as we receive a confirmation of the bank/merchant."
155
  msgstr ""
156
 
157
  #. translators: Placeholder 1: payment method
158
- #: includes/mollie/wc/gateway/abstract.php:652
159
  msgid "Payment completed with <strong>%s</strong>"
160
  msgstr ""
161
 
@@ -180,7 +202,7 @@ msgid ""
180
  msgstr ""
181
 
182
  #: includes/mollie/wc/gateway/banktransfer.php:45
183
- #: includes/mollie/wc/helper/settings.php:181
184
  msgid "Disabled"
185
  msgstr ""
186
 
@@ -196,49 +218,49 @@ msgstr ""
196
 
197
  #. translators: Placeholder 1: consumer name, placeholder 2: consumer IBAN,
198
  #. placeholder 3: consumer BIC
199
- #: includes/mollie/wc/gateway/banktransfer.php:144
200
- #: includes/mollie/wc/gateway/directdebit.php:41
201
  #: includes/mollie/wc/gateway/ideal.php:86
202
  #: includes/mollie/wc/gateway/sofort.php:56
203
  msgid "Payment completed by <strong>%s</strong> (IBAN: %s, BIC: %s)"
204
  msgstr ""
205
 
206
- #: includes/mollie/wc/gateway/banktransfer.php:154
207
  msgid ""
208
  "Please complete your payment by transferring the total amount to the "
209
  "following bank account:"
210
  msgstr ""
211
 
212
  #. translators: Placeholder 1: 'Stichting Mollie Payments'
213
- #: includes/mollie/wc/gateway/banktransfer.php:158
214
  msgid "Beneficiary: %s"
215
  msgstr ""
216
 
217
- #: includes/mollie/wc/gateway/banktransfer.php:159
218
  msgid "IBAN: <strong>%s</strong>"
219
  msgstr ""
220
 
221
- #: includes/mollie/wc/gateway/banktransfer.php:160
222
  msgid "BIC: %s"
223
  msgstr ""
224
 
225
  #. translators: Placeholder 1: Payment reference e.g. RF49-0000-4716-6216
226
  #. (SEPA) or +++513/7587/59959+++ (Belgium)
227
- #: includes/mollie/wc/gateway/banktransfer.php:165
228
  msgid "Payment reference: %s"
229
  msgstr ""
230
 
231
  #. translators: Placeholder 1: Payment reference e.g. RF49-0000-4716-6216
232
  #. (SEPA) or +++513/7587/59959+++ (Belgium)
233
- #: includes/mollie/wc/gateway/banktransfer.php:170
234
  msgid "Please provide the payment reference <strong>%s</strong>"
235
  msgstr ""
236
 
237
- #: includes/mollie/wc/gateway/banktransfer.php:183
238
  msgid "The payment will expire on <strong>%s</strong>."
239
  msgstr ""
240
 
241
- #: includes/mollie/wc/gateway/banktransfer.php:190
242
  msgid ""
243
  "The payment will expire on <strong>%s</strong>. Please make sure you "
244
  "transfer the total amount before this date."
@@ -307,162 +329,162 @@ msgid ""
307
  "further contain any special characters."
308
  msgstr ""
309
 
310
- #: includes/mollie/wc/helper/settings.php:109
311
- msgid "Error"
312
  msgstr ""
313
 
314
  #: includes/mollie/wc/helper/settings.php:119
 
 
 
 
315
  msgid "Mollie status:"
316
  msgstr ""
317
 
318
- #: includes/mollie/wc/helper/settings.php:120
319
  msgid "Connected"
320
  msgstr ""
321
 
322
- #: includes/mollie/wc/helper/settings.php:180
323
  msgid "Gateway enabled"
324
  msgstr ""
325
 
326
- #: includes/mollie/wc/helper/settings.php:180
327
  msgid "Enabled"
328
  msgstr ""
329
 
330
- #: includes/mollie/wc/helper/settings.php:181
331
  msgid "Gateway disabled"
332
  msgstr ""
333
 
334
  #. translators: The surrounding %s's Will be replaced by a link to the Mollie
335
  #. profile
336
- #: includes/mollie/wc/helper/settings.php:192
337
  msgid "The following payment methods are activated in your %sMollie profile%s:"
338
  msgstr ""
339
 
340
- #: includes/mollie/wc/helper/settings.php:202
341
  msgid "Refresh"
342
  msgstr ""
343
 
344
- #: includes/mollie/wc/helper/settings.php:226
345
  msgid "Edit"
346
  msgstr ""
347
 
348
  #. translators: Default payment description. {order_number} and {order_date}
349
  #. are available tags.
350
- #: includes/mollie/wc/helper/settings.php:257
351
  msgid "Order {order_number}"
352
  msgstr ""
353
 
354
- #: includes/mollie/wc/helper/settings.php:260
355
  msgid "Log plugin events."
356
  msgstr ""
357
 
358
- #: includes/mollie/wc/helper/settings.php:265
359
  msgid "View logs"
360
  msgstr ""
361
 
362
  #. translators: Placeholder 1: Location of the log files
363
- #: includes/mollie/wc/helper/settings.php:271
364
  msgid "Log files are saved to <code>%s</code>"
365
  msgstr ""
366
 
367
- #: includes/mollie/wc/helper/settings.php:278
368
  #: includes/mollie/wc/plugin.php:280
369
  msgid "Mollie settings"
370
  msgstr ""
371
 
372
- #: includes/mollie/wc/helper/settings.php:281
373
  msgid ""
374
  "The following options are required to use the plugin and are used by all "
375
  "Mollie payment methods"
376
  msgstr ""
377
 
378
- #: includes/mollie/wc/helper/settings.php:285
379
  msgid "Live API key"
380
  msgstr ""
381
 
382
  #. translators: Placeholder 1: API key mode (live or test). The surrounding
383
  #. %s's Will be replaced by a link to the Mollie profile
384
- #: includes/mollie/wc/helper/settings.php:290
385
- #: includes/mollie/wc/helper/settings.php:316
386
  msgid ""
387
  "The API key is used to connect to Mollie. You can find your <strong>%s</"
388
  "strong> API key in your %sMollie profile%s"
389
  msgstr ""
390
 
391
- #: includes/mollie/wc/helper/settings.php:296
392
  msgid "Live API key should start with live_"
393
  msgstr ""
394
 
395
- #: includes/mollie/wc/helper/settings.php:304
396
  msgid "Enable test mode"
397
  msgstr ""
398
 
399
- #: includes/mollie/wc/helper/settings.php:307
400
  msgid ""
401
  "Enable test mode if you want to test the plugin without using real payments."
402
  msgstr ""
403
 
404
- #: includes/mollie/wc/helper/settings.php:311
405
  msgid "Test API key"
406
  msgstr ""
407
 
408
- #: includes/mollie/wc/helper/settings.php:322
409
  msgid "Test API key should start with test_"
410
  msgstr ""
411
 
412
  #. translators: Placeholder 1: Default payment description, placeholder 2: list
413
  #. of available tags
414
- #: includes/mollie/wc/helper/settings.php:333
415
  msgid ""
416
  "Payment description send to Mollie. Default <code>%s</code><br/>You can use "
417
  "the following tags: %s"
418
  msgstr ""
419
 
420
- #: includes/mollie/wc/helper/settings.php:339
421
  msgid "Payment screen language"
422
  msgstr ""
423
 
424
- #: includes/mollie/wc/helper/settings.php:342
425
  msgid "Detect using browser language"
426
  msgstr ""
427
 
428
  #. translators: Placeholder 1: Current WordPress locale
429
- #: includes/mollie/wc/helper/settings.php:344
430
  msgid "Send WordPress language (%s)"
431
  msgstr ""
432
 
433
- #: includes/mollie/wc/helper/settings.php:344
434
- msgid "default"
435
- msgstr ""
436
-
437
- #: includes/mollie/wc/helper/settings.php:345
438
  msgid "Dutch"
439
  msgstr ""
440
 
441
- #: includes/mollie/wc/helper/settings.php:346
442
  msgid "Flemish (Belgium)"
443
  msgstr ""
444
 
445
- #: includes/mollie/wc/helper/settings.php:347
446
  msgid "English"
447
  msgstr ""
448
 
449
- #: includes/mollie/wc/helper/settings.php:348
450
  msgid "German"
451
  msgstr ""
452
 
453
- #: includes/mollie/wc/helper/settings.php:349
454
  msgid "Spanish"
455
  msgstr ""
456
 
457
- #: includes/mollie/wc/helper/settings.php:350
458
  msgid "French"
459
  msgstr ""
460
 
461
- #: includes/mollie/wc/helper/settings.php:351
462
  msgid "French (Belgium)"
463
  msgstr ""
464
 
465
- #: includes/mollie/wc/helper/settings.php:357
466
  msgid "Debug Log"
467
  msgstr ""
468
 
2
  # This file is distributed under the same license as the Mollie Payments for WooCommerce package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mollie Payments for WooCommerce 2.0.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mollie-payments-"
7
  "for-woocommerce\n"
8
+ "POT-Creation-Date: 2015-12-01 10:29:23+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
 
16
+ #: includes/mollie/wc/gateway/abstract.php:83
17
  msgid "Enable/Disable"
18
  msgstr ""
19
 
20
+ #: includes/mollie/wc/gateway/abstract.php:85
21
  msgid "Enable %s"
22
  msgstr ""
23
 
24
+ #: includes/mollie/wc/gateway/abstract.php:89
25
  msgid "Title"
26
  msgstr ""
27
 
28
+ #: includes/mollie/wc/gateway/abstract.php:91
29
  msgid ""
30
  "This controls the title which the user sees during checkout. Default <code>"
31
  "%s</code>"
32
  msgstr ""
33
 
34
+ #: includes/mollie/wc/gateway/abstract.php:96
35
  msgid "Display logo"
36
  msgstr ""
37
 
38
+ #: includes/mollie/wc/gateway/abstract.php:98
39
  msgid "Display logo on checkout page. Default <code>enabled</code>"
40
  msgstr ""
41
 
42
+ #: includes/mollie/wc/gateway/abstract.php:102
43
+ #: includes/mollie/wc/helper/settings.php:340
44
  msgid "Description"
45
  msgstr ""
46
 
47
+ #: includes/mollie/wc/gateway/abstract.php:104
48
  msgid ""
49
  "Payment method description that the customer will see on your checkout. "
50
  "Default <code>%s</code>"
51
  msgstr ""
52
 
53
+ #: includes/mollie/wc/gateway/abstract.php:113
54
+ msgid "Initial order status"
55
+ msgstr ""
56
+
57
+ #: includes/mollie/wc/gateway/abstract.php:116
58
+ #: includes/mollie/wc/helper/settings.php:354
59
+ msgid "default"
60
+ msgstr ""
61
+
62
+ #. translators: Placeholder 1: Default order status, placeholder 2: Link to
63
+ #. 'Hold Stock' setting
64
+ #: includes/mollie/wc/gateway/abstract.php:122
65
+ msgid ""
66
+ "Some payment methods take longer than a few hours to complete. The initial "
67
+ "order state is then set to '%s'. This ensures the order is not cancelled "
68
+ "when the setting %s is used."
69
+ msgstr ""
70
+
71
+ #: includes/mollie/wc/gateway/abstract.php:124
72
+ msgid "Hold Stock (minutes)"
73
+ msgstr ""
74
+
75
+ #: includes/mollie/wc/gateway/abstract.php:153
76
+ #: includes/mollie/wc/gateway/abstract.php:197
77
+ #: includes/mollie/wc/helper/settings.php:197
78
  msgid "Test mode enabled."
79
  msgstr ""
80
 
81
+ #: includes/mollie/wc/gateway/abstract.php:174
82
  msgid "Gateway Disabled"
83
  msgstr ""
84
 
85
  #. translators: The surrounding %s's Will be replaced by a link to the global
86
  #. setting page
87
+ #: includes/mollie/wc/gateway/abstract.php:199
88
  msgid "No API key provided. Please %sset you Mollie API key%s first."
89
  msgstr ""
90
 
91
  #. translators: Placeholder 1: payment method title. The surrounding %s's Will
92
  #. be replaced by a link to the Mollie profile
93
+ #: includes/mollie/wc/gateway/abstract.php:211
94
  msgid ""
95
  "%s not enabled in your Mollie profile. You can enabled it by editing your "
96
  "%sMollie profile%s."
98
 
99
  #. translators: Placeholder 1: WooCommerce currency, placeholder 2: Supported
100
  #. Mollie currencies
101
+ #: includes/mollie/wc/gateway/abstract.php:224
102
  msgid "Shop currency %s not supported by Mollie. Mollie only supports: %s."
103
  msgstr ""
104
 
105
+ #: includes/mollie/wc/gateway/abstract.php:291
106
  msgid "Could not load order %s"
107
  msgstr ""
108
 
109
+ #: includes/mollie/wc/gateway/abstract.php:367
110
  msgid "Awaiting payment confirmation."
111
  msgstr ""
112
 
113
  #. translators: Placeholder 1: Payment method title, placeholder 2: payment ID
114
+ #: includes/mollie/wc/gateway/abstract.php:372
115
  msgid "%s payment started (%s)."
116
  msgstr ""
117
 
118
+ #: includes/mollie/wc/gateway/abstract.php:374
119
+ #: includes/mollie/wc/gateway/abstract.php:539
120
+ #: includes/mollie/wc/gateway/abstract.php:570
121
+ #: includes/mollie/wc/gateway/abstract.php:595
122
+ #: includes/mollie/wc/gateway/abstract.php:614
123
  msgid "test mode"
124
  msgstr ""
125
 
126
  #. translators: Placeholder 1: Payment method title
127
+ #: includes/mollie/wc/gateway/abstract.php:392
128
  msgid "Could not create %s payment."
129
  msgstr ""
130
 
131
  #. translators: Placeholder 1: payment method title, placeholder 2: payment
132
  #. status, placeholder 3: payment ID
133
+ #: includes/mollie/wc/gateway/abstract.php:536
134
  msgid "%s payment %s (%s)."
135
  msgstr ""
136
 
137
  #. translators: Placeholder 1: payment method title, placeholder 2: payment ID
138
+ #: includes/mollie/wc/gateway/abstract.php:568
139
  msgid "Order completed using %s payment (%s)."
140
  msgstr ""
141
 
142
  #. translators: Placeholder 1: payment method title, placeholder 2: payment ID
143
+ #: includes/mollie/wc/gateway/abstract.php:593
144
  msgid "%s payment cancelled (%s)."
145
  msgstr ""
146
 
147
  #. translators: Placeholder 1: payment method title, placeholder 2: payment ID
148
+ #: includes/mollie/wc/gateway/abstract.php:612
149
  msgid "%s payment expired (%s)."
150
  msgstr ""
151
 
152
+ #: includes/mollie/wc/gateway/abstract.php:628
153
  msgid ""
154
  "You have cancelled your payment. Please complete your order with a different "
155
  "payment method."
158
  #. translators: Placeholder 1: currency, placeholder 2: refunded amount,
159
  #. placeholder 3: optional refund reason, placeholder 4: payment ID,
160
  #. placeholder 5: refund ID
161
+ #: includes/mollie/wc/gateway/abstract.php:702
162
  msgid "Refunded %s%s (reason: %s) - Payment ID: %s, Refund: %s"
163
  msgstr ""
164
 
165
+ #: includes/mollie/wc/gateway/abstract.php:771
166
  msgid "Payment"
167
  msgstr ""
168
 
169
+ #: includes/mollie/wc/gateway/abstract.php:792
170
  msgid "We have not received a definite payment status."
171
  msgstr ""
172
 
173
+ #: includes/mollie/wc/gateway/abstract.php:797
174
  msgid ""
175
  "We have not received a definite payment status. You will receive an email as "
176
  "soon as we receive a confirmation of the bank/merchant."
177
  msgstr ""
178
 
179
  #. translators: Placeholder 1: payment method
180
+ #: includes/mollie/wc/gateway/abstract.php:804
181
  msgid "Payment completed with <strong>%s</strong>"
182
  msgstr ""
183
 
202
  msgstr ""
203
 
204
  #: includes/mollie/wc/gateway/banktransfer.php:45
205
+ #: includes/mollie/wc/helper/settings.php:191
206
  msgid "Disabled"
207
  msgstr ""
208
 
218
 
219
  #. translators: Placeholder 1: consumer name, placeholder 2: consumer IBAN,
220
  #. placeholder 3: consumer BIC
221
+ #: includes/mollie/wc/gateway/banktransfer.php:136
222
+ #: includes/mollie/wc/gateway/directdebit.php:51
223
  #: includes/mollie/wc/gateway/ideal.php:86
224
  #: includes/mollie/wc/gateway/sofort.php:56
225
  msgid "Payment completed by <strong>%s</strong> (IBAN: %s, BIC: %s)"
226
  msgstr ""
227
 
228
+ #: includes/mollie/wc/gateway/banktransfer.php:146
229
  msgid ""
230
  "Please complete your payment by transferring the total amount to the "
231
  "following bank account:"
232
  msgstr ""
233
 
234
  #. translators: Placeholder 1: 'Stichting Mollie Payments'
235
+ #: includes/mollie/wc/gateway/banktransfer.php:150
236
  msgid "Beneficiary: %s"
237
  msgstr ""
238
 
239
+ #: includes/mollie/wc/gateway/banktransfer.php:151
240
  msgid "IBAN: <strong>%s</strong>"
241
  msgstr ""
242
 
243
+ #: includes/mollie/wc/gateway/banktransfer.php:152
244
  msgid "BIC: %s"
245
  msgstr ""
246
 
247
  #. translators: Placeholder 1: Payment reference e.g. RF49-0000-4716-6216
248
  #. (SEPA) or +++513/7587/59959+++ (Belgium)
249
+ #: includes/mollie/wc/gateway/banktransfer.php:157
250
  msgid "Payment reference: %s"
251
  msgstr ""
252
 
253
  #. translators: Placeholder 1: Payment reference e.g. RF49-0000-4716-6216
254
  #. (SEPA) or +++513/7587/59959+++ (Belgium)
255
+ #: includes/mollie/wc/gateway/banktransfer.php:162
256
  msgid "Please provide the payment reference <strong>%s</strong>"
257
  msgstr ""
258
 
259
+ #: includes/mollie/wc/gateway/banktransfer.php:175
260
  msgid "The payment will expire on <strong>%s</strong>."
261
  msgstr ""
262
 
263
+ #: includes/mollie/wc/gateway/banktransfer.php:182
264
  msgid ""
265
  "The payment will expire on <strong>%s</strong>. Please make sure you "
266
  "transfer the total amount before this date."
329
  "further contain any special characters."
330
  msgstr ""
331
 
332
+ #: includes/mollie/wc/helper/data.php:501
333
+ msgid "Item #%s stock incremented from %s to %s."
334
  msgstr ""
335
 
336
  #: includes/mollie/wc/helper/settings.php:119
337
+ msgid "Error"
338
+ msgstr ""
339
+
340
+ #: includes/mollie/wc/helper/settings.php:129
341
  msgid "Mollie status:"
342
  msgstr ""
343
 
344
+ #: includes/mollie/wc/helper/settings.php:130
345
  msgid "Connected"
346
  msgstr ""
347
 
348
+ #: includes/mollie/wc/helper/settings.php:190
349
  msgid "Gateway enabled"
350
  msgstr ""
351
 
352
+ #: includes/mollie/wc/helper/settings.php:190
353
  msgid "Enabled"
354
  msgstr ""
355
 
356
+ #: includes/mollie/wc/helper/settings.php:191
357
  msgid "Gateway disabled"
358
  msgstr ""
359
 
360
  #. translators: The surrounding %s's Will be replaced by a link to the Mollie
361
  #. profile
362
+ #: includes/mollie/wc/helper/settings.php:202
363
  msgid "The following payment methods are activated in your %sMollie profile%s:"
364
  msgstr ""
365
 
366
+ #: includes/mollie/wc/helper/settings.php:212
367
  msgid "Refresh"
368
  msgstr ""
369
 
370
+ #: includes/mollie/wc/helper/settings.php:236
371
  msgid "Edit"
372
  msgstr ""
373
 
374
  #. translators: Default payment description. {order_number} and {order_date}
375
  #. are available tags.
376
+ #: includes/mollie/wc/helper/settings.php:267
377
  msgid "Order {order_number}"
378
  msgstr ""
379
 
380
+ #: includes/mollie/wc/helper/settings.php:270
381
  msgid "Log plugin events."
382
  msgstr ""
383
 
384
+ #: includes/mollie/wc/helper/settings.php:275
385
  msgid "View logs"
386
  msgstr ""
387
 
388
  #. translators: Placeholder 1: Location of the log files
389
+ #: includes/mollie/wc/helper/settings.php:281
390
  msgid "Log files are saved to <code>%s</code>"
391
  msgstr ""
392
 
393
+ #: includes/mollie/wc/helper/settings.php:288
394
  #: includes/mollie/wc/plugin.php:280
395
  msgid "Mollie settings"
396
  msgstr ""
397
 
398
+ #: includes/mollie/wc/helper/settings.php:291
399
  msgid ""
400
  "The following options are required to use the plugin and are used by all "
401
  "Mollie payment methods"
402
  msgstr ""
403
 
404
+ #: includes/mollie/wc/helper/settings.php:295
405
  msgid "Live API key"
406
  msgstr ""
407
 
408
  #. translators: Placeholder 1: API key mode (live or test). The surrounding
409
  #. %s's Will be replaced by a link to the Mollie profile
410
+ #: includes/mollie/wc/helper/settings.php:300
411
+ #: includes/mollie/wc/helper/settings.php:326
412
  msgid ""
413
  "The API key is used to connect to Mollie. You can find your <strong>%s</"
414
  "strong> API key in your %sMollie profile%s"
415
  msgstr ""
416
 
417
+ #: includes/mollie/wc/helper/settings.php:306
418
  msgid "Live API key should start with live_"
419
  msgstr ""
420
 
421
+ #: includes/mollie/wc/helper/settings.php:314
422
  msgid "Enable test mode"
423
  msgstr ""
424
 
425
+ #: includes/mollie/wc/helper/settings.php:317
426
  msgid ""
427
  "Enable test mode if you want to test the plugin without using real payments."
428
  msgstr ""
429
 
430
+ #: includes/mollie/wc/helper/settings.php:321
431
  msgid "Test API key"
432
  msgstr ""
433
 
434
+ #: includes/mollie/wc/helper/settings.php:332
435
  msgid "Test API key should start with test_"
436
  msgstr ""
437
 
438
  #. translators: Placeholder 1: Default payment description, placeholder 2: list
439
  #. of available tags
440
+ #: includes/mollie/wc/helper/settings.php:343
441
  msgid ""
442
  "Payment description send to Mollie. Default <code>%s</code><br/>You can use "
443
  "the following tags: %s"
444
  msgstr ""
445
 
446
+ #: includes/mollie/wc/helper/settings.php:349
447
  msgid "Payment screen language"
448
  msgstr ""
449
 
450
+ #: includes/mollie/wc/helper/settings.php:352
451
  msgid "Detect using browser language"
452
  msgstr ""
453
 
454
  #. translators: Placeholder 1: Current WordPress locale
455
+ #: includes/mollie/wc/helper/settings.php:354
456
  msgid "Send WordPress language (%s)"
457
  msgstr ""
458
 
459
+ #: includes/mollie/wc/helper/settings.php:355
 
 
 
 
460
  msgid "Dutch"
461
  msgstr ""
462
 
463
+ #: includes/mollie/wc/helper/settings.php:356
464
  msgid "Flemish (Belgium)"
465
  msgstr ""
466
 
467
+ #: includes/mollie/wc/helper/settings.php:357
468
  msgid "English"
469
  msgstr ""
470
 
471
+ #: includes/mollie/wc/helper/settings.php:358
472
  msgid "German"
473
  msgstr ""
474
 
475
+ #: includes/mollie/wc/helper/settings.php:359
476
  msgid "Spanish"
477
  msgstr ""
478
 
479
+ #: includes/mollie/wc/helper/settings.php:360
480
  msgid "French"
481
  msgstr ""
482
 
483
+ #: includes/mollie/wc/helper/settings.php:361
484
  msgid "French (Belgium)"
485
  msgstr ""
486
 
487
+ #: includes/mollie/wc/helper/settings.php:367
488
  msgid "Debug Log"
489
  msgstr ""
490
 
includes/mollie-api-php/README.mdown CHANGED
@@ -95,7 +95,7 @@ Retrieve the list of issuers:
95
  ```
96
 
97
  _`$issuers` will be a list of `Mollie_API_Object_Issuer` objects. Use the property `$id` of this object in the
98
- API call, and the property `$name` for displaying the issuer to your customer. For a more in-depth example, see [Example 4](https://github.com/mollie/mollie-api-php/blob/master/examples/4-ideal-payment.php)._
99
 
100
  Create a payment with the selected issuer:
101
 
@@ -124,9 +124,17 @@ be refunded through our API at the moment.
124
  $refund = $mollie->payments->refund($payment, 15.00);
125
  ```
126
 
 
 
 
 
127
  ## API documentation ##
128
  If you wish to learn more about our API, please visit the [Mollie Developer Portal](https://www.mollie.com/developer/). API Documentation is available in both Dutch and English.
129
 
 
 
 
 
130
  ## License ##
131
  [BSD (Berkeley Software Distribution) License](http://www.opensource.org/licenses/bsd-license.php).
132
  Copyright (c) 2013-2015, Mollie B.V.
95
  ```
96
 
97
  _`$issuers` will be a list of `Mollie_API_Object_Issuer` objects. Use the property `$id` of this object in the
98
+ API call, and the property `$name` for displaying the issuer to your customer. For a more in-depth example, see [Example 4](https://github.com/mollie/mollie-api-php/blob/master/examples/04-ideal-payment.php)._
99
 
100
  Create a payment with the selected issuer:
101
 
124
  $refund = $mollie->payments->refund($payment, 15.00);
125
  ```
126
 
127
+ ## How to use OAuth2 to connect Mollie accounts to your application? ##
128
+
129
+ The resources `permissions`, `organizations`, `profiles` and `settlements` are only available with an OAuth2 access token. This is because an API key is linked to a website profile, and those resources are linked to an Mollie account. Visit our [API documentation](https://www.mollie.com/en/docs/oauth/overview) for more information about how to get an OAuth2 access token. For an example of how to use those resources, see [Example 8](https://github.com/mollie/mollie-api-php/blob/master/examples/08-oauth-list-profiles.php), [Example 9](https://github.com/mollie/mollie-api-php/blob/master/examples/09-oauth-list-settlements.php) and [Example 10](https://github.com/mollie/mollie-api-php/blob/master/examples/10-oauth-new-payment.php).
130
+
131
  ## API documentation ##
132
  If you wish to learn more about our API, please visit the [Mollie Developer Portal](https://www.mollie.com/developer/). API Documentation is available in both Dutch and English.
133
 
134
+ ## Want to help us make our API client even better? ##
135
+
136
+ Want to help us make our API client even better? We take [pull requests](https://github.com/mollie/mollie-api-php/pulls?utf8=%E2%9C%93&q=is%3Apr), sure. But how would you like to contribute to a [technology oriented organization](https://www.mollie.com/nl/blog/post/werken-bij-mollie-sfeer-kansen-en-mogelijkheden/)? Mollie is hiring developers and system engineers. [Check out our vacancies](https://www.mollie.com/nl/jobs) or [get in touch](mailto:personeel@mollie.com).
137
+
138
  ## License ##
139
  [BSD (Berkeley Software Distribution) License](http://www.opensource.org/licenses/bsd-license.php).
140
  Copyright (c) 2013-2015, Mollie B.V.
includes/mollie-api-php/composer.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "mollie/mollie-api-php",
3
- "version": "1.2.10",
4
  "description": "Mollie API client library for PHP",
5
  "homepage": "https://github.com/mollie/mollie-api-php",
6
  "license": "BSD-2-Clause",
@@ -12,8 +12,8 @@
12
  ],
13
  "keywords": [
14
  "mollie", "payment", "service", "ideal", "creditcard", "mistercash", "bancontact", "sofort", "sofortbanking",
15
- "sepa", "bitcoin", "paypal", "paysafecard", "banktransfer", "direct debit", "belfius", "belfius direct net",
16
- "refunds", "api", "payments", "gateway"
17
  ],
18
  "require-dev": {
19
  "phpunit/phpunit": "3.7.*"
@@ -22,5 +22,8 @@
22
  "psr-0": {
23
  "": "src/"
24
  }
 
 
 
25
  }
26
  }
1
  {
2
  "name": "mollie/mollie-api-php",
3
+ "version": "1.3.2",
4
  "description": "Mollie API client library for PHP",
5
  "homepage": "https://github.com/mollie/mollie-api-php",
6
  "license": "BSD-2-Clause",
12
  ],
13
  "keywords": [
14
  "mollie", "payment", "service", "ideal", "creditcard", "mistercash", "bancontact", "sofort", "sofortbanking",
15
+ "sepa", "bitcoin", "paypal", "paysafecard", "podiumcadeaukaart", "banktransfer", "direct debit", "belfius",
16
+ "belfius direct net", "refunds", "api", "payments", "gateway"
17
  ],
18
  "require-dev": {
19
  "phpunit/phpunit": "3.7.*"
22
  "psr-0": {
23
  "": "src/"
24
  }
25
+ },
26
+ "suggest": {
27
+ "mollie/oauth2-mollie-php": "Use OAuth to authenticate with the Mollie API. This is needed for some endpoints. Visit https://mollie.com/en/docs for more information."
28
  }
29
  }
includes/mollie-api-php/examples/{1-new-payment.php → 01-new-payment.php} RENAMED
File without changes
includes/mollie-api-php/examples/{2-webhook-verification.php → 02-webhook-verification.php} RENAMED
@@ -12,6 +12,14 @@ try
12
  */
13
  include "initialize.php";
14
 
 
 
 
 
 
 
 
 
15
  /*
16
  * Retrieve the payment's current state.
17
  */
12
  */
13
  include "initialize.php";
14
 
15
+ /*
16
+ * Check if this is a test request by Mollie
17
+ */
18
+ if (!empty($_GET['testByMollie']))
19
+ {
20
+ die('OK');
21
+ }
22
+
23
  /*
24
  * Retrieve the payment's current state.
25
  */
includes/mollie-api-php/examples/{3-return-page.php → 03-return-page.php} RENAMED
File without changes
includes/mollie-api-php/examples/{4-ideal-payment.php → 04-ideal-payment.php} RENAMED
File without changes
includes/mollie-api-php/examples/{5-payments-history.php → 05-payments-history.php} RENAMED
File without changes
includes/mollie-api-php/examples/{6-list-activated-methods.php → 06-list-activated-methods.php} RENAMED
@@ -13,7 +13,7 @@ try
13
  include "initialize.php";
14
 
15
  /*
16
- * Get the all the activated methods for this API key.
17
  */
18
  $methods = $mollie->methods->all();
19
 
13
  include "initialize.php";
14
 
15
  /*
16
+ * Get all the activated methods for this API key.
17
  */
18
  $methods = $mollie->methods->all();
19
 
includes/mollie-api-php/examples/{7-refund-payment.php → 07-refund-payment.php} RENAMED
File without changes
includes/mollie-api-php/examples/08-oauth-list-profiles.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Example 8 - Using OAuth access token to list profiles of an account.
4
+ */
5
+
6
+ try
7
+ {
8
+ /*
9
+ * Initialize the Mollie API library with your OAuth access token.
10
+ */
11
+ include "initialize_with_oauth.php";
12
+
13
+ /*
14
+ * Get the all the profiles for this account.
15
+ */
16
+ $profiles = $mollie->profiles->all();
17
+
18
+ foreach ($profiles as $profile)
19
+ {
20
+ echo '<div style="line-height:40px; vertical-align:top">';
21
+
22
+ echo htmlspecialchars($profile->name) .
23
+ ' - ' . htmlspecialchars($profile->website) .
24
+ ' (' . htmlspecialchars($profile->id) . ')';
25
+
26
+ echo '</div>';
27
+ }
28
+ }
29
+ catch (Mollie_API_Exception $e)
30
+ {
31
+ echo "API call failed: " . htmlspecialchars($e->getMessage());
32
+ }
includes/mollie-api-php/examples/09-oauth-list-settlements.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Example 9 - Using OAuth access token to list settlements of an account.
4
+ */
5
+
6
+ try
7
+ {
8
+ /*
9
+ * Initialize the Mollie API library with your OAuth access token.
10
+ */
11
+ include "initialize_with_oauth.php";
12
+
13
+ /*
14
+ * Get the all the settlements for this account.
15
+ */
16
+ $settlements = $mollie->settlements->all();
17
+
18
+ echo '<ul>';
19
+ foreach ($settlements as $settlement)
20
+ {
21
+ echo '<li><b>Settlement ' . htmlspecialchars($settlement->reference) . ':</b> (' . htmlspecialchars($settlement->settledDatetime) . ')';
22
+ echo '<table border="1"><tr><th>Month</th><th>Description</th><th>Count</th><th>Net</th><th>VAT</th><th>Gross</th></tr>';
23
+
24
+ // Convert from stdClass to array
25
+ $settlement_periods = json_decode(json_encode($settlement->periods), TRUE);
26
+
27
+ foreach ($settlement_periods as $year => $months)
28
+ {
29
+ foreach ($months as $month => $monthly_settlement)
30
+ {
31
+ foreach ($monthly_settlement['revenue'] as $revenue)
32
+ {
33
+ echo '<tr>';
34
+ echo '<td>' . htmlspecialchars($year . '-' . $month) . '</td>';
35
+ echo '<td>' . htmlspecialchars($revenue['description']) . '</td>';
36
+ echo '<td align="right">' . htmlspecialchars($revenue['count']) . ' x</td>';
37
+ echo '<td align="right">' . htmlspecialchars($revenue['amount']['net'] ?: '-') . '</td>';
38
+ echo '<td align="right">' . htmlspecialchars($revenue['amount']['vat'] ?: '-') . '</td>';
39
+ echo '<td align="right">' . htmlspecialchars($revenue['amount']['gross'] ?: '-') . '</td>';
40
+ echo '</tr>';
41
+ }
42
+ foreach ($monthly_settlement['costs'] as $revenue)
43
+ {
44
+ echo '<tr>';
45
+ echo '<td>' . htmlspecialchars($year . '-' . $month) . '</td>';
46
+ echo '<td>' . htmlspecialchars($revenue['description']) . '</td>';
47
+ echo '<td align="right">' . htmlspecialchars($revenue['count']) . ' x</td>';
48
+ echo '<td align="right">' . htmlspecialchars(-$revenue['amount']['net'] ?: '-') . '</td>';
49
+ echo '<td align="right">' . htmlspecialchars(-$revenue['amount']['vat'] ?: '-') . '</td>';
50
+ echo '<td align="right">' . htmlspecialchars(-$revenue['amount']['gross'] ?: '-') . '</td>';
51
+ echo '</tr>';
52
+ }
53
+ }
54
+ }
55
+
56
+ echo '<tr><th colspan="5" align="right">TOTAL</th><th align="right">' . htmlspecialchars($settlement->amount) . '</th></tr>';
57
+
58
+ echo '</table>';
59
+ echo '</li>';
60
+ }
61
+ echo '</ul>';
62
+
63
+ $settlement = $mollie->settlements->get("open");
64
+
65
+ echo "Open amount: €{$settlement->amount}\n";
66
+ }
67
+ catch (Mollie_API_Exception $e)
68
+ {
69
+ echo "API call failed: " . htmlspecialchars($e->getMessage());
70
+ }
includes/mollie-api-php/examples/10-oauth-new-payment.php ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Example 10 - Using OAuth access token to prepare a new payment.
4
+ */
5
+
6
+ try
7
+ {
8
+ /*
9
+ * Initialize the Mollie API library with your OAuth access token.
10
+ */
11
+ include "initialize_with_oauth.php";
12
+
13
+ /*
14
+ * Generate a unique order id for this example. It is important to include this unique attribute
15
+ * in the redirectUrl (below) so a proper return page can be shown to the customer.
16
+ */
17
+ $order_id = time();
18
+
19
+ /*
20
+ * Determine the url parts to these example files.
21
+ */
22
+ $protocol = isset($_SERVER['HTTPS']) && strcasecmp('off', $_SERVER['HTTPS']) !== 0 ? "https" : "http";
23
+ $hostname = $_SERVER['HTTP_HOST'] ? : "my.app";
24
+ $path = dirname(isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : $_SERVER['PHP_SELF']);
25
+
26
+
27
+ /*
28
+ * Since unlike an API key the OAuth access token does NOT belong to a profile, we need to retrieve a profile
29
+ * so we can specify the profileId-parameter when creating a payment below.
30
+ */
31
+ $profiles = $mollie->profiles->all();
32
+ $profile = reset($profiles);
33
+
34
+ /*
35
+ * Payment parameters:
36
+ * amount Amount in EUROs. This example creates a € 10,- payment.
37
+ * description Description of the payment.
38
+ * redirectUrl Redirect location. The customer will be redirected there after the payment.
39
+ * webhookUrl Webhook location, used to report when the payment changes state.
40
+ * metadata Custom metadata that is stored with the payment.
41
+ */
42
+ $payment = $mollie->payments->create(array(
43
+ "amount" => 10.00,
44
+ "description" => "My first API payment",
45
+ "redirectUrl" => "{$protocol}://{$hostname}{$path}/3-return-page.php?order_id={$order_id}",
46
+ "webhookUrl" => "{$protocol}://{$hostname}{$path}/2-webhook-verification.php",
47
+ "metadata" => array(
48
+ "order_id" => $order_id,
49
+ ),
50
+ "profileId" => $profile->id // This is specifically necessary for payment resources via OAuth access.
51
+ ));
52
+
53
+ /*
54
+ * In this example we store the order with its payment status in a database.
55
+ */
56
+ database_write($order_id, $payment->status);
57
+
58
+ /*
59
+ * Send the customer off to complete the payment.
60
+ */
61
+ if (PHP_SAPI === "cli")
62
+ {
63
+ echo "Redirect to: " . $payment->getPaymentUrl() . PHP_EOL;
64
+ return;
65
+ }
66
+
67
+ header("Location: " . $payment->getPaymentUrl());
68
+ }
69
+ catch (Mollie_API_Exception $e)
70
+ {
71
+ echo "API call failed: " . htmlspecialchars($e->getMessage());
72
+ }
73
+
74
+
75
+ /*
76
+ * NOTE: This example uses a text file as a database. Please use a real database like MySQL in production code.
77
+ */
78
+ function database_write ($order_id, $status)
79
+ {
80
+ $order_id = intval($order_id);
81
+ $database = dirname(__FILE__) . "/orders/order-{$order_id}.txt";
82
+
83
+ file_put_contents($database, $status);
84
+ }
includes/mollie-api-php/examples/initialize.php CHANGED
@@ -8,4 +8,4 @@ require_once dirname(__FILE__) . "/../src/Mollie/API/Autoloader.php";
8
  * See: https://www.mollie.com/beheer/account/profielen/
9
  */
10
  $mollie = new Mollie_API_Client;
11
- $mollie->setApiKey("test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM");
8
  * See: https://www.mollie.com/beheer/account/profielen/
9
  */
10
  $mollie = new Mollie_API_Client;
11
+ $mollie->setApiKey("test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM");
includes/mollie-api-php/examples/initialize_with_oauth.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once dirname(__FILE__) . "/../src/Mollie/API/Autoloader.php";
4
+
5
+ /*
6
+ * Initialize the Mollie API library with OAuth.
7
+ *
8
+ * See: https://www.mollie.com/en/docs/oauth/overview
9
+ */
10
+ $mollie = new Mollie_API_Client;
11
+ $mollie->setAccessToken("access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ");
includes/mollie-api-php/src/Mollie/API/Client.php CHANGED
@@ -34,7 +34,7 @@ class Mollie_API_Client
34
  /**
35
  * Version of our client.
36
  */
37
- const CLIENT_VERSION = "1.2.10";
38
 
39
  /**
40
  * Endpoint of the remote API.
@@ -83,11 +83,46 @@ class Mollie_API_Client
83
  */
84
  public $methods;
85
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  /**
87
  * @var string
88
  */
89
  protected $api_key;
90
 
 
 
 
 
 
 
 
91
  /**
92
  * @var array
93
  */
@@ -111,6 +146,12 @@ class Mollie_API_Client
111
  $this->issuers = new Mollie_API_Resource_Issuers($this);
112
  $this->methods = new Mollie_API_Resource_Methods($this);
113
 
 
 
 
 
 
 
114
  $curl_version = curl_version();
115
 
116
  $this->addVersionString("Mollie/" . self::CLIENT_VERSION);
@@ -119,6 +160,18 @@ class Mollie_API_Client
119
  $this->addVersionString($curl_version["ssl_version"]);
120
  }
121
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  /**
123
  * @param string $url
124
  */
@@ -148,7 +201,33 @@ class Mollie_API_Client
148
  throw new Mollie_API_Exception("Invalid API key: '{$api_key}'. An API key must start with 'test_' or 'live_'.");
149
  }
150
 
151
- $this->api_key = $api_key;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  }
153
 
154
  /**
@@ -205,6 +284,11 @@ class Mollie_API_Client
205
 
206
  $user_agent = join(' ', $this->version_strings);
207
 
 
 
 
 
 
208
  $request_headers = array(
209
  "Accept: application/json",
210
  "Authorization: Bearer {$this->api_key}",
@@ -213,7 +297,7 @@ class Mollie_API_Client
213
  );
214
 
215
  curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, $http_method);
216
-
217
  if ($http_body !== NULL)
218
  {
219
  $request_headers[] = "Content-Type: application/json";
@@ -301,6 +385,13 @@ class Mollie_API_Client
301
  */
302
  protected function getCompatibilityChecker ()
303
  {
304
- return new Mollie_API_CompatibilityChecker();
 
 
 
 
 
 
 
305
  }
306
  }
34
  /**
35
  * Version of our client.
36
  */
37
+ const CLIENT_VERSION = "1.3.2";
38
 
39
  /**
40
  * Endpoint of the remote API.
83
  */
84
  public $methods;
85
 
86
+ /**
87
+ * RESTful Permissions resource. NOTE: requires OAuth access token.
88
+ *
89
+ * @var Mollie_API_Resource_Permissions
90
+ */
91
+ public $permissions;
92
+
93
+ /**
94
+ * RESTful Organizations resource. NOTE: requires OAuth access token.
95
+ *
96
+ * @var Mollie_API_Resource_Organizations
97
+ */
98
+ public $organizations;
99
+
100
+ /**
101
+ * RESTful Profiles resource. NOTE: requires OAuth access token.
102
+ *
103
+ * @var Mollie_API_Resource_Profiles
104
+ */
105
+ public $profiles;
106
+
107
+ /**
108
+ * RESTful Settlements resource. NOTE: requires OAuth access token.
109
+ *
110
+ * @var Mollie_API_Resource_Settlements
111
+ */
112
+ public $settlements;
113
+
114
  /**
115
  * @var string
116
  */
117
  protected $api_key;
118
 
119
+ /**
120
+ * True if an OAuth access token is set as API key.
121
+ *
122
+ * @var bool
123
+ */
124
+ protected $oauth_access;
125
+
126
  /**
127
  * @var array
128
  */
146
  $this->issuers = new Mollie_API_Resource_Issuers($this);
147
  $this->methods = new Mollie_API_Resource_Methods($this);
148
 
149
+ // OAuth2 endpoints
150
+ $this->permissions = new Mollie_API_Resource_Permissions($this);
151
+ $this->organizations = new Mollie_API_Resource_Organizations($this);
152
+ $this->profiles = new Mollie_API_Resource_Profiles($this);
153
+ $this->settlements = new Mollie_API_Resource_Settlements($this);
154
+
155
  $curl_version = curl_version();
156
 
157
  $this->addVersionString("Mollie/" . self::CLIENT_VERSION);
160
  $this->addVersionString($curl_version["ssl_version"]);
161
  }
162
 
163
+ /**
164
+ * @param string $resource_name
165
+ * @return Mollie_API_Resource_Undefined
166
+ */
167
+ public function __get ($resource_name)
168
+ {
169
+ $undefined_resource = new Mollie_API_Resource_Undefined($this);
170
+ $undefined_resource->setResourceName($resource_name);
171
+
172
+ return $undefined_resource;
173
+ }
174
+
175
  /**
176
  * @param string $url
177
  */
201
  throw new Mollie_API_Exception("Invalid API key: '{$api_key}'. An API key must start with 'test_' or 'live_'.");
202
  }
203
 
204
+ $this->api_key = $api_key;
205
+ $this->oauth_access = FALSE;
206
+ }
207
+
208
+ /**
209
+ * @param string $access_token OAuth access token, starting with 'access_'
210
+ * @throws Mollie_API_Exception
211
+ */
212
+ public function setAccessToken ($access_token)
213
+ {
214
+ $access_token = trim($access_token);
215
+
216
+ if (!preg_match('/^access_\w+$/', $access_token))
217
+ {
218
+ throw new Mollie_API_Exception("Invalid OAuth access token: '{$access_token}'. An access token must start with 'access_'.");
219
+ }
220
+
221
+ $this->api_key = $access_token;
222
+ $this->oauth_access = TRUE;
223
+ }
224
+
225
+ /**
226
+ * @return bool
227
+ */
228
+ public function usesOAuth ()
229
+ {
230
+ return $this->oauth_access;
231
  }
232
 
233
  /**
284
 
285
  $user_agent = join(' ', $this->version_strings);
286
 
287
+ if ($this->usesOAuth())
288
+ {
289
+ $user_agent .= " OAuth/2.0";
290
+ }
291
+
292
  $request_headers = array(
293
  "Accept: application/json",
294
  "Authorization: Bearer {$this->api_key}",
297
  );
298
 
299
  curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, $http_method);
300
+
301
  if ($http_body !== NULL)
302
  {
303
  $request_headers[] = "Content-Type: application/json";
385
  */
386
  protected function getCompatibilityChecker ()
387
  {
388
+ static $checker = NULL;
389
+
390
+ if (!$checker)
391
+ {
392
+ $checker = new Mollie_API_CompatibilityChecker();
393
+ }
394
+
395
+ return $checker;
396
  }
397
  }
includes/mollie-api-php/src/Mollie/API/Object/Method.php CHANGED
@@ -34,52 +34,57 @@ class Mollie_API_Object_Method
34
  /**
35
  * @link https://mollie.com/ideal
36
  */
37
- const IDEAL = "ideal";
38
 
39
  /**
40
  * @link https://mollie.com/paysafecard
41
  */
42
- const PAYSAFECARD = "paysafecard";
43
 
44
  /**
45
  * @link https://mollie.com/creditcard
46
  */
47
- const CREDITCARD = "creditcard";
48
 
49
  /**
50
  * @link https://mollie.com/mistercash
51
  */
52
- const MISTERCASH = "mistercash";
53
 
54
  /**
55
  * @link https://mollie.com/sofort
56
  */
57
- const SOFORT = "sofort";
58
 
59
  /**
60
  * @link https://mollie.com/banktransfer
61
  */
62
- const BANKTRANSFER = "banktransfer";
63
 
64
  /**
65
  * @link https://mollie.com/directdebit
66
  */
67
- const DIRECTDEBIT = "directdebit";
68
 
69
  /**
70
  * @link https://mollie.com/paypal
71
  */
72
- const PAYPAL = "paypal";
73
 
74
  /**
75
  * @link https://mollie.com/bitcoin
76
  */
77
- const BITCOIN = "bitcoin";
78
 
79
  /**
80
  * @link https://mollie.com/belfiusdirectnet
81
  */
82
- const BELFIUS = "belfius";
 
 
 
 
 
83
 
84
  /**
85
  * Id of the payment method.
34
  /**
35
  * @link https://mollie.com/ideal
36
  */
37
+ const IDEAL = "ideal";
38
 
39
  /**
40
  * @link https://mollie.com/paysafecard
41
  */
42
+ const PAYSAFECARD = "paysafecard";
43
 
44
  /**
45
  * @link https://mollie.com/creditcard
46
  */
47
+ const CREDITCARD = "creditcard";
48
 
49
  /**
50
  * @link https://mollie.com/mistercash
51
  */
52
+ const MISTERCASH = "mistercash";
53
 
54
  /**
55
  * @link https://mollie.com/sofort
56
  */
57
+ const SOFORT = "sofort";
58
 
59
  /**
60
  * @link https://mollie.com/banktransfer
61
  */
62
+ const BANKTRANSFER = "banktransfer";
63
 
64
  /**
65
  * @link https://mollie.com/directdebit
66
  */
67
+ const DIRECTDEBIT = "directdebit";
68
 
69
  /**
70
  * @link https://mollie.com/paypal
71
  */
72
+ const PAYPAL = "paypal";
73
 
74
  /**
75
  * @link https://mollie.com/bitcoin
76
  */
77
+ const BITCOIN = "bitcoin";
78
 
79
  /**
80
  * @link https://mollie.com/belfiusdirectnet
81
  */
82
+ const BELFIUS = "belfius";
83
+
84
+ /**
85
+ * @link https://mollie.com/giftcards
86
+ */
87
+ const PODIUMCADEAUKAART = "podiumcadeaukaart";
88
 
89
  /**
90
  * Id of the payment method.
includes/mollie-api-php/src/Mollie/API/Object/Organization.php ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2013, Mollie B.V.
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions are met:
8
+ *
9
+ * - Redistributions of source code must retain the above copyright notice,
10
+ * this list of conditions and the following disclaimer.
11
+ * - Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ *
15
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
16
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
19
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25
+ * DAMAGE.
26
+ *
27
+ * @license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php
28
+ * @author Mollie B.V. <info@mollie.com>
29
+ * @copyright Mollie B.V.
30
+ * @link https://www.mollie.com
31
+ */
32
+ class Mollie_API_Object_Organization
33
+ {
34
+ /**
35
+ * Id of the organization.
36
+ *
37
+ * @var string
38
+ */
39
+ public $id;
40
+
41
+ /**
42
+ * @var string
43
+ */
44
+ public $name;
45
+
46
+ /**
47
+ * @var string
48
+ */
49
+ public $email;
50
+
51
+ /**
52
+ * @var string
53
+ */
54
+ public $postalCode;
55
+
56
+ /**
57
+ * @var string
58
+ */
59
+ public $city;
60
+
61
+ /**
62
+ * @var string
63
+ */
64
+ public $country;
65
+
66
+ /**
67
+ * @var string
68
+ */
69
+ public $countryCode;
70
+
71
+ /**
72
+ * @var string
73
+ */
74
+ public $registrationType;
75
+
76
+ /**
77
+ * @var string
78
+ */
79
+ public $registrationNumber;
80
+
81
+ /**
82
+ * @var string
83
+ */
84
+ public $registrationDatetime;
85
+
86
+ /**
87
+ * @var string
88
+ */
89
+ public $verifiedDatetime;
90
+ }
includes/mollie-api-php/src/Mollie/API/Object/Payment.php CHANGED
@@ -309,7 +309,7 @@ class Mollie_API_Object_Payment
309
  */
310
  public function canBePartiallyRefunded ()
311
  {
312
- return $this->canBeRefunded() && $this->method !== Mollie_API_Object_Method::CREDITCARD;
313
  }
314
 
315
  /**
309
  */
310
  public function canBePartiallyRefunded ()
311
  {
312
+ return $this->canBeRefunded();
313
  }
314
 
315
  /**
includes/mollie-api-php/src/Mollie/API/Object/Permission.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2013, Mollie B.V.
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions are met:
8
+ *
9
+ * - Redistributions of source code must retain the above copyright notice,
10
+ * this list of conditions and the following disclaimer.
11
+ * - Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ *
15
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
16
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
19
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25
+ * DAMAGE.
26
+ *
27
+ * @license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php
28
+ * @author Mollie B.V. <info@mollie.com>
29
+ * @copyright Mollie B.V.
30
+ * @link https://www.mollie.com
31
+ */
32
+ class Mollie_API_Object_Permission
33
+ {
34
+ /**
35
+ * Id of the permission.
36
+ *
37
+ * @var string
38
+ */
39
+ public $id;
40
+
41
+ /**
42
+ * Description of the permission.
43
+ *
44
+ * @var string
45
+ */
46
+ public $description;
47
+
48
+ /**
49
+ * Warning for the permission.
50
+ *
51
+ * @var string|NULL
52
+ */
53
+ public $warning;
54
+
55
+ /**
56
+ * True if this permission is granted.
57
+ *
58
+ * @var boolean
59
+ */
60
+ public $granted;
61
+ }
includes/mollie-api-php/src/Mollie/API/Object/Profile.php ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015, Mollie B.V.
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions are met:
8
+ *
9
+ * - Redistributions of source code must retain the above copyright notice,
10
+ * this list of conditions and the following disclaimer.
11
+ * - Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ *
15
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
16
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
19
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25
+ * DAMAGE.
26
+ *
27
+ * @license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php
28
+ * @author Mollie B.V. <info@mollie.com>
29
+ * @copyright Mollie B.V.
30
+ * @link https://www.mollie.com
31
+ */
32
+ class Mollie_API_Object_Profile
33
+ {
34
+ /**
35
+ * Id of the payment profile.
36
+ *
37
+ * @var string
38
+ */
39
+ public $id;
40
+
41
+ /**
42
+ * Either "live" or "test". Indicates this being a test or a live (verified) profile.
43
+ *
44
+ * @var string
45
+ */
46
+ public $mode;
47
+
48
+ /**
49
+ * @var string
50
+ */
51
+ public $name;
52
+
53
+ /**
54
+ * @var string
55
+ */
56
+ public $website;
57
+
58
+ /**
59
+ * @var string
60
+ */
61
+ public $email;
62
+
63
+ /**
64
+ * @var string
65
+ */
66
+ public $phone;
67
+
68
+ /**
69
+ * Merchant category code.
70
+ *
71
+ * @see https://www.mollie.com/en/docs/profiles#profiles-object
72
+ * @var int
73
+ */
74
+ public $categoryCode;
75
+
76
+ /**
77
+ * Profile status. "unverified", "verified" or "blocked".
78
+ *
79
+ * @var string
80
+ */
81
+ public $status;
82
+
83
+ /**
84
+ * Review object with "status" property that's either "pending" or "rejected".
85
+ *
86
+ * @see https://www.mollie.com/en/docs/profiles#profiles-object
87
+ *
88
+ * @var object|null
89
+ */
90
+ public $review;
91
+
92
+ /**
93
+ * @var string
94
+ */
95
+ public $createdDatetime;
96
+
97
+ /**
98
+ * @var string
99
+ */
100
+ public $updatedDatetime;
101
+
102
+ /**
103
+ * If the App owner is also owner this profile, then links may contain a link
104
+ * to the live and test API keys of this profile.
105
+ *
106
+ * @var object
107
+ */
108
+ public $links;
109
+ }
includes/mollie-api-php/src/Mollie/API/Object/Settlement.php ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015, Mollie B.V.
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions are met:
8
+ *
9
+ * - Redistributions of source code must retain the above copyright notice,
10
+ * this list of conditions and the following disclaimer.
11
+ * - Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ *
15
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
16
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
19
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25
+ * DAMAGE.
26
+ *
27
+ * @license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php
28
+ * @author Mollie B.V. <info@mollie.com>
29
+ * @copyright Mollie B.V.
30
+ * @link https://www.mollie.com
31
+ */
32
+ class Mollie_API_Object_Settlement
33
+ {
34
+ /**
35
+ * Id of the settlement.
36
+ *
37
+ * @var string
38
+ */
39
+ public $id;
40
+
41
+ /**
42
+ * The settlement reference. This corresponds to an invoice that's in your Dashboard.
43
+ *
44
+ * @var string
45
+ */
46
+ public $reference;
47
+
48
+ /**
49
+ * Total settlement amount in euros.
50
+ *
51
+ * @var double
52
+ */
53
+ public $amount;
54
+
55
+ /**
56
+ * @var string
57
+ */
58
+ public $settledDatetime;
59
+
60
+ /**
61
+ * Revenues and costs nested per year, per month, and per payment method.
62
+ *
63
+ * @see https://www.mollie.com/en/docs/settlements#settlements-object
64
+ * @var object
65
+ */
66
+ public $periods;
67
+
68
+ /**
69
+ * Payment IDs that were settled (either paid out or reversed).
70
+ *
71
+ * @var string[]
72
+ */
73
+ public $paymentIds;
74
+ }
includes/mollie-api-php/src/Mollie/API/Resource/Base.php CHANGED
@@ -66,15 +66,37 @@ abstract class Mollie_API_Resource_Base
66
  }
67
 
68
  /**
69
- * @param $rest_resource
70
- * @param $body
71
- *
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  * @return object
 
73
  */
74
- private function rest_create($rest_resource, $body)
75
  {
76
- $result = $this->performApiCall(self::REST_CREATE, $rest_resource, $body);
77
- return $this->copy($result, $this->getResourceObject($rest_resource));
 
 
 
 
 
78
  }
79
 
80
  /**
@@ -82,10 +104,11 @@ abstract class Mollie_API_Resource_Base
82
  *
83
  * @param string $rest_resource Resource name.
84
  * @param string $id Id of the object to retrieve.
85
- * @throws Mollie_API_Exception
86
  * @return object
 
87
  */
88
- private function rest_read ($rest_resource, $id)
89
  {
90
  if (empty($id))
91
  {
@@ -93,9 +116,12 @@ abstract class Mollie_API_Resource_Base
93
  }
94
 
95
  $id = urlencode($id);
96
- $result = $this->performApiCall(self::REST_READ, "{$rest_resource}/{$id}");
 
 
 
97
 
98
- return $this->copy($result, $this->getResourceObject($rest_resource));
99
  }
100
 
101
  /**
@@ -104,15 +130,15 @@ abstract class Mollie_API_Resource_Base
104
  * @param $rest_resource
105
  * @param int $offset
106
  * @param int $limit
107
- * @param array $options
108
  *
109
  * @return Mollie_API_Object_List
110
  */
111
- private function rest_list($rest_resource, $offset = 0, $limit = self::DEFAULT_LIMIT, array $options = array())
112
  {
113
- $options = array_merge(array("offset" => $offset, "count" => $limit), $options);
114
 
115
- $api_path = $rest_resource . "?" . http_build_query($options, "", "&"); /* Force & because of some PHP 5.3 defaults */
116
 
117
  $result = $this->performApiCall(self::REST_LIST, $api_path);
118
 
@@ -139,10 +165,7 @@ abstract class Mollie_API_Resource_Base
139
  {
140
  foreach ($api_result as $property => $value)
141
  {
142
- if (property_exists(get_class($object), $property))
143
- {
144
- $object->$property = $value;
145
- }
146
  }
147
 
148
  return $object;
@@ -159,11 +182,11 @@ abstract class Mollie_API_Resource_Base
159
  * Create a resource with the remote API.
160
  *
161
  * @param array $data An array containing details on the resource. Fields supported depend on the resource created.
162
- *
163
- * @throws Mollie_API_Exception
164
  * @return object
 
165
  */
166
- public function create(array $data = array())
167
  {
168
  $encoded = json_encode($data);
169
 
@@ -182,7 +205,7 @@ abstract class Mollie_API_Resource_Base
182
  }
183
  }
184
 
185
- return $this->rest_create($this->getResourceName(), $encoded);
186
  }
187
 
188
  /**
@@ -191,13 +214,13 @@ abstract class Mollie_API_Resource_Base
191
  * Will throw a Mollie_API_Exception if the resource cannot be found.
192
  *
193
  * @param string $resource_id
194
- *
195
- * @throws Mollie_API_Exception
196
  * @return object
 
197
  */
198
- public function get($resource_id)
199
  {
200
- return $this->rest_read($this->getResourceName(), $resource_id);
201
  }
202
 
203
  /**
@@ -205,13 +228,13 @@ abstract class Mollie_API_Resource_Base
205
  *
206
  * @param int $offset
207
  * @param int $limit
208
- * @param array $options
209
  *
210
  * @return Mollie_API_Object_List
211
  */
212
- public function all ($offset = 0, $limit = 0, array $options = array())
213
  {
214
- return $this->rest_list($this->getResourceName(), $offset, $limit, $options);
215
  }
216
 
217
  /**
66
  }
67
 
68
  /**
69
+ * @param array $filters
70
+ * @return string
71
+ * @throws Mollie_API_Exception
72
+ */
73
+ private function buildQueryString (array $filters)
74
+ {
75
+ if (empty($filters))
76
+ {
77
+ return "";
78
+ }
79
+
80
+ // Force & because of some PHP 5.3 defaults.
81
+ return "?" . http_build_query($filters, "", "&");
82
+ }
83
+
84
+ /**
85
+ * @param string $rest_resource
86
+ * @param $body
87
+ * @param array $filters
88
  * @return object
89
+ * @throws Mollie_API_Exception
90
  */
91
+ private function rest_create($rest_resource, $body, array $filters)
92
  {
93
+ $result = $this->performApiCall(
94
+ self::REST_CREATE,
95
+ $rest_resource . $this->buildQueryString($filters),
96
+ $body
97
+ );
98
+
99
+ return $this->copy($result, $this->getResourceObject());
100
  }
101
 
102
  /**
104
  *
105
  * @param string $rest_resource Resource name.
106
  * @param string $id Id of the object to retrieve.
107
+ * @param array $filters
108
  * @return object
109
+ * @throws Mollie_API_Exception
110
  */
111
+ private function rest_read ($rest_resource, $id, array $filters)
112
  {
113
  if (empty($id))
114
  {
116
  }
117
 
118
  $id = urlencode($id);
119
+ $result = $this->performApiCall(
120
+ self::REST_READ,
121
+ "{$rest_resource}/{$id}" . $this->buildQueryString($filters)
122
+ );
123
 
124
+ return $this->copy($result, $this->getResourceObject());
125
  }
126
 
127
  /**
130
  * @param $rest_resource
131
  * @param int $offset
132
  * @param int $limit
133
+ * @param array $filters
134
  *
135
  * @return Mollie_API_Object_List
136
  */
137
+ private function rest_list($rest_resource, $offset = 0, $limit = self::DEFAULT_LIMIT, array $filters)
138
  {
139
+ $filters = array_merge(array("offset" => $offset, "count" => $limit), $filters);
140
 
141
+ $api_path = $rest_resource . $this->buildQueryString($filters);
142
 
143
  $result = $this->performApiCall(self::REST_LIST, $api_path);
144
 
165
  {
166
  foreach ($api_result as $property => $value)
167
  {
168
+ $object->$property = $value;
 
 
 
169
  }
170
 
171
  return $object;
182
  * Create a resource with the remote API.
183
  *
184
  * @param array $data An array containing details on the resource. Fields supported depend on the resource created.
185
+ * @param array $filters
 
186
  * @return object
187
+ * @throws Mollie_API_Exception
188
  */
189
+ public function create(array $data = array(), array $filters = array())
190
  {
191
  $encoded = json_encode($data);
192
 
205
  }
206
  }
207
 
208
+ return $this->rest_create($this->getResourceName(), $encoded, $filters);
209
  }
210
 
211
  /**
214
  * Will throw a Mollie_API_Exception if the resource cannot be found.
215
  *
216
  * @param string $resource_id
217
+ * @param array $filters
 
218
  * @return object
219
+ * @throws Mollie_API_Exception
220
  */
221
+ public function get ($resource_id, array $filters = array())
222
  {
223
+ return $this->rest_read($this->getResourceName(), $resource_id, $filters);
224
  }
225
 
226
  /**
228
  *
229
  * @param int $offset
230
  * @param int $limit
231
+ * @param array $filters
232
  *
233
  * @return Mollie_API_Object_List
234
  */
235
+ public function all ($offset = 0, $limit = 0, array $filters = array())
236
  {
237
+ return $this->rest_list($this->getResourceName(), $offset, $limit, $filters);
238
  }
239
 
240
  /**
includes/mollie-api-php/src/Mollie/API/Resource/Issuers.php CHANGED
@@ -29,8 +29,8 @@
29
  * @copyright Mollie B.V.
30
  * @link https://www.mollie.com
31
  *
32
- * @method Mollie_API_Object_Issuer[]|Mollie_API_Object_List all($offset = 0, $limit = 0)
33
- * @method Mollie_API_Object_Issuer get($id)
34
  */
35
  class Mollie_API_Resource_Issuers extends Mollie_API_Resource_Base
36
  {
29
  * @copyright Mollie B.V.
30
  * @link https://www.mollie.com
31
  *
32
+ * @method Mollie_API_Object_Issuer[]|Mollie_API_Object_List all($offset = 0, $limit = 0, array $filters = array())
33
+ * @method Mollie_API_Object_Issuer get($id, array $filters = array())
34
  */
35
  class Mollie_API_Resource_Issuers extends Mollie_API_Resource_Base
36
  {
includes/mollie-api-php/src/Mollie/API/Resource/Methods.php CHANGED
@@ -29,8 +29,8 @@
29
  * @copyright Mollie B.V.
30
  * @link https://www.mollie.com
31
  *
32
- * @method Mollie_API_Object_Method[]|Mollie_API_Object_List all($offset = 0, $limit = 0)
33
- * @method Mollie_API_Object_Method get($id)
34
  */
35
  class Mollie_API_Resource_Methods extends Mollie_API_Resource_Base
36
  {
29
  * @copyright Mollie B.V.
30
  * @link https://www.mollie.com
31
  *
32
+ * @method Mollie_API_Object_Method[]|Mollie_API_Object_List all($offset = 0, $limit = 0, array $filters = array())
33
+ * @method Mollie_API_Object_Method get($id, array $filters = array())
34
  */
35
  class Mollie_API_Resource_Methods extends Mollie_API_Resource_Base
36
  {
includes/mollie-api-php/src/Mollie/API/Resource/Organizations.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015, Mollie B.V.
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions are met:
8
+ *
9
+ * - Redistributions of source code must retain the above copyright notice,
10
+ * this list of conditions and the following disclaimer.
11
+ * - Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ *
15
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
16
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
19
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25
+ * DAMAGE.
26
+ *
27
+ * @license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php
28
+ * @author Mollie B.V. <info@mollie.com>
29
+ * @copyright Mollie B.V.
30
+ * @link https://www.mollie.com
31
+ *
32
+ * @method Mollie_API_Object_Organization[]|Mollie_API_Object_List all($offset = 0, $limit = 0, array $filters = array())
33
+ * @method Mollie_API_Object_Organization get($id, array $filters = array())
34
+ */
35
+ class Mollie_API_Resource_Organizations extends Mollie_API_Resource_Base
36
+ {
37
+ /**
38
+ * @return Mollie_API_Object_Organization
39
+ */
40
+ protected function getResourceObject ()
41
+ {
42
+ return new Mollie_API_Object_Organization;
43
+ }
44
+
45
+ /**
46
+ * Retrieve information on the currently logged in organization.
47
+ *
48
+ * Will throw a Mollie_API_Exception if the resource cannot be found.
49
+ *
50
+ * @return Mollie_API_Object_Organization
51
+ * @throws Mollie_API_Exception
52
+ */
53
+ public function me ()
54
+ {
55
+ return $this->get('me');
56
+ }
57
+ }
includes/mollie-api-php/src/Mollie/API/Resource/Payments.php CHANGED
@@ -29,8 +29,8 @@
29
  * @copyright Mollie B.V.
30
  * @link https://www.mollie.com
31
  *
32
- * @method Mollie_API_Object_Payment[]|Mollie_API_Object_List all($offset = 0, $limit = 0)
33
- * @method Mollie_API_Object_Payment create(array $data)
34
  */
35
  class Mollie_API_Resource_Payments extends Mollie_API_Resource_Base
36
  {
@@ -53,18 +53,18 @@ class Mollie_API_Resource_Payments extends Mollie_API_Resource_Base
53
  * Will throw a Mollie_API_Exception if the payment id is invalid or the resource cannot be found.
54
  *
55
  * @param string $payment_id
56
- *
57
- * @throws Mollie_API_Exception
58
  * @return Mollie_API_Object_Payment
 
59
  */
60
- public function get($payment_id)
61
  {
62
  if (empty($payment_id) || strpos($payment_id, self::RESOURCE_ID_PREFIX) !== 0)
63
  {
64
  throw new Mollie_API_Exception("Invalid payment ID: '{$payment_id}'. A payment ID should start with '" . self::RESOURCE_ID_PREFIX . "'.");
65
  }
66
 
67
- return parent::get($payment_id);
68
  }
69
 
70
  /**
29
  * @copyright Mollie B.V.
30
  * @link https://www.mollie.com
31
  *
32
+ * @method Mollie_API_Object_Payment[]|Mollie_API_Object_List all($offset = 0, $limit = 0, array $filters = array())
33
+ * @method Mollie_API_Object_Payment create(array $data, array $filters = array())
34
  */
35
  class Mollie_API_Resource_Payments extends Mollie_API_Resource_Base
36
  {
53
  * Will throw a Mollie_API_Exception if the payment id is invalid or the resource cannot be found.
54
  *
55
  * @param string $payment_id
56
+ * @param array $filters
 
57
  * @return Mollie_API_Object_Payment
58
+ * @throws Mollie_API_Exception
59
  */
60
+ public function get ($payment_id, array $filters = array())
61
  {
62
  if (empty($payment_id) || strpos($payment_id, self::RESOURCE_ID_PREFIX) !== 0)
63
  {
64
  throw new Mollie_API_Exception("Invalid payment ID: '{$payment_id}'. A payment ID should start with '" . self::RESOURCE_ID_PREFIX . "'.");
65
  }
66
 
67
+ return parent::get($payment_id, $filters);
68
  }
69
 
70
  /**
includes/mollie-api-php/src/Mollie/API/Resource/Payments/Refunds.php CHANGED
@@ -29,8 +29,8 @@
29
  * @copyright Mollie B.V.
30
  * @link https://www.mollie.com
31
  *
32
- * @method Mollie_API_Object_Payment_Refund[]|Mollie_API_Object_List all($offset = 0, $limit = 0)
33
- * @method Mollie_API_Object_Payment_Refund get($resource_id)
34
  */
35
  class Mollie_API_Resource_Payments_Refunds extends Mollie_API_Resource_Base
36
  {
29
  * @copyright Mollie B.V.
30
  * @link https://www.mollie.com
31
  *
32
+ * @method Mollie_API_Object_Payment_Refund[]|Mollie_API_Object_List all($offset = 0, $limit = 0, array $filters = array())
33
+ * @method Mollie_API_Object_Payment_Refund get($resource_id, array $filters = array())
34
  */
35
  class Mollie_API_Resource_Payments_Refunds extends Mollie_API_Resource_Base
36
  {
includes/mollie-api-php/src/Mollie/API/Resource/Permissions.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015, Mollie B.V.
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions are met:
8
+ *
9
+ * - Redistributions of source code must retain the above copyright notice,
10
+ * this list of conditions and the following disclaimer.
11
+ * - Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ *
15
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
16
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
19
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25
+ * DAMAGE.
26
+ *
27
+ * @license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php
28
+ * @author Mollie B.V. <info@mollie.com>
29
+ * @copyright Mollie B.V.
30
+ * @link https://www.mollie.com
31
+ *
32
+ * @method Mollie_API_Object_Permission[]|Mollie_API_Object_List all($offset = 0, $limit = 0, array $filters = array())
33
+ * @method Mollie_API_Object_Permission get($id, array $filters = array())
34
+ */
35
+ class Mollie_API_Resource_Permissions extends Mollie_API_Resource_Base
36
+ {
37
+ /**
38
+ * @return Mollie_API_Object_Permission
39
+ */
40
+ protected function getResourceObject ()
41
+ {
42
+ return new Mollie_API_Object_Permission;
43
+ }
44
+
45
+ /**
46
+ * Returns true if the requested permission is granted, false otherwise.
47
+ *
48
+ * @param string $permission_id
49
+ * @return bool
50
+ */
51
+ public function isGranted ($permission_id)
52
+ {
53
+ $permission = $this->get($permission_id);
54
+
55
+ if ($permission && $permission->granted)
56
+ {
57
+ return TRUE;
58
+ }
59
+
60
+ return FALSE;
61
+ }
62
+ }
includes/mollie-api-php/src/Mollie/API/Resource/Profiles.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015, Mollie B.V.
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions are met:
8
+ *
9
+ * - Redistributions of source code must retain the above copyright notice,
10
+ * this list of conditions and the following disclaimer.
11
+ * - Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ *
15
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
16
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
19
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25
+ * DAMAGE.
26
+ *
27
+ * @license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php
28
+ * @author Mollie B.V. <info@mollie.com>
29
+ * @copyright Mollie B.V.
30
+ * @link https://www.mollie.com
31
+ *
32
+ * @method Mollie_API_Object_Profile[]|Mollie_API_Object_List all($offset = 0, $limit = 0, array $filters = array())
33
+ * @method Mollie_API_Object_Profile get($id, array $filters = array())
34
+ */
35
+ class Mollie_API_Resource_Profiles extends Mollie_API_Resource_Base
36
+ {
37
+ /**
38
+ * @return Mollie_API_Object_Profile
39
+ */
40
+ protected function getResourceObject ()
41
+ {
42
+ return new Mollie_API_Object_Profile;
43
+ }
44
+ }
includes/mollie-api-php/src/Mollie/API/Resource/Settlements.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015, Mollie B.V.
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions are met:
8
+ *
9
+ * - Redistributions of source code must retain the above copyright notice,
10
+ * this list of conditions and the following disclaimer.
11
+ * - Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ *
15
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
16
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
19
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25
+ * DAMAGE.
26
+ *
27
+ * @license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php
28
+ * @author Mollie B.V. <info@mollie.com>
29
+ * @copyright Mollie B.V.
30
+ * @link https://www.mollie.com
31
+ *
32
+ * @method Mollie_API_Object_Settlement[]|Mollie_API_Object_List all($offset = 0, $limit = 0, array $filters = array())
33
+ * @method Mollie_API_Object_Settlement get($id, array $filters = array())
34
+ */
35
+ class Mollie_API_Resource_Settlements extends Mollie_API_Resource_Base
36
+ {
37
+ /**
38
+ * @return Mollie_API_Object_Settlement
39
+ */
40
+ protected function getResourceObject ()
41
+ {
42
+ return new Mollie_API_Object_Settlement;
43
+ }
44
+ }
includes/mollie-api-php/src/Mollie/API/Resource/Undefined.php ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2013, Mollie B.V.
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions are met:
8
+ *
9
+ * - Redistributions of source code must retain the above copyright notice,
10
+ * this list of conditions and the following disclaimer.
11
+ * - Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ *
15
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
16
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
19
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25
+ * DAMAGE.
26
+ *
27
+ * @license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php
28
+ * @author Mollie B.V. <info@mollie.com>
29
+ * @copyright Mollie B.V.
30
+ * @link https://www.mollie.com
31
+ *
32
+ * @method stdClass[]|Mollie_API_Object_List all($offset = 0, $limit = 0, array $filters = array())
33
+ * @method stdClass get($id, array $filters = array())
34
+ */
35
+ class Mollie_API_Resource_Undefined extends Mollie_API_Resource_Base
36
+ {
37
+ /**
38
+ * @return stdClass
39
+ */
40
+ protected function getResourceObject ()
41
+ {
42
+ return new stdClass;
43
+ }
44
+
45
+ /**
46
+ * @var string
47
+ */
48
+ protected $resource_name;
49
+
50
+ /**
51
+ * @param string $resource_name
52
+ */
53
+ public function setResourceName ($resource_name)
54
+ {
55
+ $this->resource_name = strtolower($resource_name);
56
+ }
57
+
58
+ /**
59
+ * @var string
60
+ */
61
+ protected $parent_id;
62
+
63
+ /**
64
+ * @param string $parent_id
65
+ * @return $this
66
+ */
67
+ public function withParentId ($parent_id)
68
+ {
69
+ $this->parent_id = $parent_id;
70
+
71
+ return $this;
72
+ }
73
+
74
+ /**
75
+ * Set the resource to use a certain parent. Use this method before performing a get() or all() call.
76
+ *
77
+ * @param mixed $parent An object with an 'id' property
78
+ * @return $this
79
+ */
80
+ public function with ($parent)
81
+ {
82
+ $this->parent_id = $parent->id;
83
+
84
+ return $this;
85
+ }
86
+
87
+ /**
88
+ * @return string
89
+ * @throws Mollie_API_Exception
90
+ */
91
+ public function getResourceName()
92
+ {
93
+ if (strpos($this->resource_name, "_") !== FALSE)
94
+ {
95
+ list($parent_resource, $child_resource) = explode("_", $this->resource_name, 2);
96
+
97
+ if (!strlen($this->parent_id))
98
+ {
99
+ throw new Mollie_API_Exception("Subresource '{$this->resource_name}' used without parent '$parent_resource' ID.");
100
+ }
101
+
102
+ return "$parent_resource/{$this->parent_id}/$child_resource";
103
+ }
104
+
105
+ return $this->resource_name;
106
+ }
107
+ }
includes/mollie-api-php/tests/apiUnitTest.php CHANGED
@@ -62,13 +62,15 @@ class Mollie_ApiUnitTest extends PHPUnit_Framework_TestCase
62
  {
63
  $this->api->expects($this->once())
64
  ->method("performHttpCall")
65
- ->with(Mollie_API_Client::HTTP_POST, "payments", '{"amount":100,"description":"Order #1337 24 Roundhousekicks","redirectUrl":"http:\/\/www.chucknorris.rhk\/return.php"}')
66
  ->will($this->returnValue(""));
67
 
68
  $this->api->payments->create(array(
69
  "amount" => 100.00,
70
  "description" => "Order #1337 24 Roundhousekicks",
71
  "redirectUrl" => "http://www.chucknorris.rhk/return.php",
 
 
72
  ));
73
  }
74
 
@@ -194,11 +196,14 @@ class Mollie_ApiUnitTest extends PHPUnit_Framework_TestCase
194
  {
195
  $this->api->expects($this->once())
196
  ->method("performHttpCall")
197
- ->with(Mollie_API_Client::HTTP_GET, "payments/tr_d0b0E3EA3v")
198
  ->will($this->returnValue('{ "id":"tr_d0b0E3EA3v", "mode":"test", "createdDatetime":"2013-11-21T09:57:08.0Z", "status":"open", "amount":100, "description":"Order #1225", "method":null, "details":null, "links":{ "paymentUrl":"https://www.mollie.nl/payscreen/pay/d0b0E3EA3v" } }'));
199
 
200
  /** @var Mollie_API_Object_Payment $payment */
201
- $payment = $this->api->payments->get("tr_d0b0E3EA3v");
 
 
 
202
 
203
  $this->assertEquals("tr_d0b0E3EA3v", $payment->id);
204
  $this->assertEquals("Order #1225", $payment->description);
@@ -274,4 +279,47 @@ class Mollie_ApiUnitTest extends PHPUnit_Framework_TestCase
274
  $this->assertInstanceof("Mollie_API_Object_Method", $method);
275
  }
276
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
277
  }
62
  {
63
  $this->api->expects($this->once())
64
  ->method("performHttpCall")
65
+ ->with(Mollie_API_Client::HTTP_POST, "payments?profileId=pfl_wdy%21aA6Zy", '{"amount":100,"description":"Order #1337 24 Roundhousekicks","redirectUrl":"http:\/\/www.chucknorris.rhk\/return.php"}')
66
  ->will($this->returnValue(""));
67
 
68
  $this->api->payments->create(array(
69
  "amount" => 100.00,
70
  "description" => "Order #1337 24 Roundhousekicks",
71
  "redirectUrl" => "http://www.chucknorris.rhk/return.php",
72
+ ), array(
73
+ "profileId" => "pfl_wdy!aA6Zy",
74
  ));
75
  }
76
 
196
  {
197
  $this->api->expects($this->once())
198
  ->method("performHttpCall")
199
+ ->with(Mollie_API_Client::HTTP_GET, "payments/tr_d0b0E3EA3v?count=1&profileId=pfl_wdy%21aA6Zy")
200
  ->will($this->returnValue('{ "id":"tr_d0b0E3EA3v", "mode":"test", "createdDatetime":"2013-11-21T09:57:08.0Z", "status":"open", "amount":100, "description":"Order #1225", "method":null, "details":null, "links":{ "paymentUrl":"https://www.mollie.nl/payscreen/pay/d0b0E3EA3v" } }'));
201
 
202
  /** @var Mollie_API_Object_Payment $payment */
203
+ $payment = $this->api->payments->get("tr_d0b0E3EA3v", array(
204
+ "count" => "1",
205
+ "profileId" => "pfl_wdy!aA6Zy",
206
+ ));
207
 
208
  $this->assertEquals("tr_d0b0E3EA3v", $payment->id);
209
  $this->assertEquals("Order #1225", $payment->description);
279
  $this->assertInstanceof("Mollie_API_Object_Method", $method);
280
  }
281
  }
282
+
283
+ public function testUndefinedResourceCallsResourceEndpoint ()
284
+ {
285
+ $this->api->expects($this->once())
286
+ ->method("performHttpCall")
287
+ ->with(Mollie_API_Client::HTTP_GET, "foobars/foobar_ID?f=B")
288
+ ->will($this->returnValue("{}"));
289
+
290
+ $this->api->FooBars->get("foobar_ID", array("f" => "B"));
291
+ }
292
+
293
+ public function testUndefinedSubresourceRequiresParentId ()
294
+ {
295
+ $this->api->expects($this->never())
296
+ ->method("performHttpCall");
297
+
298
+ $this->setExpectedException("Mollie_API_Exception", "Subresource 'foos_bars' used without parent 'foos' ID.");
299
+
300
+ $this->api->Foos_Bars->get("bar_ID", array("f" => "B"));
301
+ }
302
+
303
+ public function testUndefinedSubesourceCallsSubresourceEndpointWithParentId ()
304
+ {
305
+ $this->api->expects($this->once())
306
+ ->method("performHttpCall")
307
+ ->with(Mollie_API_Client::HTTP_GET, "foos/foo_PARENT/bars/bar_CHILD?f=B")
308
+ ->will($this->returnValue("{}"));
309
+
310
+ $this->api->Foos_Bars->withParentId("foo_PARENT")->get("bar_CHILD", array("f" => "B"));
311
+ }
312
+
313
+ public function testUndefinedSubesourceCallsSubresourceEndpointWithParentObject ()
314
+ {
315
+ $this->api->expects($this->once())
316
+ ->method("performHttpCall")
317
+ ->with(Mollie_API_Client::HTTP_GET, "foos/foo_PARENT/bars/bar_CHILD?f=B")
318
+ ->will($this->returnValue("{}"));
319
+
320
+ $parent = new stdClass;
321
+ $parent->id = "foo_PARENT";
322
+
323
+ $this->api->Foos_Bars->with($parent)->get("bar_CHILD", array("f" => "B"));
324
+ }
325
  }
includes/mollie/wc/gateway/abstract.php CHANGED
@@ -1,6 +1,14 @@
1
  <?php
2
  abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
3
  {
 
 
 
 
 
 
 
 
4
  /**
5
  * @var string
6
  */
@@ -16,6 +24,20 @@ abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
16
  */
17
  protected $display_logo;
18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  /**
20
  *
21
  */
@@ -37,6 +59,7 @@ abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
37
 
38
  $this->_initDescription();
39
  $this->_initIcon();
 
40
 
41
  add_action('woocommerce_api_' . $this->id, array($this, 'webhookAction'));
42
  add_action('woocommerce_update_options_payment_gateways_' . $this->id, array($this, 'process_admin_options'));
@@ -83,6 +106,25 @@ abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
83
  'desc_tip' => true,
84
  ),
85
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  }
87
 
88
  /**
@@ -116,6 +158,15 @@ abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
116
  $this->description = $description;
117
  }
118
 
 
 
 
 
 
 
 
 
 
119
  public function admin_options ()
120
  {
121
  if (!$this->enabled && count($this->errors))
@@ -181,6 +232,50 @@ abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
181
  return true;
182
  }
183
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
184
  /**
185
  * @param int $order_id
186
  * @return array
@@ -198,20 +293,13 @@ abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
198
  return array('result' => 'failure');
199
  }
200
 
201
- $initial_status = $this->getInitialStatus();
202
 
203
  // Overwrite plugin-wide
204
- $initial_status = apply_filters(Mollie_WC_Plugin::PLUGIN_ID . '_initial_order_status', $initial_status);
205
 
206
  // Overwrite gateway-wide
207
- $initial_status = apply_filters(Mollie_WC_Plugin::PLUGIN_ID . '_initial_order_status_' . $this->id, $initial_status);
208
-
209
- // Set initial status
210
- // Status is only updated if the new status is not the same as the default order status (pending)
211
- $order->update_status(
212
- $initial_status,
213
- __('Awaiting payment confirmation.', 'mollie-payments-for-woocommerce') . "\n"
214
- );
215
 
216
  $settings_helper = Mollie_WC_Plugin::getSettingsHelper();
217
 
@@ -271,6 +359,14 @@ abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
271
 
272
  Mollie_WC_Plugin::debug($this->id . ': Payment ' . $payment->id . ' (' . $payment->mode . ') created for order ' . $order->id);
273
 
 
 
 
 
 
 
 
 
274
  $order->add_order_note(sprintf(
275
  /* translators: Placeholder 1: Payment method title, placeholder 2: payment ID */
276
  __('%s payment started (%s).', 'mollie-payments-for-woocommerce'),
@@ -278,8 +374,13 @@ abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
278
  $payment->id . ($payment->mode == 'test' ? (' - ' . __('test mode', 'mollie-payments-for-woocommerce')) : '')
279
  ));
280
 
 
 
 
 
 
281
  return array(
282
- 'result' => 'success',
283
  'redirect' => $payment->getPaymentUrl(),
284
  );
285
  }
@@ -301,6 +402,43 @@ abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
301
  return array('result' => 'failure');
302
  }
303
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
304
  public function webhookAction ()
305
  {
306
  // Webhook test by Mollie
@@ -447,7 +585,7 @@ abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
447
  ->setCancelledMolliePaymentId($order->id, $payment->id);
448
 
449
  // Reset state
450
- $order->update_status('pending');
451
 
452
  // User cancelled payment on Mollie or issuer page, add a cancel note.. do not cancel order.
453
  $order->add_order_note(sprintf(
@@ -466,8 +604,8 @@ abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
466
  {
467
  Mollie_WC_Plugin::debug(__METHOD__ . ' called.');
468
 
469
- // Reset state
470
- $order->update_status('pending');
471
 
472
  $order->add_order_note(sprintf(
473
  /* translators: Placeholder 1: payment method title, placeholder 2: payment ID */
@@ -489,9 +627,23 @@ abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
489
  {
490
  Mollie_WC_Plugin::addNotice(__('You have cancelled your payment. Please complete your order with a different payment method.', 'mollie-payments-for-woocommerce'));
491
 
 
 
 
 
 
 
 
 
 
 
 
492
  return WC()->cart->get_checkout_url();
493
  }
494
 
 
 
 
495
  return $this->get_return_url($order);
496
  }
497
 
@@ -663,7 +815,18 @@ abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
663
  */
664
  protected function orderNeedsPayment (WC_Order $order)
665
  {
666
- return $order->needs_payment();
 
 
 
 
 
 
 
 
 
 
 
667
  }
668
 
669
  /**
@@ -690,9 +853,14 @@ abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
690
  /**
691
  * @return string
692
  */
693
- protected function getInitialStatus ()
694
  {
695
- return 'pending';
 
 
 
 
 
696
  }
697
 
698
  /**
@@ -707,7 +875,7 @@ abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
707
  'key' => $order->order_key,
708
  ), $return_url);
709
 
710
- return $return_url;
711
  }
712
 
713
  /**
1
  <?php
2
  abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
3
  {
4
+ const STATUS_PENDING = 'pending';
5
+ const STATUS_PROCESSING = 'processing';
6
+ const STATUS_ON_HOLD = 'on-hold';
7
+ const STATUS_COMPLETED = 'completed';
8
+ const STATUS_CANCELLED = 'cancelled';
9
+ const STATUS_REFUNDED = 'refunded';
10
+ const STATUS_FAILED = 'failed';
11
+
12
  /**
13
  * @var string
14
  */
24
  */
25
  protected $display_logo;
26
 
27
+ /**
28
+ * Minimum transaction amount, zero does not define a minimum
29
+ *
30
+ * @var int
31
+ */
32
+ public $min_amount = 0;
33
+
34
+ /**
35
+ * Maximum transaction amount, zero does not define a maximum
36
+ *
37
+ * @var int
38
+ */
39
+ public $max_amount = 0;
40
+
41
  /**
42
  *
43
  */
59
 
60
  $this->_initDescription();
61
  $this->_initIcon();
62
+ $this->_initMinMaxAmount();
63
 
64
  add_action('woocommerce_api_' . $this->id, array($this, 'webhookAction'));
65
  add_action('woocommerce_update_options_payment_gateways_' . $this->id, array($this, 'process_admin_options'));
106
  'desc_tip' => true,
107
  ),
108
  );
109
+
110
+ if ($this->paymentConfirmationAfterCoupleOfDays())
111
+ {
112
+ $this->form_fields['initial_order_status'] = array(
113
+ 'title' => __('Initial order status', 'mollie-payments-for-woocommerce'),
114
+ 'type' => 'select',
115
+ 'options' => array(
116
+ self::STATUS_ON_HOLD => wc_get_order_status_name(self::STATUS_ON_HOLD) . ' (' . __('default', 'mollie-payments-for-woocommerce') . ')',
117
+ self::STATUS_PENDING => wc_get_order_status_name(self::STATUS_PENDING),
118
+ ),
119
+ 'default' => self::STATUS_ON_HOLD,
120
+ /* translators: Placeholder 1: Default order status, placeholder 2: Link to 'Hold Stock' setting */
121
+ 'description' => sprintf(
122
+ __('Some payment methods take longer than a few hours to complete. The initial order state is then set to \'%s\'. This ensures the order is not cancelled when the setting %s is used.', 'mollie-payments-for-woocommerce'),
123
+ wc_get_order_status_name(self::STATUS_ON_HOLD),
124
+ '<a href="' . admin_url( 'admin.php?page=wc-settings&tab=products&section=inventory') . '" target="_blank">' . __('Hold Stock (minutes)', 'woocommerce') . '</a>'
125
+ ),
126
+ );
127
+ }
128
  }
129
 
130
  /**
158
  $this->description = $description;
159
  }
160
 
161
+ protected function _initMinMaxAmount ()
162
+ {
163
+ if ($mollie_method = $this->getMollieMethod())
164
+ {
165
+ $this->min_amount = $mollie_method->getMinimumAmount() ? : 0;
166
+ $this->max_amount = $mollie_method->getMaximumAmount() ? : 0;
167
+ }
168
+ }
169
+
170
  public function admin_options ()
171
  {
172
  if (!$this->enabled && count($this->errors))
232
  return true;
233
  }
234
 
235
+ /**
236
+ * Check if the gateway is available for use
237
+ *
238
+ * @return bool
239
+ */
240
+ public function is_available()
241
+ {
242
+ if (!parent::is_available())
243
+ {
244
+ return false;
245
+ }
246
+
247
+ if (WC()->cart && $this->get_order_total() > 0)
248
+ {
249
+ // Validate min amount
250
+ if (0 < $this->min_amount && $this->min_amount > $this->get_order_total())
251
+ {
252
+ return false;
253
+ }
254
+
255
+ // Validate max amount
256
+ if (0 < $this->max_amount && $this->max_amount < $this->get_order_total())
257
+ {
258
+ return false;
259
+ }
260
+ }
261
+
262
+ return true;
263
+ }
264
+
265
+ /**
266
+ * Will the payment confirmation be delivered after a couple of days.
267
+ *
268
+ * Overwrite this method for payment gateways where the payment confirmation takes a couple of days.
269
+ * When this method return true, a new setting will be available where the merchant can set the initial
270
+ * payment state: on-hold or pending
271
+ *
272
+ * @return bool
273
+ */
274
+ protected function paymentConfirmationAfterCoupleOfDays ()
275
+ {
276
+ return false;
277
+ }
278
+
279
  /**
280
  * @param int $order_id
281
  * @return array
293
  return array('result' => 'failure');
294
  }
295
 
296
+ $initial_order_status = $this->getInitialOrderStatus();
297
 
298
  // Overwrite plugin-wide
299
+ $initial_order_status = apply_filters(Mollie_WC_Plugin::PLUGIN_ID . '_initial_order_status', $initial_order_status);
300
 
301
  // Overwrite gateway-wide
302
+ $initial_order_status = apply_filters(Mollie_WC_Plugin::PLUGIN_ID . '_initial_order_status_' . $this->id, $initial_order_status);
 
 
 
 
 
 
 
303
 
304
  $settings_helper = Mollie_WC_Plugin::getSettingsHelper();
305
 
359
 
360
  Mollie_WC_Plugin::debug($this->id . ': Payment ' . $payment->id . ' (' . $payment->mode . ') created for order ' . $order->id);
361
 
362
+ // Set initial status
363
+ // Status is only updated if the new status is not the same as the default order status (pending)
364
+ $this->updateOrderStatus(
365
+ $order,
366
+ $initial_order_status,
367
+ __('Awaiting payment confirmation.', 'mollie-payments-for-woocommerce') . "\n"
368
+ );
369
+
370
  $order->add_order_note(sprintf(
371
  /* translators: Placeholder 1: Payment method title, placeholder 2: payment ID */
372
  __('%s payment started (%s).', 'mollie-payments-for-woocommerce'),
374
  $payment->id . ($payment->mode == 'test' ? (' - ' . __('test mode', 'mollie-payments-for-woocommerce')) : '')
375
  ));
376
 
377
+ // Empty cart
378
+ WC()->cart->empty_cart();
379
+
380
+ Mollie_WC_Plugin::debug("Cart emptied, redirect user to payment URL: {$payment->getPaymentUrl()}");
381
+
382
  return array(
383
+ 'result' => 'success',
384
  'redirect' => $payment->getPaymentUrl(),
385
  );
386
  }
402
  return array('result' => 'failure');
403
  }
404
 
405
+ /**
406
+ * @param WC_Order $order
407
+ * @param string $new_status
408
+ * @param string $note
409
+ */
410
+ public function updateOrderStatus (WC_Order $order, $new_status, $note = '')
411
+ {
412
+ $order->update_status($new_status, $note);
413
+
414
+ switch ($new_status)
415
+ {
416
+ case self::STATUS_ON_HOLD:
417
+ if (!get_post_meta($order->id, '_order_stock_reduced', $single = true))
418
+ {
419
+ // Reduce order stock
420
+ $order->reduce_order_stock();
421
+
422
+ Mollie_WC_Plugin::debug(__METHOD__ . ": Stock for order {$order->id} reduced.");
423
+ }
424
+
425
+ break;
426
+
427
+ case self::STATUS_PENDING:
428
+ case self::STATUS_FAILED:
429
+ case self::STATUS_CANCELLED:
430
+ if (get_post_meta($order->id, '_order_stock_reduced', $single = true))
431
+ {
432
+ // Restore order stock
433
+ Mollie_WC_Plugin::getDataHelper()->restoreOrderStock($order);
434
+
435
+ Mollie_WC_Plugin::debug(__METHOD__ . " Stock for order {$order->id} restored.");
436
+ }
437
+
438
+ break;
439
+ }
440
+ }
441
+
442
  public function webhookAction ()
443
  {
444
  // Webhook test by Mollie
585
  ->setCancelledMolliePaymentId($order->id, $payment->id);
586
 
587
  // Reset state
588
+ $this->updateOrderStatus($order, self::STATUS_PENDING);
589
 
590
  // User cancelled payment on Mollie or issuer page, add a cancel note.. do not cancel order.
591
  $order->add_order_note(sprintf(
604
  {
605
  Mollie_WC_Plugin::debug(__METHOD__ . ' called.');
606
 
607
+ // Cancel order
608
+ $this->updateOrderStatus($order, self::STATUS_CANCELLED);
609
 
610
  $order->add_order_note(sprintf(
611
  /* translators: Placeholder 1: payment method title, placeholder 2: payment ID */
627
  {
628
  Mollie_WC_Plugin::addNotice(__('You have cancelled your payment. Please complete your order with a different payment method.', 'mollie-payments-for-woocommerce'));
629
 
630
+ if (method_exists($order, 'get_checkout_payment_url'))
631
+ {
632
+ /*
633
+ * Return to order payment page
634
+ */
635
+ return $order->get_checkout_payment_url(false);
636
+ }
637
+
638
+ /*
639
+ * Return to cart
640
+ */
641
  return WC()->cart->get_checkout_url();
642
  }
643
 
644
+ /*
645
+ * Return to order received page
646
+ */
647
  return $this->get_return_url($order);
648
  }
649
 
815
  */
816
  protected function orderNeedsPayment (WC_Order $order)
817
  {
818
+ if ($order->needs_payment())
819
+ {
820
+ return true;
821
+ }
822
+
823
+ // Has initial order status 'on-hold'
824
+ if ($this->getInitialOrderStatus() === self::STATUS_ON_HOLD && Mollie_WC_Plugin::getDataHelper()->hasOrderStatus($order, self::STATUS_ON_HOLD))
825
+ {
826
+ return true;
827
+ }
828
+
829
+ return false;
830
  }
831
 
832
  /**
853
  /**
854
  * @return string
855
  */
856
+ protected function getInitialOrderStatus ()
857
  {
858
+ if ($this->paymentConfirmationAfterCoupleOfDays())
859
+ {
860
+ return $this->get_option('initial_order_status');
861
+ }
862
+
863
+ return self::STATUS_PENDING;
864
  }
865
 
866
  /**
875
  'key' => $order->order_key,
876
  ), $return_url);
877
 
878
+ return apply_filters(Mollie_WC_Plugin::PLUGIN_ID . '_return_url', $return_url, $order);
879
  }
880
 
881
  /**
includes/mollie/wc/gateway/banktransfer.php CHANGED
@@ -102,21 +102,13 @@ class Mollie_WC_Gateway_BankTransfer extends Mollie_WC_Gateway_Abstract
102
  }
103
 
104
  /**
105
- * @return string
106
- */
107
- protected function getInitialStatus ()
108
- {
109
- return 'on-hold';
110
- }
111
-
112
- /**
113
- * @param WC_Order $order
114
  * @return bool
115
  */
116
- protected function orderNeedsPayment (WC_Order $order)
117
  {
118
- // needs_payment() searches using valid_statusses, but does not include on-hold status, so we add it here.
119
- return parent::orderNeedsPayment($order) || Mollie_WC_Plugin::getDataHelper()->hasOrderStatus($order, 'on-hold');
120
  }
121
 
122
  /**
102
  }
103
 
104
  /**
105
+ * {@inheritdoc}
106
+ *
 
 
 
 
 
 
 
107
  * @return bool
108
  */
109
+ protected function paymentConfirmationAfterCoupleOfDays ()
110
  {
111
+ return true;
 
112
  }
113
 
114
  /**
includes/mollie/wc/gateway/directdebit.php CHANGED
@@ -25,6 +25,16 @@ class Mollie_WC_Gateway_DirectDebit extends Mollie_WC_Gateway_Abstract
25
  return '';
26
  }
27
 
 
 
 
 
 
 
 
 
 
 
28
  /**
29
  * @param WC_Order $order
30
  * @param Mollie_API_Object_Payment $payment
25
  return '';
26
  }
27
 
28
+ /**
29
+ * {@inheritdoc}
30
+ *
31
+ * @return bool
32
+ */
33
+ protected function paymentConfirmationAfterCoupleOfDays ()
34
+ {
35
+ return true;
36
+ }
37
+
38
  /**
39
  * @param WC_Order $order
40
  * @param Mollie_API_Object_Payment $payment
includes/mollie/wc/helper/data.php CHANGED
@@ -32,6 +32,16 @@ class Mollie_WC_Helper_Data
32
  $this->api_helper = $api_helper;
33
  }
34
 
 
 
 
 
 
 
 
 
 
 
35
  /**
36
  * @param string $transient
37
  * @return string
@@ -178,9 +188,15 @@ class Mollie_WC_Helper_Data
178
  'api_issuers_live',
179
  );
180
 
 
 
 
181
  foreach ($transient_names as $transient_name)
182
  {
183
- delete_transient($this->getTransientId($transient_name));
 
 
 
184
  }
185
  }
186
 
@@ -236,9 +252,11 @@ class Mollie_WC_Helper_Data
236
  return self::$api_methods;
237
  }
238
 
 
 
239
  try
240
  {
241
- $transient_id = $this->getTransientId('api_methods_' . ($test_mode ? 'test' : 'live'));
242
 
243
  if ($use_cache)
244
  {
@@ -291,9 +309,11 @@ class Mollie_WC_Helper_Data
291
  */
292
  public function getIssuers ($test_mode = false, $method = NULL)
293
  {
 
 
294
  try
295
  {
296
- $transient_id = $this->getTransientId('api_issuers_' . ($test_mode ? 'test' : 'live'));
297
 
298
  if (empty(self::$api_issuers))
299
  {
@@ -455,4 +475,41 @@ class Mollie_WC_Helper_Data
455
 
456
  return !empty($cancelled_payment_id);
457
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
458
  }
32
  $this->api_helper = $api_helper;
33
  }
34
 
35
+ /**
36
+ * Get current locale
37
+ *
38
+ * @return string
39
+ */
40
+ protected function getCurrentLocale ()
41
+ {
42
+ return apply_filters('wpml_current_language', get_locale());
43
+ }
44
+
45
  /**
46
  * @param string $transient
47
  * @return string
188
  'api_issuers_live',
189
  );
190
 
191
+ $languages = array_keys(apply_filters('wpml_active_languages', array()));
192
+ $languages[] = $this->getCurrentLocale();
193
+
194
  foreach ($transient_names as $transient_name)
195
  {
196
+ foreach ($languages as $language)
197
+ {
198
+ delete_transient($this->getTransientId($transient_name . "_$language"));
199
+ }
200
  }
201
  }
202
 
252
  return self::$api_methods;
253
  }
254
 
255
+ $locale = $this->getCurrentLocale();
256
+
257
  try
258
  {
259
+ $transient_id = $this->getTransientId('api_methods_' . ($test_mode ? 'test' : 'live') . "_$locale");
260
 
261
  if ($use_cache)
262
  {
309
  */
310
  public function getIssuers ($test_mode = false, $method = NULL)
311
  {
312
+ $locale = $this->getCurrentLocale();
313
+
314
  try
315
  {
316
+ $transient_id = $this->getTransientId('api_issuers_' . ($test_mode ? 'test' : 'live') . "_$locale");
317
 
318
  if (empty(self::$api_issuers))
319
  {
475
 
476
  return !empty($cancelled_payment_id);
477
  }
478
+
479
+ /**
480
+ * @param WC_Order $order
481
+ */
482
+ public function restoreOrderStock (WC_Order $order)
483
+ {
484
+ foreach ($order->get_items() as $item)
485
+ {
486
+ if ($item['product_id'] > 0)
487
+ {
488
+ $product = $order->get_product_from_item($item);
489
+
490
+ if ($product && $product->exists() && $product->managing_stock())
491
+ {
492
+ $old_stock = $product->stock;
493
+
494
+ $qty = apply_filters( 'woocommerce_order_item_quantity', $item['qty'], $order, $item);
495
+
496
+ $new_quantity = $product->increase_stock( $qty );
497
+
498
+ do_action('woocommerce_auto_stock_restored', $product, $item);
499
+
500
+ $order->add_order_note(sprintf(
501
+ __('Item #%s stock incremented from %s to %s.', 'woocommerce'),
502
+ $item['product_id'],
503
+ $old_stock,
504
+ $new_quantity
505
+ ));
506
+
507
+ $order->send_stock_notifications($product, $new_quantity, $item['qty']);
508
+ }
509
+ }
510
+ }
511
+
512
+ // Mark order stock as not-reduced
513
+ delete_post_meta($order->id, '_order_stock_reduced');
514
+ }
515
  }
includes/mollie/wc/helper/settings.php CHANGED
@@ -52,7 +52,7 @@ class Mollie_WC_Helper_Settings
52
  if ($setting == 'wp_locale')
53
  {
54
  // Send current locale to Mollie
55
- return get_locale();
56
  }
57
  else
58
  {
@@ -65,6 +65,16 @@ class Mollie_WC_Helper_Settings
65
  return null;
66
  }
67
 
 
 
 
 
 
 
 
 
 
 
68
  /**
69
  * @return bool
70
  */
@@ -341,7 +351,7 @@ class Mollie_WC_Helper_Settings
341
  'options' => array(
342
  '' => __('Detect using browser language', 'mollie-payments-for-woocommerce'),
343
  /* translators: Placeholder 1: Current WordPress locale */
344
- 'wp_locale' => sprintf(__('Send WordPress language (%s)', 'mollie-payments-for-woocommerce'), get_locale()) . ' (' . __('default', 'mollie-payments-for-woocommerce') . ')',
345
  'nl_NL' => __('Dutch', 'mollie-payments-for-woocommerce'),
346
  'nl_BE' => __('Flemish (Belgium)', 'mollie-payments-for-woocommerce'),
347
  'en' => __('English', 'mollie-payments-for-woocommerce'),
52
  if ($setting == 'wp_locale')
53
  {
54
  // Send current locale to Mollie
55
+ return $this->getCurrentLocale();
56
  }
57
  else
58
  {
65
  return null;
66
  }
67
 
68
+ /**
69
+ * Get current locale
70
+ *
71
+ * @return string
72
+ */
73
+ public function getCurrentLocale ()
74
+ {
75
+ return apply_filters('wpml_current_language', get_locale());
76
+ }
77
+
78
  /**
79
  * @return bool
80
  */
351
  'options' => array(
352
  '' => __('Detect using browser language', 'mollie-payments-for-woocommerce'),
353
  /* translators: Placeholder 1: Current WordPress locale */
354
+ 'wp_locale' => sprintf(__('Send WordPress language (%s)', 'mollie-payments-for-woocommerce'), $this->getCurrentLocale()) . ' (' . __('default', 'mollie-payments-for-woocommerce') . ')',
355
  'nl_NL' => __('Dutch', 'mollie-payments-for-woocommerce'),
356
  'nl_BE' => __('Flemish (Belgium)', 'mollie-payments-for-woocommerce'),
357
  'en' => __('English', 'mollie-payments-for-woocommerce'),
includes/mollie/wc/plugin.php CHANGED
@@ -6,7 +6,7 @@ class Mollie_WC_Plugin
6
  {
7
  const PLUGIN_ID = 'mollie-payments-for-woocommerce';
8
  const PLUGIN_TITLE = 'Mollie Payments for WooCommerce';
9
- const PLUGIN_VERSION = '2.0.1';
10
 
11
  /**
12
  * @var bool
6
  {
7
  const PLUGIN_ID = 'mollie-payments-for-woocommerce';
8
  const PLUGIN_TITLE = 'Mollie Payments for WooCommerce';
9
+ const PLUGIN_VERSION = '2.1.0';
10
 
11
  /**
12
  * @var bool
mollie-payments-for-woocommerce.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Mollie Payments for WooCommerce
4
  * Plugin URI: https://github.com/mollie/WooCommerce
5
  * Description: Accept payments in WooCommerce with Mollie iDEAL, Credit Card, Bancontact/Mister Cash, Bank Transfer, PayPal, Bitcoin, paysafecard and SOFORT Banking
6
- * Version: 2.0.1
7
  * Author: Mollie
8
  * Author URI: https://www.mollie.com
9
  * Requires at least: 3.8
3
  * Plugin Name: Mollie Payments for WooCommerce
4
  * Plugin URI: https://github.com/mollie/WooCommerce
5
  * Description: Accept payments in WooCommerce with Mollie iDEAL, Credit Card, Bancontact/Mister Cash, Bank Transfer, PayPal, Bitcoin, paysafecard and SOFORT Banking
6
+ * Version: 2.1.0
7
  * Author: Mollie
8
  * Author URI: https://www.mollie.com
9
  * Requires at least: 3.8
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Mollie Payments for WooCommerce ===
2
  Contributors: l.vangunst, daanvm
3
- Tags: mollie, payments, woocommerce, e-commerce, webshop, psp, ideal, sofort, credit card, creditcard, visa, mastercard, mistercash, bancontact, bitcoin, paysafecard, banktransfer, overboeking, betalingen
4
  Requires at least: 3.8
5
  Tested up to: 4.3.1
6
- Stable tag: 2.0.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -17,6 +17,7 @@ This plugin will add support for the following Mollie payments methods to your W
17
  * Banktransfer
18
  * Credit card
19
  * Bancontact / Mister Cash
 
20
  * PayPal
21
  * SOFORT banking
22
  * Belfius Direct Net
@@ -33,6 +34,7 @@ Please go to the [signup page](https://www.mollie.com/nl/signup) to create a new
33
  * Multiple translations: English, Dutch, German and French
34
  * Event log for debugging purposes
35
  * WordPress Multisite support
 
36
 
37
  == Frequently Asked Questions ==
38
 
@@ -59,6 +61,11 @@ Most of the time a white screen means a PHP error. Because PHP won't show error
59
  * Please check your Mollie dashboard to check if there are failed webhook reports. Mollie tried to report the payment status to your website but something went wrong.
60
  * Contact info@mollie.com with your Mollie partner ID and the order number. We can investigate the specific payment and check whether Mollie successfully reported the payment state to your webshop.
61
 
 
 
 
 
 
62
  = I have a different question about this plugin =
63
 
64
  Please contact info@mollie.com with your Mollie partner ID, please describe your problem as detailed as possible. Include screenshots where appropriate.
@@ -112,6 +119,14 @@ Automatic updates should work like a charm; as always though, ensure you backup
112
  * Add support for SEPA Direct Debit.
113
  * Add message for Belfius, Bitcoin, Bancontact/Mister Cash and paysafecard when the payment is paid successfully.
114
 
 
 
 
 
 
 
 
 
115
 
116
  == Upgrade Notice ==
117
 
1
  === Mollie Payments for WooCommerce ===
2
  Contributors: l.vangunst, daanvm
3
+ Tags: mollie, payments, woocommerce, e-commerce, webshop, psp, ideal, sofort, credit card, creditcard, visa, mastercard, mistercash, bancontact, bitcoin, paysafecard, direct debit, incasso, sepa, banktransfer, overboeking, betalingen
4
  Requires at least: 3.8
5
  Tested up to: 4.3.1
6
+ Stable tag: 2.1.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
17
  * Banktransfer
18
  * Credit card
19
  * Bancontact / Mister Cash
20
+ * SEPA Direct Debit
21
  * PayPal
22
  * SOFORT banking
23
  * Belfius Direct Net
34
  * Multiple translations: English, Dutch, German and French
35
  * Event log for debugging purposes
36
  * WordPress Multisite support
37
+ * WPML support
38
 
39
  == Frequently Asked Questions ==
40
 
61
  * Please check your Mollie dashboard to check if there are failed webhook reports. Mollie tried to report the payment status to your website but something went wrong.
62
  * Contact info@mollie.com with your Mollie partner ID and the order number. We can investigate the specific payment and check whether Mollie successfully reported the payment state to your webshop.
63
 
64
+ = Why do orders with payment method BankTransfer and Direct Debit get the status 'on-hold'? =
65
+
66
+ These payment methods take longer than a few hours to complete. The order status is set to 'on-hold' to prevent the WooCommerce setting 'Hold stock (minutes)' (https://docs.woothemes.com/document/configuring-woocommerce-settings/#inventory-options) will
67
+ cancel the order. The order stock is also reduced to reserve stock for these orders. The stock is restored if the payment fails or is cancelled. You can change the initial order status for these payment methods on there setting page.
68
+
69
  = I have a different question about this plugin =
70
 
71
  Please contact info@mollie.com with your Mollie partner ID, please describe your problem as detailed as possible. Include screenshots where appropriate.
119
  * Add support for SEPA Direct Debit.
120
  * Add message for Belfius, Bitcoin, Bancontact/Mister Cash and paysafecard when the payment is paid successfully.
121
 
122
+ = 2.1.0 - 01/12/2015 =
123
+ * For payment methods where the payment status will be delivered after a couple of days you can set the initial order status. Choose between `on-hold` or `pending`.
124
+ * Get the correct current locale (with support for [WPML](https://wpml.org)).
125
+ * Cache payment methods and issuers by locale.
126
+ * Cancel order when payment is expired.
127
+ * Reduce order when initial order status is `on-hold`. Restore order stock when payment fails.
128
+ * Hide payment gateway when cart exceeds method min / max amount. Method min / max amount is returned by Mollie API.
129
+ * Add filter to change the return URL.
130
 
131
  == Upgrade Notice ==
132