Version Description
- 02/10/2015 =
- Add support for SEPA Direct Debit.
- Add message for Belfius, Bitcoin, Bancontact/Mister Cash and paysafecard when the payment is paid successfully.
=
Download this release
Release Info
Developer | l.vangunst |
Plugin | Mollie Payments for WooCommerce |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0 to 2.0.1
- assets/images/directdebit.png +0 -0
- i18n/languages/mollie-payments-for-woocommerce-fr_FR.mo +0 -0
- i18n/languages/mollie-payments-for-woocommerce-fr_FR.po +18 -7
- i18n/languages/mollie-payments-for-woocommerce-nl_NL.mo +0 -0
- i18n/languages/mollie-payments-for-woocommerce-nl_NL.po +17 -7
- i18n/languages/mollie-payments-for-woocommerce.pot +13 -3
- includes/mollie-api-php/README.mdown +4 -1
- includes/mollie-api-php/composer.json +3 -3
- includes/mollie-api-php/examples/1-new-payment.php +2 -0
- includes/mollie-api-php/examples/5-payments-history.php +6 -2
- includes/mollie-api-php/examples/7-refund-payment.php +17 -5
- includes/mollie-api-php/examples/8-custom-payment-webhook.php +0 -71
- includes/mollie-api-php/src/Mollie/API/Client.php +1 -1
- includes/mollie-api-php/src/Mollie/API/Object/Method.php +6 -1
- includes/mollie-api-php/src/Mollie/API/Object/Payment.php +68 -2
- includes/mollie-api-php/src/Mollie/API/Object/Payment/Refund.php +52 -0
- includes/mollie/wc/gateway/abstract.php +8 -0
- includes/mollie/wc/gateway/directdebit.php +50 -0
- includes/mollie/wc/plugin.php +2 -1
- mollie-payments-for-woocommerce.php +2 -2
- readme.txt +10 -4
assets/images/directdebit.png
ADDED
Binary file
|
i18n/languages/mollie-payments-for-woocommerce-fr_FR.mo
CHANGED
Binary file
|
i18n/languages/mollie-payments-for-woocommerce-fr_FR.po
CHANGED
@@ -4,15 +4,15 @@ 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-
|
8 |
-
"PO-Revision-Date: 2015-
|
9 |
"Last-Translator: Lennard van Gunst <lennard@mollie.com>\n"
|
10 |
"Language-Team: Mollie <info@mollie.com>\n"
|
11 |
"Language: fr\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.
|
16 |
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
17 |
|
18 |
#: includes/mollie/wc/gateway/abstract.php:60
|
@@ -156,6 +156,11 @@ msgstr ""
|
|
156 |
"Nous avons pas reçu un statut de paiement définitif. Vous recevrez un email dès que nous "
|
157 |
"recevrons une confirmation de la banque /merchant"
|
158 |
|
|
|
|
|
|
|
|
|
|
|
159 |
#: includes/mollie/wc/gateway/banktransfer.php:32
|
160 |
msgid "Expiry date"
|
161 |
msgstr "date d'expiration"
|
@@ -195,8 +200,8 @@ msgstr "Transfert Bancaire"
|
|
195 |
|
196 |
#. translators: Placeholder 1: consumer name, placeholder 2: consumer IBAN,
|
197 |
#. placeholder 3: consumer BIC
|
198 |
-
#: includes/mollie/wc/gateway/banktransfer.php:144 includes/mollie/wc/gateway/
|
199 |
-
#: includes/mollie/wc/gateway/sofort.php:56
|
200 |
msgid "Payment completed by <strong>%s</strong> (IBAN: %s, BIC: %s)"
|
201 |
msgstr "ordre terminé par <strong>%s</strong> (IBAN: %s, BIC: %s)"
|
202 |
|
@@ -261,6 +266,10 @@ msgstr "Carte de crédit"
|
|
261 |
msgid "Payment completed by <strong>%s</strong>"
|
262 |
msgstr "paiement terminé par <strong>%s<strong>"
|
263 |
|
|
|
|
|
|
|
|
|
264 |
#: includes/mollie/wc/gateway/ideal.php:33
|
265 |
msgid "iDEAL"
|
266 |
msgstr "iDEAL"
|
@@ -361,7 +370,7 @@ msgstr "Regarde le logs"
|
|
361 |
msgid "Log files are saved to <code>%s</code>"
|
362 |
msgstr "Les fichiers journaux sont enregistrés <code>%s</code>"
|
363 |
|
364 |
-
#: includes/mollie/wc/helper/settings.php:278 includes/mollie/wc/plugin.php:
|
365 |
msgid "Mollie settings"
|
366 |
msgstr "Paramètres Mollie"
|
367 |
|
@@ -512,7 +521,7 @@ msgstr ""
|
|
512 |
"Le client Mollie API nécessite les fonctions cURL de PHP suivants pour être disponibles: %s. "
|
513 |
"S’il vous plaît assurez-vous que toutes ces fonctions sont disponibles."
|
514 |
|
515 |
-
#: includes/mollie/wc/plugin.php:
|
516 |
msgid "Logs"
|
517 |
msgstr "Logs"
|
518 |
|
@@ -537,6 +546,8 @@ msgid ""
|
|
537 |
"Accept payments in WooCommerce with Mollie iDEAL, Credit Card, Bancontact/Mister Cash, Bank "
|
538 |
"Transfer, PayPal, Bitcoin, paysafecard and SOFORT Banking"
|
539 |
msgstr ""
|
|
|
|
|
540 |
|
541 |
#. Author of the plugin/theme
|
542 |
msgid "Mollie"
|
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:30+0200\n"
|
9 |
"Last-Translator: Lennard van Gunst <lennard@mollie.com>\n"
|
10 |
"Language-Team: Mollie <info@mollie.com>\n"
|
11 |
"Language: fr\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 |
|
18 |
#: includes/mollie/wc/gateway/abstract.php:60
|
156 |
"Nous avons pas reçu un statut de paiement définitif. Vous recevrez un email dès que nous "
|
157 |
"recevrons une confirmation de la banque /merchant"
|
158 |
|
159 |
+
#. translators: Placeholder 1: payment method
|
160 |
+
#: includes/mollie/wc/gateway/abstract.php:652
|
161 |
+
msgid "Payment completed with <strong>%s</strong>"
|
162 |
+
msgstr "Paiement complété par <strong>%s</strong>"
|
163 |
+
|
164 |
#: includes/mollie/wc/gateway/banktransfer.php:32
|
165 |
msgid "Expiry date"
|
166 |
msgstr "date d'expiration"
|
200 |
|
201 |
#. translators: Placeholder 1: consumer name, placeholder 2: consumer IBAN,
|
202 |
#. placeholder 3: consumer BIC
|
203 |
+
#: includes/mollie/wc/gateway/banktransfer.php:144 includes/mollie/wc/gateway/directdebit.php:41
|
204 |
+
#: includes/mollie/wc/gateway/ideal.php:86 includes/mollie/wc/gateway/sofort.php:56
|
205 |
msgid "Payment completed by <strong>%s</strong> (IBAN: %s, BIC: %s)"
|
206 |
msgstr "ordre terminé par <strong>%s</strong> (IBAN: %s, BIC: %s)"
|
207 |
|
266 |
msgid "Payment completed by <strong>%s</strong>"
|
267 |
msgstr "paiement terminé par <strong>%s<strong>"
|
268 |
|
269 |
+
#: includes/mollie/wc/gateway/directdebit.php:17
|
270 |
+
msgid "SEPA Direct Debit"
|
271 |
+
msgstr "SEPA prélevement automatique"
|
272 |
+
|
273 |
#: includes/mollie/wc/gateway/ideal.php:33
|
274 |
msgid "iDEAL"
|
275 |
msgstr "iDEAL"
|
370 |
msgid "Log files are saved to <code>%s</code>"
|
371 |
msgstr "Les fichiers journaux sont enregistrés <code>%s</code>"
|
372 |
|
373 |
+
#: includes/mollie/wc/helper/settings.php:278 includes/mollie/wc/plugin.php:280
|
374 |
msgid "Mollie settings"
|
375 |
msgstr "Paramètres Mollie"
|
376 |
|
521 |
"Le client Mollie API nécessite les fonctions cURL de PHP suivants pour être disponibles: %s. "
|
522 |
"S’il vous plaît assurez-vous que toutes ces fonctions sont disponibles."
|
523 |
|
524 |
+
#: includes/mollie/wc/plugin.php:287
|
525 |
msgid "Logs"
|
526 |
msgstr "Logs"
|
527 |
|
546 |
"Accept payments in WooCommerce with Mollie iDEAL, Credit Card, Bancontact/Mister Cash, Bank "
|
547 |
"Transfer, PayPal, Bitcoin, paysafecard and SOFORT Banking"
|
548 |
msgstr ""
|
549 |
+
"Accepter les paiements dans WooCommerce avec Mollie iDEAL, Credit Card, Bancontact/Mister "
|
550 |
+
"Cash, Bank Transfer, PayPal, Bitcoin, paysafecard and SOFORT Banking"
|
551 |
|
552 |
#. Author of the plugin/theme
|
553 |
msgid "Mollie"
|
i18n/languages/mollie-payments-for-woocommerce-nl_NL.mo
CHANGED
Binary file
|
i18n/languages/mollie-payments-for-woocommerce-nl_NL.po
CHANGED
@@ -4,15 +4,15 @@ 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-
|
8 |
-
"PO-Revision-Date: 2015-
|
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.
|
16 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
17 |
"X-Poedit-Basepath: ../..\n"
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
@@ -154,6 +154,12 @@ 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 |
#: includes/mollie/wc/gateway/banktransfer.php:32
|
158 |
msgid "Expiry date"
|
159 |
msgstr "Verloopdatum"
|
@@ -192,8 +198,8 @@ msgstr "Overboeking"
|
|
192 |
|
193 |
#. translators: Placeholder 1: consumer name, placeholder 2: consumer IBAN,
|
194 |
#. placeholder 3: consumer BIC
|
195 |
-
#: includes/mollie/wc/gateway/banktransfer.php:144 includes/mollie/wc/gateway/
|
196 |
-
#: includes/mollie/wc/gateway/sofort.php:56
|
197 |
msgid "Payment completed by <strong>%s</strong> (IBAN: %s, BIC: %s)"
|
198 |
msgstr "Betaling afgerond door <strong>%s</strong> (IBAN: %s, BIC: %s)"
|
199 |
|
@@ -256,6 +262,10 @@ msgstr "Creditcard"
|
|
256 |
msgid "Payment completed by <strong>%s</strong>"
|
257 |
msgstr "Betaling afgerond door <strong>%s</strong>"
|
258 |
|
|
|
|
|
|
|
|
|
259 |
#: includes/mollie/wc/gateway/ideal.php:33
|
260 |
msgid "iDEAL"
|
261 |
msgstr "iDEAL"
|
@@ -356,7 +366,7 @@ msgstr "Bekijk logboeken"
|
|
356 |
msgid "Log files are saved to <code>%s</code>"
|
357 |
msgstr "Logboeken worden opgeslagen in <code>%s</code>"
|
358 |
|
359 |
-
#: includes/mollie/wc/helper/settings.php:278 includes/mollie/wc/plugin.php:
|
360 |
msgid "Mollie settings"
|
361 |
msgstr "Mollie instellingen"
|
362 |
|
@@ -505,7 +515,7 @@ msgstr ""
|
|
505 |
"De Mollie API client heeft de volgende PHP cURL functies nodig: %s. Zorg dat al deze functies "
|
506 |
"beschikbaar zijn."
|
507 |
|
508 |
-
#: includes/mollie/wc/plugin.php:
|
509 |
msgid "Logs"
|
510 |
msgstr "Logboeken"
|
511 |
|
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"
|
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 |
+
|
163 |
#: includes/mollie/wc/gateway/banktransfer.php:32
|
164 |
msgid "Expiry date"
|
165 |
msgstr "Verloopdatum"
|
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 |
|
262 |
msgid "Payment completed by <strong>%s</strong>"
|
263 |
msgstr "Betaling afgerond door <strong>%s</strong>"
|
264 |
|
265 |
+
#: includes/mollie/wc/gateway/directdebit.php:17
|
266 |
+
msgid "SEPA Direct Debit"
|
267 |
+
msgstr "SEPA-incasso"
|
268 |
+
|
269 |
#: includes/mollie/wc/gateway/ideal.php:33
|
270 |
msgid "iDEAL"
|
271 |
msgstr "iDEAL"
|
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 |
|
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"
|
520 |
msgstr "Logboeken"
|
521 |
|
i18n/languages/mollie-payments-for-woocommerce.pot
CHANGED
@@ -5,7 +5,7 @@ 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-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -154,6 +154,11 @@ msgid ""
|
|
154 |
"soon as we receive a confirmation of the bank/merchant."
|
155 |
msgstr ""
|
156 |
|
|
|
|
|
|
|
|
|
|
|
157 |
#: includes/mollie/wc/gateway/banktransfer.php:32
|
158 |
msgid "Expiry date"
|
159 |
msgstr ""
|
@@ -192,6 +197,7 @@ msgstr ""
|
|
192 |
#. translators: Placeholder 1: consumer name, placeholder 2: consumer IBAN,
|
193 |
#. placeholder 3: consumer BIC
|
194 |
#: includes/mollie/wc/gateway/banktransfer.php:144
|
|
|
195 |
#: includes/mollie/wc/gateway/ideal.php:86
|
196 |
#: includes/mollie/wc/gateway/sofort.php:56
|
197 |
msgid "Payment completed by <strong>%s</strong> (IBAN: %s, BIC: %s)"
|
@@ -255,6 +261,10 @@ msgstr ""
|
|
255 |
msgid "Payment completed by <strong>%s</strong>"
|
256 |
msgstr ""
|
257 |
|
|
|
|
|
|
|
|
|
258 |
#: includes/mollie/wc/gateway/ideal.php:33
|
259 |
msgid "iDEAL"
|
260 |
msgstr ""
|
@@ -355,7 +365,7 @@ msgid "Log files are saved to <code>%s</code>"
|
|
355 |
msgstr ""
|
356 |
|
357 |
#: includes/mollie/wc/helper/settings.php:278
|
358 |
-
#: includes/mollie/wc/plugin.php:
|
359 |
msgid "Mollie settings"
|
360 |
msgstr ""
|
361 |
|
@@ -495,7 +505,7 @@ msgid ""
|
|
495 |
"available: %s. Please make sure all of these functions are available."
|
496 |
msgstr ""
|
497 |
|
498 |
-
#: includes/mollie/wc/plugin.php:
|
499 |
msgid "Logs"
|
500 |
msgstr ""
|
501 |
|
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"
|
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 |
+
|
162 |
#: includes/mollie/wc/gateway/banktransfer.php:32
|
163 |
msgid "Expiry date"
|
164 |
msgstr ""
|
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)"
|
261 |
msgid "Payment completed by <strong>%s</strong>"
|
262 |
msgstr ""
|
263 |
|
264 |
+
#: includes/mollie/wc/gateway/directdebit.php:17
|
265 |
+
msgid "SEPA Direct Debit"
|
266 |
+
msgstr ""
|
267 |
+
|
268 |
#: includes/mollie/wc/gateway/ideal.php:33
|
269 |
msgid "iDEAL"
|
270 |
msgstr ""
|
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 |
|
505 |
"available: %s. Please make sure all of these functions are available."
|
506 |
msgstr ""
|
507 |
|
508 |
+
#: includes/mollie/wc/plugin.php:287
|
509 |
msgid "Logs"
|
510 |
msgstr ""
|
511 |
|
includes/mollie-api-php/README.mdown
CHANGED
@@ -2,9 +2,11 @@
|
|
2 |
|
3 |
# Mollie API client for PHP #
|
4 |
|
5 |
-
Accepting [iDEAL](https://www.mollie.com/ideal/), [Bancontact/Mister Cash](https://www.mollie.com/mistercash/), [SOFORT Banking](https://www.mollie.com/sofort/), [Creditcard](https://www.mollie.com/creditcard/), [SEPA Bank transfer](https://www.mollie.com/overboeking/), [Bitcoin](https://www.mollie.com/bitcoin/), [PayPal](https://www.mollie.com/paypal/), [Belfius Direct Net](https://www.mollie.com/belfiusdirectnet/) and [paysafecard](https://www.mollie.com/paysafecard/) online payments without fixed monthly costs or any punishing registration procedures. Just use the Mollie API to receive payments directly on your website or easily refund transactions to your customers.
|
6 |
|
7 |
[![Build Status](https://travis-ci.org/mollie/mollie-api-php.png)](https://travis-ci.org/mollie/mollie-api-php)
|
|
|
|
|
8 |
|
9 |
## Requirements ##
|
10 |
To use the Mollie API client, the following things are required:
|
@@ -137,6 +139,7 @@ Contact: [www.mollie.com](https://www.mollie.com) — info@mollie.com — +31 20
|
|
137 |
+ [More information about Bancontact/Mister Cash via Mollie](https://www.mollie.com/mistercash/)
|
138 |
+ [More information about SOFORT Banking via Mollie](https://www.mollie.com/sofort/)
|
139 |
+ [More information about SEPA Bank transfer via Mollie](https://www.mollie.com/overboeking/)
|
|
|
140 |
+ [More information about Bitcoin via Mollie](https://www.mollie.com/bitcoin/)
|
141 |
+ [More information about PayPal via Mollie](https://www.mollie.com/paypal/)
|
142 |
+ [More information about Belfius Direct Net via Mollie](https://www.mollie.com/belfiusdirectnet/)
|
2 |
|
3 |
# Mollie API client for PHP #
|
4 |
|
5 |
+
Accepting [iDEAL](https://www.mollie.com/ideal/), [Bancontact/Mister Cash](https://www.mollie.com/mistercash/), [SOFORT Banking](https://www.mollie.com/sofort/), [Creditcard](https://www.mollie.com/creditcard/), [SEPA Bank transfer](https://www.mollie.com/overboeking/), [SEPA Direct debit](https://www.mollie.com/directdebit/), [Bitcoin](https://www.mollie.com/bitcoin/), [PayPal](https://www.mollie.com/paypal/), [Belfius Direct Net](https://www.mollie.com/belfiusdirectnet/) and [paysafecard](https://www.mollie.com/paysafecard/) online payments without fixed monthly costs or any punishing registration procedures. Just use the Mollie API to receive payments directly on your website or easily refund transactions to your customers.
|
6 |
|
7 |
[![Build Status](https://travis-ci.org/mollie/mollie-api-php.png)](https://travis-ci.org/mollie/mollie-api-php)
|
8 |
+
[![Latest Stable Version](https://poser.pugx.org/mollie/mollie-api-php/v/stable)](https://packagist.org/packages/mollie/mollie-api-php)
|
9 |
+
[![Total Downloads](https://poser.pugx.org/mollie/mollie-api-php/downloads)](https://packagist.org/packages/mollie/mollie-api-php)
|
10 |
|
11 |
## Requirements ##
|
12 |
To use the Mollie API client, the following things are required:
|
139 |
+ [More information about Bancontact/Mister Cash via Mollie](https://www.mollie.com/mistercash/)
|
140 |
+ [More information about SOFORT Banking via Mollie](https://www.mollie.com/sofort/)
|
141 |
+ [More information about SEPA Bank transfer via Mollie](https://www.mollie.com/overboeking/)
|
142 |
+
+ [More information about SEPA Direct debit via Mollie](https://www.mollie.com/directdebit/)
|
143 |
+ [More information about Bitcoin via Mollie](https://www.mollie.com/bitcoin/)
|
144 |
+ [More information about PayPal via Mollie](https://www.mollie.com/paypal/)
|
145 |
+ [More information about Belfius Direct Net via Mollie](https://www.mollie.com/belfiusdirectnet/)
|
includes/mollie-api-php/composer.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"name": "mollie/mollie-api-php",
|
3 |
-
"version": "1.2.
|
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", "belfius", "belfius direct net",
|
16 |
-
"api", "payments", "gateway"
|
17 |
],
|
18 |
"require-dev": {
|
19 |
"phpunit/phpunit": "3.7.*"
|
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 |
],
|
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.*"
|
includes/mollie-api-php/examples/1-new-payment.php
CHANGED
@@ -30,12 +30,14 @@ try
|
|
30 |
* amount Amount in EUROs. This example creates a € 10,- payment.
|
31 |
* description Description of the payment.
|
32 |
* redirectUrl Redirect location. The customer will be redirected there after the payment.
|
|
|
33 |
* metadata Custom metadata that is stored with the payment.
|
34 |
*/
|
35 |
$payment = $mollie->payments->create(array(
|
36 |
"amount" => 10.00,
|
37 |
"description" => "My first API payment",
|
38 |
"redirectUrl" => "{$protocol}://{$hostname}{$path}/3-return-page.php?order_id={$order_id}",
|
|
|
39 |
"metadata" => array(
|
40 |
"order_id" => $order_id,
|
41 |
),
|
30 |
* amount Amount in EUROs. This example creates a € 10,- payment.
|
31 |
* description Description of the payment.
|
32 |
* redirectUrl Redirect location. The customer will be redirected there after the payment.
|
33 |
+
* webhookUrl Webhook location, used to report when the payment changes state.
|
34 |
* metadata Custom metadata that is stored with the payment.
|
35 |
*/
|
36 |
$payment = $mollie->payments->create(array(
|
37 |
"amount" => 10.00,
|
38 |
"description" => "My first API payment",
|
39 |
"redirectUrl" => "{$protocol}://{$hostname}{$path}/3-return-page.php?order_id={$order_id}",
|
40 |
+
"webhookUrl" => "{$protocol}://{$hostname}{$path}/2-webhook-verification.php",
|
41 |
"metadata" => array(
|
42 |
"order_id" => $order_id,
|
43 |
),
|
includes/mollie-api-php/examples/5-payments-history.php
CHANGED
@@ -12,12 +12,16 @@ try
|
|
12 |
*/
|
13 |
include "initialize.php";
|
14 |
|
|
|
|
|
|
|
|
|
15 |
/*
|
16 |
* Get the all payments for this API key ordered by newest.
|
17 |
*/
|
18 |
-
$payments = $mollie->payments->all();
|
19 |
|
20 |
-
foreach ($
|
21 |
{
|
22 |
echo "€ " . htmlspecialchars($payment->amount) . ", status: " . htmlspecialchars($payment->status) . "<br>";
|
23 |
}
|
12 |
*/
|
13 |
include "initialize.php";
|
14 |
|
15 |
+
// Pagination
|
16 |
+
$offset = 0;
|
17 |
+
$limit = 25;
|
18 |
+
|
19 |
/*
|
20 |
* Get the all payments for this API key ordered by newest.
|
21 |
*/
|
22 |
+
$payments = $mollie->payments->all($offset, $limit);
|
23 |
|
24 |
+
foreach ($payments as $payment)
|
25 |
{
|
26 |
echo "€ " . htmlspecialchars($payment->amount) . ", status: " . htmlspecialchars($payment->status) . "<br>";
|
27 |
}
|
includes/mollie-api-php/examples/7-refund-payment.php
CHANGED
@@ -17,12 +17,24 @@ try
|
|
17 |
$payment_id = "tr_q2cLW9pxMT";
|
18 |
$payment = $mollie->payments->get($payment_id);
|
19 |
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
/*
|
28 |
* Retrieve all refunds on a payment.
|
17 |
$payment_id = "tr_q2cLW9pxMT";
|
18 |
$payment = $mollie->payments->get($payment_id);
|
19 |
|
20 |
+
// Check if this payment can be refunded
|
21 |
+
// You can also check if the payment can be partially refunded
|
22 |
+
// by using $payment->canBePartiallyRefunded() and $payment->getAmountRemaining()
|
23 |
+
if ($payment->canBeRefunded())
|
24 |
+
{
|
25 |
+
/*
|
26 |
+
* Refund € 15,00 of the payment.
|
27 |
+
*
|
28 |
+
* https://www.mollie.com/en/docs/refunds#refund-create
|
29 |
+
*/
|
30 |
+
$refund = $mollie->payments->refund($payment, 15.00);
|
31 |
|
32 |
+
echo "€ 15,00 of payment {$payment_id} refunded.", PHP_EOL;
|
33 |
+
}
|
34 |
+
else
|
35 |
+
{
|
36 |
+
echo "Payment {$payment_id} can not be refunded.", PHP_EOL;
|
37 |
+
}
|
38 |
|
39 |
/*
|
40 |
* Retrieve all refunds on a payment.
|
includes/mollie-api-php/examples/8-custom-payment-webhook.php
DELETED
@@ -1,71 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Example 8 - How to use a custom webhookUrl with the Mollie API. Useful for module developers and resellers.
|
4 |
-
*/
|
5 |
-
|
6 |
-
try
|
7 |
-
{
|
8 |
-
/*
|
9 |
-
* Initialize the Mollie API library with your API key.
|
10 |
-
*
|
11 |
-
* See: https://www.mollie.com/beheer/account/profielen/
|
12 |
-
*/
|
13 |
-
include "initialize.php";
|
14 |
-
|
15 |
-
/*
|
16 |
-
* Generate a unique order id for this example. It is important to include this unique attribute
|
17 |
-
* in the redirectUrl (below) so a proper return page can be shown to the customer.
|
18 |
-
*/
|
19 |
-
$order_id = time();
|
20 |
-
|
21 |
-
/*
|
22 |
-
* Determine the url parts to these example files.
|
23 |
-
*/
|
24 |
-
$protocol = isset($_SERVER['HTTPS']) && strcasecmp('off', $_SERVER['HTTPS']) !== 0 ? "https" : "http";
|
25 |
-
$hostname = $_SERVER['HTTP_HOST'];
|
26 |
-
$path = dirname(isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : $_SERVER['PHP_SELF']);
|
27 |
-
|
28 |
-
/*
|
29 |
-
* Payment parameters:
|
30 |
-
* amount Amount in EUROs. This example creates a € 10,- payment.
|
31 |
-
* description Description of the payment.
|
32 |
-
* webhookUrl Custom webhook location, used instead of the default webhook URL in the Website profile.
|
33 |
-
* redirectUrl Redirect location. The customer will be redirected there after the payment.
|
34 |
-
* metadata Custom metadata that is stored with the payment.
|
35 |
-
*/
|
36 |
-
$payment = $mollie->payments->create(array(
|
37 |
-
"amount" => 10.00,
|
38 |
-
"description" => "My first API payment",
|
39 |
-
"webhookUrl" => "{$protocol}://{$hostname}{$path}/2-webhook-verification.php",
|
40 |
-
"redirectUrl" => "{$protocol}://{$hostname}{$path}/3-return-page.php?order_id={$order_id}",
|
41 |
-
"metadata" => array(
|
42 |
-
"order_id" => $order_id,
|
43 |
-
),
|
44 |
-
));
|
45 |
-
|
46 |
-
/*
|
47 |
-
* In this example we store the order with its payment status in a database.
|
48 |
-
*/
|
49 |
-
database_write($order_id, $payment->status);
|
50 |
-
|
51 |
-
/*
|
52 |
-
* Send the customer off to complete the payment.
|
53 |
-
*/
|
54 |
-
header("Location: " . $payment->getPaymentUrl());
|
55 |
-
}
|
56 |
-
catch (Mollie_API_Exception $e)
|
57 |
-
{
|
58 |
-
echo "API call failed: " . htmlspecialchars($e->getMessage());
|
59 |
-
}
|
60 |
-
|
61 |
-
|
62 |
-
/*
|
63 |
-
* NOTE: This example uses a text file as a database. Please use a real database like MySQL in production code.
|
64 |
-
*/
|
65 |
-
function database_write ($order_id, $status)
|
66 |
-
{
|
67 |
-
$order_id = intval($order_id);
|
68 |
-
$database = dirname(__FILE__) . "/orders/order-{$order_id}.txt";
|
69 |
-
|
70 |
-
file_put_contents($database, $status);
|
71 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
38 |
|
39 |
/**
|
40 |
* Endpoint of the remote API.
|
34 |
/**
|
35 |
* Version of our client.
|
36 |
*/
|
37 |
+
const CLIENT_VERSION = "1.2.10";
|
38 |
|
39 |
/**
|
40 |
* Endpoint of the remote API.
|
includes/mollie-api-php/src/Mollie/API/Object/Method.php
CHANGED
@@ -61,13 +61,18 @@ class Mollie_API_Object_Method
|
|
61 |
*/
|
62 |
const BANKTRANSFER = "banktransfer";
|
63 |
|
|
|
|
|
|
|
|
|
|
|
64 |
/**
|
65 |
* @link https://mollie.com/paypal
|
66 |
*/
|
67 |
const PAYPAL = "paypal";
|
68 |
|
69 |
/**
|
70 |
-
* @link https://mollie.com/
|
71 |
*/
|
72 |
const BITCOIN = "bitcoin";
|
73 |
|
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 |
|
includes/mollie-api-php/src/Mollie/API/Object/Payment.php
CHANGED
@@ -66,6 +66,12 @@ class Mollie_API_Object_Payment
|
|
66 |
*/
|
67 |
const STATUS_REFUNDED = "refunded";
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
/**
|
70 |
* Id of the payment (on the Mollie platform).
|
71 |
*
|
@@ -89,7 +95,7 @@ class Mollie_API_Object_Payment
|
|
89 |
|
90 |
/**
|
91 |
* The amount of the payment that has been refunded to the consumer, in EURO with 2 decimals. This field will be
|
92 |
-
* NULL if the payment
|
93 |
*
|
94 |
* @var float|null
|
95 |
*/
|
@@ -97,7 +103,10 @@ class Mollie_API_Object_Payment
|
|
97 |
|
98 |
/**
|
99 |
* The amount of a refunded payment that can still be refunded, in EURO with 2 decimals. This field will be
|
100 |
-
* NULL if the payment
|
|
|
|
|
|
|
101 |
*
|
102 |
* @var float|null
|
103 |
*/
|
@@ -262,6 +271,16 @@ class Mollie_API_Object_Payment
|
|
262 |
return $this->status == self::STATUS_REFUNDED;
|
263 |
}
|
264 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
265 |
/**
|
266 |
* Get the payment URL where the customer can complete the payment.
|
267 |
*
|
@@ -276,4 +295,51 @@ class Mollie_API_Object_Payment
|
|
276 |
|
277 |
return $this->links->paymentUrl;
|
278 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
279 |
}
|
66 |
*/
|
67 |
const STATUS_REFUNDED = "refunded";
|
68 |
|
69 |
+
/**
|
70 |
+
* Some payment methods provide your customers with the ability to dispute payments which could
|
71 |
+
* ultimately lead to a chargeback.
|
72 |
+
*/
|
73 |
+
const STATUS_CHARGED_BACK = "charged_back";
|
74 |
+
|
75 |
/**
|
76 |
* Id of the payment (on the Mollie platform).
|
77 |
*
|
95 |
|
96 |
/**
|
97 |
* The amount of the payment that has been refunded to the consumer, in EURO with 2 decimals. This field will be
|
98 |
+
* NULL if the payment can not be refunded.
|
99 |
*
|
100 |
* @var float|null
|
101 |
*/
|
103 |
|
104 |
/**
|
105 |
* The amount of a refunded payment that can still be refunded, in EURO with 2 decimals. This field will be
|
106 |
+
* NULL if the payment can not be refunded.
|
107 |
+
*
|
108 |
+
* For some payment methods this amount can be higher than the payment amount. This is possible to reimburse
|
109 |
+
* the costs for a return shipment to your customer for example.
|
110 |
*
|
111 |
* @var float|null
|
112 |
*/
|
271 |
return $this->status == self::STATUS_REFUNDED;
|
272 |
}
|
273 |
|
274 |
+
/**
|
275 |
+
* Is this payment charged back?
|
276 |
+
*
|
277 |
+
* @return bool
|
278 |
+
*/
|
279 |
+
public function isChargedBack ()
|
280 |
+
{
|
281 |
+
return $this->status == self::STATUS_CHARGED_BACK;
|
282 |
+
}
|
283 |
+
|
284 |
/**
|
285 |
* Get the payment URL where the customer can complete the payment.
|
286 |
*
|
295 |
|
296 |
return $this->links->paymentUrl;
|
297 |
}
|
298 |
+
|
299 |
+
/**
|
300 |
+
* @return bool
|
301 |
+
*/
|
302 |
+
public function canBeRefunded ()
|
303 |
+
{
|
304 |
+
return $this->amountRemaining !== NULL;
|
305 |
+
}
|
306 |
+
|
307 |
+
/**
|
308 |
+
* @return bool
|
309 |
+
*/
|
310 |
+
public function canBePartiallyRefunded ()
|
311 |
+
{
|
312 |
+
return $this->canBeRefunded() && $this->method !== Mollie_API_Object_Method::CREDITCARD;
|
313 |
+
}
|
314 |
+
|
315 |
+
/**
|
316 |
+
* Get the amount that is already refunded
|
317 |
+
*
|
318 |
+
* @return float
|
319 |
+
*/
|
320 |
+
public function getAmountRefunded ()
|
321 |
+
{
|
322 |
+
if ($this->amountRefunded)
|
323 |
+
{
|
324 |
+
return floatval($this->amountRefunded);
|
325 |
+
}
|
326 |
+
|
327 |
+
return 0;
|
328 |
+
}
|
329 |
+
|
330 |
+
/**
|
331 |
+
* Get the remaining amount that can be refunded. For some payment methods this amount can be higher than
|
332 |
+
* the payment amount. This is possible to reimburse the costs for a return shipment to your customer for example.
|
333 |
+
*
|
334 |
+
* @return float
|
335 |
+
*/
|
336 |
+
public function getAmountRemaining ()
|
337 |
+
{
|
338 |
+
if ($this->amountRemaining)
|
339 |
+
{
|
340 |
+
return floatval($this->amountRemaining);
|
341 |
+
}
|
342 |
+
|
343 |
+
return 0;
|
344 |
+
}
|
345 |
}
|
includes/mollie-api-php/src/Mollie/API/Object/Payment/Refund.php
CHANGED
@@ -31,6 +31,21 @@
|
|
31 |
*/
|
32 |
class Mollie_API_Object_Payment_Refund
|
33 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
/**
|
35 |
* Id of the payment method.
|
36 |
*
|
@@ -58,4 +73,41 @@ class Mollie_API_Object_Payment_Refund
|
|
58 |
* @var string|null
|
59 |
*/
|
60 |
public $refundedDatetime;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
}
|
31 |
*/
|
32 |
class Mollie_API_Object_Payment_Refund
|
33 |
{
|
34 |
+
/**
|
35 |
+
* The refund will be send to the bank on the next business day. You can still cancel the refund.
|
36 |
+
*/
|
37 |
+
const STATUS_PENDING = 'pending';
|
38 |
+
|
39 |
+
/**
|
40 |
+
* The refund has been sent to the bank. The refund amount will be transferred to the consumer account as soon as possible.
|
41 |
+
*/
|
42 |
+
const STATUS_PROCESSING = 'processing';
|
43 |
+
|
44 |
+
/**
|
45 |
+
* The refund amount has been transferred to the consumer.
|
46 |
+
*/
|
47 |
+
const STATUS_REFUNDED = 'refunded';
|
48 |
+
|
49 |
/**
|
50 |
* Id of the payment method.
|
51 |
*
|
73 |
* @var string|null
|
74 |
*/
|
75 |
public $refundedDatetime;
|
76 |
+
|
77 |
+
/**
|
78 |
+
* The refund status
|
79 |
+
*
|
80 |
+
* @var string
|
81 |
+
*/
|
82 |
+
public $status;
|
83 |
+
|
84 |
+
/**
|
85 |
+
* Is this refund pending?
|
86 |
+
*
|
87 |
+
* @return bool
|
88 |
+
*/
|
89 |
+
public function isPending ()
|
90 |
+
{
|
91 |
+
return $this->status == self::STATUS_PENDING;
|
92 |
+
}
|
93 |
+
|
94 |
+
/**
|
95 |
+
* Is this refund processing?
|
96 |
+
*
|
97 |
+
* @return bool
|
98 |
+
*/
|
99 |
+
public function isProcessing ()
|
100 |
+
{
|
101 |
+
return $this->status == self::STATUS_PROCESSING;
|
102 |
+
}
|
103 |
+
|
104 |
+
/**
|
105 |
+
* Is this refund transferred to consumer?
|
106 |
+
*
|
107 |
+
* @return bool
|
108 |
+
*/
|
109 |
+
public function isTransferred ()
|
110 |
+
{
|
111 |
+
return $this->status == self::STATUS_REFUNDED;
|
112 |
+
}
|
113 |
}
|
includes/mollie/wc/gateway/abstract.php
CHANGED
@@ -645,6 +645,14 @@ abstract class Mollie_WC_Gateway_Abstract extends WC_Payment_Gateway
|
|
645 |
return __('We have not received a definite payment status. You will receive an email as soon as we receive a confirmation of the bank/merchant.', 'mollie-payments-for-woocommerce');
|
646 |
}
|
647 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
648 |
|
649 |
return null;
|
650 |
}
|
645 |
return __('We have not received a definite payment status. You will receive an email as soon as we receive a confirmation of the bank/merchant.', 'mollie-payments-for-woocommerce');
|
646 |
}
|
647 |
}
|
648 |
+
elseif ($payment->isPaid())
|
649 |
+
{
|
650 |
+
return sprintf(
|
651 |
+
/* translators: Placeholder 1: payment method */
|
652 |
+
__('Payment completed with <strong>%s</strong>', 'mollie-payments-for-woocommerce'),
|
653 |
+
$this->get_title()
|
654 |
+
);
|
655 |
+
}
|
656 |
|
657 |
return null;
|
658 |
}
|
includes/mollie/wc/gateway/directdebit.php
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Mollie_WC_Gateway_DirectDebit extends Mollie_WC_Gateway_Abstract
|
3 |
+
{
|
4 |
+
/**
|
5 |
+
* @return string
|
6 |
+
*/
|
7 |
+
public function getMollieMethodId ()
|
8 |
+
{
|
9 |
+
return Mollie_API_Object_Method::DIRECTDEBIT;
|
10 |
+
}
|
11 |
+
|
12 |
+
/**
|
13 |
+
* @return string
|
14 |
+
*/
|
15 |
+
public function getDefaultTitle ()
|
16 |
+
{
|
17 |
+
return __('SEPA Direct Debit', 'mollie-payments-for-woocommerce');
|
18 |
+
}
|
19 |
+
|
20 |
+
/**
|
21 |
+
* @return string
|
22 |
+
*/
|
23 |
+
protected function getDefaultDescription ()
|
24 |
+
{
|
25 |
+
return '';
|
26 |
+
}
|
27 |
+
|
28 |
+
/**
|
29 |
+
* @param WC_Order $order
|
30 |
+
* @param Mollie_API_Object_Payment $payment
|
31 |
+
* @param bool $admin_instructions
|
32 |
+
* @param bool $plain_text
|
33 |
+
* @return string|null
|
34 |
+
*/
|
35 |
+
protected function getInstructions (WC_Order $order, Mollie_API_Object_Payment $payment, $admin_instructions, $plain_text)
|
36 |
+
{
|
37 |
+
if ($payment->isPaid() && $payment->details)
|
38 |
+
{
|
39 |
+
return sprintf(
|
40 |
+
/* translators: Placeholder 1: consumer name, placeholder 2: consumer IBAN, placeholder 3: consumer BIC */
|
41 |
+
__('Payment completed by <strong>%s</strong> (IBAN: %s, BIC: %s)', 'mollie-payments-for-woocommerce'),
|
42 |
+
$payment->details->consumerName,
|
43 |
+
implode(' ', str_split($payment->details->consumerAccount, 4)),
|
44 |
+
$payment->details->consumerBic
|
45 |
+
);
|
46 |
+
}
|
47 |
+
|
48 |
+
return parent::getInstructions($order, $payment, $admin_instructions, $plain_text);
|
49 |
+
}
|
50 |
+
}
|
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.
|
10 |
|
11 |
/**
|
12 |
* @var bool
|
@@ -21,6 +21,7 @@ class Mollie_WC_Plugin
|
|
21 |
'Mollie_WC_Gateway_Belfius',
|
22 |
'Mollie_WC_Gateway_Bitcoin',
|
23 |
'Mollie_WC_Gateway_Creditcard',
|
|
|
24 |
'Mollie_WC_Gateway_Ideal',
|
25 |
'Mollie_WC_Gateway_MisterCash',
|
26 |
'Mollie_WC_Gateway_PayPal',
|
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
|
21 |
'Mollie_WC_Gateway_Belfius',
|
22 |
'Mollie_WC_Gateway_Bitcoin',
|
23 |
'Mollie_WC_Gateway_Creditcard',
|
24 |
+
'Mollie_WC_Gateway_DirectDebit',
|
25 |
'Mollie_WC_Gateway_Ideal',
|
26 |
'Mollie_WC_Gateway_MisterCash',
|
27 |
'Mollie_WC_Gateway_PayPal',
|
mollie-payments-for-woocommerce.php
CHANGED
@@ -3,11 +3,11 @@
|
|
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
|
7 |
* Author: Mollie
|
8 |
* Author URI: https://www.mollie.com
|
9 |
* Requires at least: 3.8
|
10 |
-
* Tested up to: 3.
|
11 |
* Text Domain: mollie-payments-for-woocommerce
|
12 |
* Domain Path: /i18n/languages/
|
13 |
* License: GPLv2 or later
|
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
|
10 |
+
* Tested up to: 4.3.1
|
11 |
* Text Domain: mollie-payments-for-woocommerce
|
12 |
* Domain Path: /i18n/languages/
|
13 |
* License: GPLv2 or later
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Mollie Payments for WooCommerce ===
|
2 |
-
Contributors: l.vangunst
|
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.
|
6 |
-
Stable tag: 2.0
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -71,6 +71,7 @@ Where possible, also include the Mollie log file. You can find the Mollie log fi
|
|
71 |
3. The available payment gateways in the checkout.
|
72 |
4. The order received page will display the payment status and customer details if available.
|
73 |
5. The order received page for the gateway banktransfer will display payment instructions.
|
|
|
74 |
|
75 |
== Installation ==
|
76 |
|
@@ -104,9 +105,14 @@ Automatic updates should work like a charm; as always though, ensure you backup
|
|
104 |
|
105 |
== Changelog ==
|
106 |
|
107 |
-
= 2.0.0 =
|
108 |
* Complete rewrite of our WooCommerce plugin to better follow WordPress and WooCommerce standards and add better support for other plugins.
|
109 |
|
|
|
|
|
|
|
|
|
|
|
110 |
== Upgrade Notice ==
|
111 |
|
112 |
= 2.0.0 =
|
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 |
|
71 |
3. The available payment gateways in the checkout.
|
72 |
4. The order received page will display the payment status and customer details if available.
|
73 |
5. The order received page for the gateway banktransfer will display payment instructions.
|
74 |
+
6. Some payment methods support refunds. The 'Refund' button will be available when the payment method supports refunds.
|
75 |
|
76 |
== Installation ==
|
77 |
|
105 |
|
106 |
== Changelog ==
|
107 |
|
108 |
+
= 2.0.0 - 17/08/2015 =
|
109 |
* Complete rewrite of our WooCommerce plugin to better follow WordPress and WooCommerce standards and add better support for other plugins.
|
110 |
|
111 |
+
= 2.0.1 - 02/10/2015 =
|
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 |
|
118 |
= 2.0.0 =
|