69 Commits
v1.0 ... master

Author SHA1 Message Date
Wouter van Os
3a9b89a235 Merge pull request #113 from lennarttd/master
Update payment methods
2025-12-08 17:44:19 +01:00
Lennart Dreves
3cba71bc53 Added TWINT payment method 2025-12-08 00:06:36 +01:00
Lennart Dreves
3baec5213b Added Trustly payment method 2025-12-08 00:06:01 +01:00
Lennart Dreves
e98d43a21c Added Riverty payment method 2025-12-08 00:05:20 +01:00
Lennart Dreves
4eaf7282a7 Added Satispay payment method 2025-12-08 00:03:38 +01:00
Lennart Dreves
56a5807ab4 Added Pay By Bank payment method 2025-12-08 00:02:53 +01:00
Lennart Dreves
b943522a15 Added Multibanco payment method 2025-12-08 00:01:28 +01:00
Lennart Dreves
68d4fd291e Added MB Way payment method 2025-12-08 00:00:40 +01:00
Lennart Dreves
b30cf479f5 Added Klarna payment methods 2025-12-07 23:59:52 +01:00
Lennart Dreves
ed5e6d8d55 Added iDEAL in3 payment method 2025-12-07 23:57:07 +01:00
Lennart Dreves
d383244989 Updated iDEAL payment method 2025-12-07 23:55:47 +01:00
Lennart Dreves
4a25437b79 Added Swish payment method 2025-12-07 23:55:22 +01:00
Lennart Dreves
77def8d286 Removed Giropay payment method 2025-12-07 23:54:19 +01:00
Lennart Dreves
def58b956c Added BLIK payment method 2025-12-07 23:53:19 +01:00
Lennart Dreves
498b1240fb Added Billie payment method 2025-12-07 23:52:47 +01:00
Lennart Dreves
8faa67d630 Removed Sofort Banking payment method 2025-12-07 23:49:23 +01:00
Lennart Dreves
aa339a11cc Update Belfius Pay Button payment method 2025-12-07 23:49:06 +01:00
Lennart Dreves
490570d104 Added BANCOMAT Pay payment method 2025-12-07 23:48:08 +01:00
Lennart Dreves
644553385e Added Bacs payment method 2025-12-07 23:46:08 +01:00
Lennart Dreves
f060c837fd Added Alma payment method 2025-12-07 23:45:07 +01:00
Lennart Dreves
8bc6a3004b Bump Mollie API version 2025-12-07 23:40:29 +01:00
Wouter van Os
8b0ee80c4b feat: implement iDeal 2.0 support
Not sure what happened in the previous commit, here we go again.
2025-07-04 09:37:11 +02:00
Wouter van Os
8352ca7b32 feat: fix payment ID length
The current value is too small, increasing it to 64 bytes.
2025-06-24 16:07:00 +02:00
Wouter van Os
bf67c41604 feat: implement iDeal 2.0 support
Untested & draft, but this change should implement iDeal 2.0. The only thing I've heard is that we should remove issuer selection.
2024-12-17 11:41:34 +01:00
Wouter van Os
4e3fc4f1cb feat: extend bank transfers to 100 days validity 2021-10-26 14:30:59 +02:00
Wouter van Os
f3378c5181 Merge pull request #80 from adrijanb/remove_ing
Remove ING Home Pay
2021-02-16 09:26:13 +01:00
Adrijan Bajrami
b70fec170f Remove ING Home Pay 2021-02-15 01:08:18 +01:00
Wouter van Os
f107379191 Update dependencies to latest versions 2020-09-30 10:42:16 +02:00
Sven.v.r
e5b27108f7 Update + Fix Gruzzle (Working for WHMCS 8.0.0 Beta3) (#66)
Update (Working for WHMCS 8.0.0 Beta3).
Tested With PHP 7.3 & 7.4
2020-08-19 13:59:17 +02:00
Wouter van Os
88446ee9a3 Add fallback for checkout 2020-05-25 17:50:16 +02:00
Wouter van Os
8f8aee016d Added some fancy badges. 2020-05-25 16:52:35 +02:00
Wouter van Os
f01ce080a4 Linked to WHMCS versioning table 2020-05-25 15:50:08 +02:00
Wouter van Os
ed2cb8da15 Renamed file to download in README 2020-05-25 15:47:37 +02:00
Wouter van Os
3b5df871b8 Updated plugin to gateway 2020-05-25 15:43:00 +02:00
Wouter van Os
4c31da5ba3 Added support for the Mollie Payments checkout page 2020-05-25 15:42:05 +02:00
Wouter van Os
baf13db08b Rewritten to English 2020-05-25 15:39:52 +02:00
Wouter van Os
16f333c39c Rename module to WHMCS Mollie Payments
This to better separate the 2 different Mollie services: Payments and Recurring.
2020-04-01 11:54:13 +02:00
Wouter van Os
664b2a7cfb Fix redirect for addfunds
This fixes addfunds requests somehow.
2020-02-10 17:34:18 +01:00
Thomas
fd9a3e39b1 Fix #53 (#55)
Een extra / in de URL zou niet uit moeten maken, bij mijn eigen site werkt dat verder. Bij bijv. Google ook: https://www.google.nl////search?q=mollie+whmcs
2019-06-24 20:42:48 +02:00
Wouter van Os
c2857294b3 Added Apply Pay 2019-05-27 16:23:55 +02:00
Wouter van Os
e356f9cfc1 Removed Bitcoin because Mollie removed the payment method 2019-05-27 16:23:27 +02:00
Wouter van Os
6d65280c6e Added Przelewy24 payment provider 2019-04-24 17:09:48 +02:00
Wouter van Os
95348ada82 Update iDeal script for new Mollie API 2018-10-02 13:27:32 +02:00
Wouter van Os
19979d9f28 Update README for composer 2018-09-12 20:47:04 +02:00
Wouter van Os
d00fe4db09 Updated README 2018-09-12 20:36:23 +02:00
Wouter van Os
27d3ae1745 Reformatted code and added support for all payment methods
This commit adds the following payment methods:
- EPS
- Giftcards
- Giropay
- ING Home'Pay
- KBC/CBC

I've also ran a reformatter to clean up the code and added composer
instead of git modules. The latter enables us to keep up-to-date
with the last Mollie library in a more modern manner.
2018-09-12 20:29:20 +02:00
Wouter van Os
7bd9cb9340 Fix for the rename between bancontact and mistercash. (#43) 2018-08-24 15:38:57 +02:00
Jesse Geerts
b16e3708e3 Update README.md (#42)
Tikfout eruit gehaald
2018-08-24 15:38:20 +02:00
Wouter van Os
4858b1f496 Update translations (#40) 2018-05-30 11:54:12 +02:00
Wouter van Os
dcfab1de41 Update README.md 2018-05-28 09:03:51 +02:00
Wouter van Os
23301c82b0 Update README.md 2018-05-28 09:01:21 +02:00
Wouter van Os
714e467110 Update README.md 2018-05-26 23:02:24 +02:00
Wouter van Os
78849639dd Update README.md 2018-05-26 23:02:03 +02:00
Wouter van Os
b879299be7 Merge pull request #35 from qarizma/master
Renamed gateways and fixed conflict
2018-05-26 22:54:59 +02:00
Qarizma
330d74e8c9 Renamed gateways and fixed conflict
This commit should fix the conflict issues.
2018-04-20 21:33:29 +02:00
Qarizma
a789cc6ec0 Merge pull request #1 from 0100Dev/master
Update from original
2018-02-21 09:20:55 +01:00
Wouter van Os
6a3c0eb5f3 Fix update conflict with WHMCS
This will fix issue #15
2018-01-10 12:20:14 +01:00
Wouter van Os
d164ddc0d3 Merge pull request #29 from qarizma/master
Minor updates voor de gateway
2017-10-09 20:47:16 +02:00
qarizma
7e92cf1609 Updated README 2017-10-06 20:58:38 +02:00
qarizma
8a5418c216 Updated README
Added important note about mollieideal.php.
2017-10-06 20:52:56 +02:00
qarizma
d4050b5e5d Mistercash is Bancontact now
These changes are cosmetically, because Mollie still uses the old name internally.
2017-10-06 20:47:53 +02:00
Wouter van Os
e5c0ac7bc7 Merge pull request #24 from qarizma/master
Fixed slash in SystemURL parameter
2017-06-05 18:18:59 +02:00
qarizma
33b7093be7 Fixed slash in systemurl
SystemURL should always end with a / in WHMCS, so adding another / isn't required and causes errors.
2017-06-05 15:49:38 +02:00
Wouter van Os
034fc6e2c2 Remove Direct Debit as it's only supported through Mollie Recurring 2016-12-21 20:31:54 +01:00
Wouter van Os
cb6ec43159 Added warning notice to download correct file 2016-07-07 14:16:06 +02:00
Wouter van Os
6eecdf7896 Merge pull request #7 from CloudOfTheBlue/add-creditcard-method
Add creditcard payment method
2015-12-07 10:02:29 +01:00
Nicky Gerritsen
27974a3474 Add creditcard payment method 2015-12-06 19:44:28 +01:00
Wouter van Os
42b183d409 Added FTP install instructions 2015-11-17 10:41:33 +01:00
Wouter van Os
ba87b6acc7 Update mv to cp for moving between devices
This commit fixes issue #3.
2015-11-17 09:55:28 +01:00
50 changed files with 1277 additions and 244 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
.idea/ .idea/
src/mollie/vendor/

3
.gitmodules vendored
View File

@@ -1,3 +0,0 @@
[submodule "src/mollie/vendor/Mollie"]
path = src/mollie/vendor/Mollie
url = https://github.com/mollie/mollie-api-php.git

View File

@@ -1,13 +1,21 @@
# Installatie # # WHMCS Mollie Payments gateway ![GitHub All Releases](https://img.shields.io/github/downloads/0100Dev/WHMCS-Mollie-Payments/total) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/0100Dev/WHMCS-Mollie-Payments)
+ Ga naar de root van de WHMCS installatie (de hoofd folder) en voer het onderstaande commando uit. Unofficial Mollie Payments gateway for WHMCS. This free gateway does NOT support Mollie Recurring, only Molie Payments. For Mollie Recurring we have a [paid](https://0100dev.nl/modules/whmcs#WHMCS%20Mollie%20Recurring) gateway. These gateways are not dependent on each other and can operate side by side, but also without each other.
+ ``` git clone --recursive https://github.com/0100Dev/WHMCS-Mollie.git /tmp/whmcs && sudo mv /tmp/whmcs/src ./modules/gateways/```
# Ondersteunde betaalmethodes # Compatible with **all** WHMCS versions that are [supported by WHMCS](https://docs.whmcs.com/Long_Term_Support#WHMCS_Version_.26_LTS_Schedule).
Alle betaalmethodes van Mollie zijn ondersteund. Zet de gewenste betaalmethodes aan door de gateway in WHMCS te activeren.
# Support # ### Installation
Support alleen in Github via haar issuetracker. + Log in to your (s)FTP.
+ Download the `WHMCS-Mollie-Payments.zip` from the [releases page](https://github.com/0100Dev/WHMCS-Mollie/releases) (**PLEASE NOTE:** **not** `Source code (zip)` or `Source code (tar.gz)`!).
+ Upload all the files from the `src` folder to the `/modules/gateways` folder in your WHMCS installation.
[Meer informatie via Mollie](https://www.mollie.nl/betaaldiensten/) ### Payment Methodes
All payment methods from Mollie are supported (which is also supported by their API). Enable the desired payment methods by activating the gateway in WHMCS.
![Powerd By Mollie](http://www.mollie.nl/images/badge-betaling-medium.png) Support for new payment methods must be added manually, due to the structure of this gateway. It can therefore take a while before a new payment method is supported. Is it urgent? Contact our paid support or add support for it yourself and contribute it back using a pull request.
You can use `Mollie Checkout` to use the Mollie Payments checkout pages. In this case it'll use the Mollie Payments checkout screen and show all enabled payment methodes in your Mollie account.
### Support
Support is best-effort through the Github issue tracker. Business support (responsetime within 24 hours, normally less then 1 hour) through our [website](https://0100dev.nl/) against our hourly rate at € 75,- excl. VAT. Please create an account at our website before contacting us.
[More information through Mollie about Mollie Payments](https://www.mollie.com/en/payments)

8
composer.json Normal file
View File

@@ -0,0 +1,8 @@
{
"require": {
"mollie/mollie-api-php": "^3.7"
},
"config": {
"vendor-dir": "src/mollie/vendor"
}
}

501
composer.lock generated Normal file
View File

@@ -0,0 +1,501 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "cf5ed5a56673041dedb10fab56defab1",
"packages": [
{
"name": "composer/ca-bundle",
"version": "1.2.8",
"source": {
"type": "git",
"url": "https://github.com/composer/ca-bundle.git",
"reference": "8a7ecad675253e4654ea05505233285377405215"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/8a7ecad675253e4654ea05505233285377405215",
"reference": "8a7ecad675253e4654ea05505233285377405215",
"shasum": ""
},
"require": {
"ext-openssl": "*",
"ext-pcre": "*",
"php": "^5.3.2 || ^7.0 || ^8.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8.35 || ^5.7 || 6.5 - 8",
"psr/log": "^1.0",
"symfony/process": "^2.5 || ^3.0 || ^4.0 || ^5.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
}
},
"autoload": {
"psr-4": {
"Composer\\CaBundle\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Jordi Boggiano",
"email": "j.boggiano@seld.be",
"homepage": "http://seld.be"
}
],
"description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.",
"keywords": [
"cabundle",
"cacert",
"certificate",
"ssl",
"tls"
],
"time": "2020-08-23T12:54:47+00:00"
},
{
"name": "guzzlehttp/guzzle",
"version": "7.1.0",
"source": {
"type": "git",
"url": "https://github.com/guzzle/guzzle.git",
"reference": "7edeaa528fbb57123028bd5a76b9ce9540194e26"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/7edeaa528fbb57123028bd5a76b9ce9540194e26",
"reference": "7edeaa528fbb57123028bd5a76b9ce9540194e26",
"shasum": ""
},
"require": {
"ext-json": "*",
"guzzlehttp/promises": "^1.0",
"guzzlehttp/psr7": "^1.6.1",
"php": "^7.2.5",
"psr/http-client": "^1.0"
},
"provide": {
"psr/http-client-implementation": "1.0"
},
"require-dev": {
"ext-curl": "*",
"php-http/client-integration-tests": "dev-phpunit8",
"phpunit/phpunit": "^8.5.5",
"psr/log": "^1.1"
},
"suggest": {
"ext-curl": "Required for CURL handler support",
"ext-intl": "Required for Internationalized Domain Name (IDN) support",
"psr/log": "Required for using the Log middleware"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "7.1-dev"
}
},
"autoload": {
"psr-4": {
"GuzzleHttp\\": "src/"
},
"files": [
"src/functions_include.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
},
{
"name": "Márk Sági-Kazár",
"email": "mark.sagikazar@gmail.com",
"homepage": "https://sagikazarmark.hu"
}
],
"description": "Guzzle is a PHP HTTP client library",
"homepage": "http://guzzlephp.org/",
"keywords": [
"client",
"curl",
"framework",
"http",
"http client",
"psr-18",
"psr-7",
"rest",
"web service"
],
"time": "2020-09-22T09:10:04+00:00"
},
{
"name": "guzzlehttp/promises",
"version": "1.4.0",
"source": {
"type": "git",
"url": "https://github.com/guzzle/promises.git",
"reference": "60d379c243457e073cff02bc323a2a86cb355631"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/promises/zipball/60d379c243457e073cff02bc323a2a86cb355631",
"reference": "60d379c243457e073cff02bc323a2a86cb355631",
"shasum": ""
},
"require": {
"php": ">=5.5"
},
"require-dev": {
"symfony/phpunit-bridge": "^4.4 || ^5.1"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.4-dev"
}
},
"autoload": {
"psr-4": {
"GuzzleHttp\\Promise\\": "src/"
},
"files": [
"src/functions_include.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
}
],
"description": "Guzzle promises library",
"keywords": [
"promise"
],
"time": "2020-09-30T07:37:28+00:00"
},
{
"name": "guzzlehttp/psr7",
"version": "1.7.0",
"source": {
"type": "git",
"url": "https://github.com/guzzle/psr7.git",
"reference": "53330f47520498c0ae1f61f7e2c90f55690c06a3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/psr7/zipball/53330f47520498c0ae1f61f7e2c90f55690c06a3",
"reference": "53330f47520498c0ae1f61f7e2c90f55690c06a3",
"shasum": ""
},
"require": {
"php": ">=5.4.0",
"psr/http-message": "~1.0",
"ralouphie/getallheaders": "^2.0.5 || ^3.0.0"
},
"provide": {
"psr/http-message-implementation": "1.0"
},
"require-dev": {
"ext-zlib": "*",
"phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10"
},
"suggest": {
"laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.7-dev"
}
},
"autoload": {
"psr-4": {
"GuzzleHttp\\Psr7\\": "src/"
},
"files": [
"src/functions_include.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
},
{
"name": "Tobias Schultze",
"homepage": "https://github.com/Tobion"
}
],
"description": "PSR-7 message implementation that also provides common utility methods",
"keywords": [
"http",
"message",
"psr-7",
"request",
"response",
"stream",
"uri",
"url"
],
"time": "2020-09-30T07:37:11+00:00"
},
{
"name": "mollie/mollie-api-php",
"version": "v2.23.0",
"source": {
"type": "git",
"url": "https://github.com/mollie/mollie-api-php.git",
"reference": "bc44a7417a734b92a770213b9f0dc6642e7b5a3c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/mollie/mollie-api-php/zipball/bc44a7417a734b92a770213b9f0dc6642e7b5a3c",
"reference": "bc44a7417a734b92a770213b9f0dc6642e7b5a3c",
"shasum": ""
},
"require": {
"composer/ca-bundle": "^1.1",
"ext-curl": "*",
"ext-json": "*",
"ext-openssl": "*",
"guzzlehttp/guzzle": "^6.3 || ^7.0",
"php": ">=5.6"
},
"require-dev": {
"eloquent/liberator": "^2.0",
"phpunit/phpunit": "^5.7 || ^6.5 || ^7.1"
},
"suggest": {
"mollie/oauth2-mollie-php": "Use OAuth to authenticate with the Mollie API. This is needed for some endpoints. Visit https://docs.mollie.com/ for more information."
},
"type": "library",
"autoload": {
"psr-4": {
"Mollie\\Api\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-2-Clause"
],
"authors": [
{
"name": "Mollie B.V.",
"email": "info@mollie.com"
}
],
"description": "Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.",
"homepage": "https://www.mollie.com/en/developers",
"keywords": [
"Apple Pay",
"CBC",
"Przelewy24",
"api",
"bancontact",
"banktransfer",
"belfius",
"belfius direct net",
"charges",
"creditcard",
"direct debit",
"fashioncheque",
"gateway",
"gift cards",
"ideal",
"inghomepay",
"intersolve",
"kbc",
"klarna",
"mistercash",
"mollie",
"paylater",
"payment",
"payments",
"paypal",
"paysafecard",
"podiumcadeaukaart",
"recurring",
"refunds",
"sepa",
"service",
"sliceit",
"sofort",
"sofortbanking",
"subscriptions"
],
"time": "2020-09-17T13:56:43+00:00"
},
{
"name": "psr/http-client",
"version": "1.0.1",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-client.git",
"reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
"reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
"shasum": ""
},
"require": {
"php": "^7.0 || ^8.0",
"psr/http-message": "^1.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"autoload": {
"psr-4": {
"Psr\\Http\\Client\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "http://www.php-fig.org/"
}
],
"description": "Common interface for HTTP clients",
"homepage": "https://github.com/php-fig/http-client",
"keywords": [
"http",
"http-client",
"psr",
"psr-18"
],
"time": "2020-06-29T06:28:15+00:00"
},
{
"name": "psr/http-message",
"version": "1.0.1",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-message.git",
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
"shasum": ""
},
"require": {
"php": ">=5.3.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"autoload": {
"psr-4": {
"Psr\\Http\\Message\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "http://www.php-fig.org/"
}
],
"description": "Common interface for HTTP messages",
"homepage": "https://github.com/php-fig/http-message",
"keywords": [
"http",
"http-message",
"psr",
"psr-7",
"request",
"response"
],
"time": "2016-08-06T14:39:51+00:00"
},
{
"name": "ralouphie/getallheaders",
"version": "3.0.3",
"source": {
"type": "git",
"url": "https://github.com/ralouphie/getallheaders.git",
"reference": "120b605dfeb996808c31b6477290a714d356e822"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822",
"reference": "120b605dfeb996808c31b6477290a714d356e822",
"shasum": ""
},
"require": {
"php": ">=5.6"
},
"require-dev": {
"php-coveralls/php-coveralls": "^2.1",
"phpunit/phpunit": "^5 || ^6.5"
},
"type": "library",
"autoload": {
"files": [
"src/getallheaders.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Ralph Khattar",
"email": "ralph.khattar@gmail.com"
}
],
"description": "A polyfill for getallheaders.",
"time": "2019-03-08T08:55:37+00:00"
}
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": []
}

View File

@@ -5,7 +5,7 @@
* *
*/ */
require_once __DIR__ . '/../../../init.php'; require_once __DIR__ . '/../../../init.php';
require_once __DIR__ . '/vendor/Mollie/src/Mollie/API/Autoloader.php'; require_once __DIR__ . '/vendor/autoload.php';
$whmcs->load_function('gateway'); $whmcs->load_function('gateway');
$whmcs->load_function('invoice'); $whmcs->load_function('invoice');
@@ -29,7 +29,13 @@ if(isset($_POST['id'])) {
$transaction = mysql_fetch_assoc($transactionQuery); $transaction = mysql_fetch_assoc($transactionQuery);
$_GATEWAY = getGatewayVariables('mollie' . $transaction['method']); $method = $transaction['method'];
if (empty($method)) {
$method = 'checkout';
}
$_GATEWAY = getGatewayVariables('mollie' . $method . '_devapp');
if ($transaction['status'] != 'open') { if ($transaction['status'] != 'open') {
logTransaction($_GATEWAY['paymentmethod'], array_merge($transaction, $_POST), 'Callback - Failure 3 (Transaction not open)'); logTransaction($_GATEWAY['paymentmethod'], array_merge($transaction, $_POST), 'Callback - Failure 3 (Transaction not open)');
@@ -44,7 +50,7 @@ if(isset($_POST['id'])) {
$transactionCurrency = mysql_fetch_assoc($transactionCurrency); $transactionCurrency = mysql_fetch_assoc($transactionCurrency);
// Check payment // Check payment
$mollie = new Mollie_API_Client; $mollie = new \Mollie\Api\MollieApiClient();
$mollie->setApiKey($_GATEWAY['key']); $mollie->setApiKey($_GATEWAY['key']);
$payment = $mollie->payments->get($_POST['id']); $payment = $mollie->payments->get($_POST['id']);

View File

@@ -6,14 +6,21 @@ $_GATEWAYLANG['selectBank'] = 'Selecteer bank';
$_GATEWAYLANG['errorTransactionNotFound'] = 'Transactie is niet gevonden. Probeer later opnieuw'; $_GATEWAYLANG['errorTransactionNotFound'] = 'Transactie is niet gevonden. Probeer later opnieuw';
$_GATEWAYLANG['checkPayment'] = 'We controleren je betalen, even wachten.'; $_GATEWAYLANG['checkPayment'] = 'We controleren je betaling, moment geduld...';
$_GATEWAYLANG['payWithBanktransfer'] = 'Betaal met Bank overschrijving'; $_GATEWAYLANG['payWithBanktransfer'] = 'Betaal met Bank overschrijving';
$_GATEWAYLANG['payWithBelfius'] = 'Betaal met Belfius'; $_GATEWAYLANG['payWithBelfius'] = 'Betaal met Belfius';
$_GATEWAYLANG['payWithBitcoin'] = 'Betaal met Bitcoin'; $_GATEWAYLANG['payWithCreditcard'] = 'Betaal met Creditcard';
$_GATEWAYLANG['payWithDirectdebit'] = 'Betaal met Automatisch Incasso';
$_GATEWAYLANG['payWithIdeal'] = 'Betaal met iDeal'; $_GATEWAYLANG['payWithIdeal'] = 'Betaal met iDeal';
$_GATEWAYLANG['payWithMistercash'] = 'Betaal met Mistercash'; $_GATEWAYLANG['payWithBancontact'] = 'Betaal met Bancontact';
$_GATEWAYLANG['payWithPaypal'] = 'Betaal met PayPal'; $_GATEWAYLANG['payWithPaypal'] = 'Betaal met PayPal';
$_GATEWAYLANG['payWithPaysafecard'] = 'Betaal met Paysafecard'; $_GATEWAYLANG['payWithPaysafecard'] = 'Betaal met Paysafecard';
$_GATEWAYLANG['payWithSofort'] = 'Betaal met Sofort Banking'; $_GATEWAYLANG['payWithSofort'] = 'Betaal met Sofort Banking';
$_GATEWAYLANG['payWithEps'] = 'Betaal met EPS';
$_GATEWAYLANG['payWithGiftcard'] = 'Betaal met een cadeaukaart';
$_GATEWAYLANG['payWithGiropay'] = 'Betaal met Giropay';
$_GATEWAYLANG['payWithInghomepay'] = 'Betaal met ING Home\'Pay';
$_GATEWAYLANG['payWithKbc'] = 'Betaal met KBC/CBC-betaalknop';
$_GATEWAYLANG['payWithPrzelewy24'] = 'Betaal met Przelewy24';
$_GATEWAYLANG['payWithApplepay'] = 'Betaal met Apple Pay';
$_GATEWAYLANG['payWith'] = 'Betaal met Mollie';

View File

@@ -3,18 +3,24 @@
$_GATEWAYLANG = array(); $_GATEWAYLANG = array();
$_GATEWAYLANG['selectBank'] = 'Select bank'; $_GATEWAYLANG['selectBank'] = 'Select bank';
$_GATEWAYLANG['selectLater'] = 'Select later';
$_GATEWAYLANG['errorTransactionNotFound'] = 'Transaction is not found. Please try again.'; $_GATEWAYLANG['errorTransactionNotFound'] = 'Transaction is not found. Please try again.';
$_GATEWAYLANG['checkPayment'] = 'Checking your payment.. Please wait.'; $_GATEWAYLANG['checkPayment'] = 'Checking your payment, please wait...';
$_GATEWAYLANG['payWithBanktransfer'] = 'Pay with Bank Transfer'; $_GATEWAYLANG['payWithBanktransfer'] = 'Pay with Bank Transfer';
$_GATEWAYLANG['payWithBelfius'] = 'Pay with Belfius'; $_GATEWAYLANG['payWithBelfius'] = 'Pay with Belfius';
$_GATEWAYLANG['payWithBitcoin'] = 'Pay with Bitcoin'; $_GATEWAYLANG['payWithCreditcard'] = 'Pay with Credit Card';
$_GATEWAYLANG['payWithDirectdebit'] = 'Pay with Direct Debit';
$_GATEWAYLANG['payWithIdeal'] = 'Pay with iDeal'; $_GATEWAYLANG['payWithIdeal'] = 'Pay with iDeal';
$_GATEWAYLANG['payWithMistercash'] = 'Pay with Mistercash'; $_GATEWAYLANG['payWithBancontact'] = 'Pay with Bancontact';
$_GATEWAYLANG['payWithPaypal'] = 'Pay with PayPal'; $_GATEWAYLANG['payWithPaypal'] = 'Pay with PayPal';
$_GATEWAYLANG['payWithPaysafecard'] = 'Pay with Paysafecard'; $_GATEWAYLANG['payWithPaysafecard'] = 'Pay with Paysafecard';
$_GATEWAYLANG['payWithSofort'] = 'Pay with Sofort Banking'; $_GATEWAYLANG['payWithSofort'] = 'Pay with Sofort Banking';
$_GATEWAYLANG['payWithEps'] = 'Pay with EPS';
$_GATEWAYLANG['payWithGiftcard'] = 'Pay with a gift card';
$_GATEWAYLANG['payWithGiropay'] = 'Pay with Giropay';
$_GATEWAYLANG['payWithInghomepay'] = 'Pay with ING Home\'Pay';
$_GATEWAYLANG['payWithKbc'] = 'Pay with KBC/CBC Payment Button';
$_GATEWAYLANG['payWithPrzelewy24'] = 'Pay with Przelewy24';
$_GATEWAYLANG['payWithApplepay'] = 'Pay with Apple Pay';
$_GATEWAYLANG['payWith'] = 'Pay with Mollie';

View File

@@ -1,19 +1,21 @@
<?php <?php
require_once __DIR__ . '/vendor/Mollie/src/Mollie/API/Autoloader.php'; require_once __DIR__ . '/vendor/autoload.php';
function mollie_config() { function mollie_config()
{
return array( return array(
'key' => array( 'key' => array(
'FriendlyName' => 'API key', 'FriendlyName' => 'API key',
'Type' => 'text', 'Type' => 'text',
'Size' => '35', 'Size' => '35',
'Description' => 'Your channel\'s API key.' 'Description' => 'Your channels API key.'
) )
); );
} }
function mollie_link($params, $method = Mollie_API_Object_Method::IDEAL) { function mollie_link($params, $method = Mollie_API_Object_Method::IDEAL)
{
global $whmcs; global $whmcs;
/** /**
@@ -39,10 +41,16 @@ function mollie_link($params, $method = Mollie_API_Object_Method::IDEAL) {
$tableCheckQuery = full_query('SHOW TABLES LIKE \'gateway_mollie\''); $tableCheckQuery = full_query('SHOW TABLES LIKE \'gateway_mollie\'');
if (mysql_num_rows($tableCheckQuery) != 1) { if (mysql_num_rows($tableCheckQuery) != 1) {
full_query('CREATE TABLE IF NOT EXISTS `gateway_mollie` (`id` int(11) NOT NULL AUTO_INCREMENT, `paymentid` varchar(15), `amount` double NOT NULL, `currencyid` int(11) NOT NULL, `ip` varchar(50) NOT NULL, `userid` int(11) NOT NULL, `invoiceid` int(11) NOT NULL, `status` ENUM(\'open\',\'paid\',\'closed\') NOT NULL DEFAULT \'open\', `method` VARCHAR(25) NOT NULL, `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `paymentid` (`paymentid`)) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;'); full_query('CREATE TABLE IF NOT EXISTS `gateway_mollie` (`id` int(11) NOT NULL AUTO_INCREMENT, `paymentid` varchar(64), `amount` double NOT NULL, `currencyid` int(11) NOT NULL, `ip` varchar(50) NOT NULL, `userid` int(11) NOT NULL, `invoiceid` int(11) NOT NULL, `status` ENUM(\'open\',\'paid\',\'closed\') NOT NULL DEFAULT \'open\', `method` VARCHAR(25) NOT NULL, `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `paymentid` (`paymentid`)) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;');
} }
$mollie = new Mollie_API_Client; $paymentIdQuery = full_query("SHOW COLUMNS FROM `gateway_mollie` WHERE `Field` = 'paymentid' AND `Type` LIKE '%64%'");
if (mysql_num_rows($paymentIdQuery) == 0) {
full_query("ALTER TABLE `gateway_mollie` CHANGE `paymentid` `paymentid` VARCHAR(64);");
}
$mollie = new \Mollie\Api\MollieApiClient();
$mollie->setApiKey($params['key']); $mollie->setApiKey($params['key']);
/** /**
@@ -66,10 +74,10 @@ function mollie_link($params, $method = Mollie_API_Object_Method::IDEAL) {
header('location: ' . $params['returnurl'] . '&paymentfailed=true'); header('location: ' . $params['returnurl'] . '&paymentfailed=true');
exit(); exit();
} else { } else {
return '<br/><img src="' . $params['systemurl'] . '/modules/gateways/mollie/ajax_loader.gif" /><br/>' . $_GATEWAYLANG['checkPayment'] . ' <script> window.onload = function(){ setTimeout("location.reload(true);", 2000); } </script>'; return '<br/><img src="' . $params['systemurl'] . 'modules/gateways/mollie/ajax_loader.gif" /><br/>' . $_GATEWAYLANG['checkPayment'] . ' <script> window.onload = function(){ setTimeout("location.reload(true);", 2000); } </script>';
} }
} else { } else {
if (isset($_POST['start']) || (isset($_GET['a']) && $_GET['a'] == 'complete') || (isset($_GET['action']) && ($_GET['action'] == 'addfunds' || $_GET['action'] == 'masspay') && isset($_POST['paymentmethod']) && $_POST['paymentmethod'] == 'mollie' . $method)) { if (isset($_POST['start']) || isset($_POST['issuer']) || (isset($_GET['a']) && $_GET['a'] == 'complete') || (isset($_GET['action']) && ($_GET['action'] == 'addfunds' || $_GET['action'] == 'masspay') && isset($_POST['paymentmethod']) && $_POST['paymentmethod'] == 'mollie' . $method)) {
$transactionCurrency = select_query('tblcurrencies', '', array('code' => $params['currency']), null, null, 1); $transactionCurrency = select_query('tblcurrencies', '', array('code' => $params['currency']), null, null, 1);
$transactionCurrency = mysql_fetch_assoc($transactionCurrency); $transactionCurrency = mysql_fetch_assoc($transactionCurrency);
@@ -84,7 +92,10 @@ function mollie_link($params, $method = Mollie_API_Object_Method::IDEAL) {
)); ));
$payment = $mollie->payments->create(array( $payment = $mollie->payments->create(array(
'amount' => $params['amount'], 'amount' => [
'value' => $params['amount'],
'currency' => $params['currency'],
],
'method' => $method, 'method' => $method,
'description' => $params['description'], 'description' => $params['description'],
'redirectUrl' => $params['returnurl'] . '&check_payment=' . $transactionId, 'redirectUrl' => $params['returnurl'] . '&check_payment=' . $transactionId,
@@ -92,29 +103,15 @@ function mollie_link($params, $method = Mollie_API_Object_Method::IDEAL) {
'metadata' => array( 'metadata' => array(
'invoice_id' => $params['invoiceid'], 'invoice_id' => $params['invoiceid'],
), ),
'issuer' => ((isset($_POST['issuer']) && !empty($_POST['issuer'])) ? $_POST['issuer'] : NULL) 'dueDate' => (($method == \Mollie\Api\Types\PaymentMethod::BANKTRANSFER) ? date('Y-m-d', strtotime('+100 days')) : NULL),
)); ));
update_query('gateway_mollie', array('paymentid' => $payment->id), array('id' => $transactionId)); update_query('gateway_mollie', array('paymentid' => $payment->id), array('id' => $transactionId));
header('Location: ' . $payment->getPaymentUrl()); header('Location: ' . $payment->getCheckoutUrl());
exit(); exit();
} else { } else {
$return = '<form action="" method="POST">'; $return = '<form action="viewinvoice.php?id=' . $params['invoiceid'] . '" method="POST">';
if ($method == Mollie_API_Object_Method::IDEAL) {
$issuers = $mollie->issuers->all();
$return .= '<label for="issuer">' . $_GATEWAYLANG['selectBank'] . ':</label> ';
$return .= '<select name="issuer">';
foreach ($issuers as $issuer) {
if ($issuer->method == Mollie_API_Object_Method::IDEAL) {
$return .= '<option value=' . htmlspecialchars($issuer->id) . '>' . htmlspecialchars($issuer->name) . '</option>';
}
}
$return .= '</select>';
}
$return .= '<input type="submit" name="start" value="' . $_GATEWAYLANG['payWith' . ucfirst($method)] . '" /></form>'; $return .= '<input type="submit" name="start" value="' . $_GATEWAYLANG['payWith' . ucfirst($method)] . '" /></form>';

22
src/molliealma_devapp.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliealma_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Alma'
)
));
return $config;
}
function molliealma_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::ALMA);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function mollieapplepay_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Apple Pay'
)
));
return $config;
}
function mollieapplepay_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::APPLEPAY);
}

22
src/molliebacs_devapp.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliebacs_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Bacs'
)
));
return $config;
}
function molliebacs_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::BACS);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliebancomatpay_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie BANCOMAT Pay'
)
));
return $config;
}
function molliebancomatpay_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::BANCOMATPAY);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliebancontact_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Bancontact'
)
));
return $config;
}
function molliebancontact_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::BANCONTACT);
}

View File

@@ -1,20 +0,0 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliebanktransfer_config() {
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value'=> 'Mollie Bank Transfer'
)
));
return $config;
}
function molliebanktransfer_link($params) {
return mollie_link($params, Mollie_API_Object_Method::BANKTRANSFER);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliebanktransfer_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Bank Transfer'
)
));
return $config;
}
function molliebanktransfer_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::BANKTRANSFER);
}

View File

@@ -1,20 +0,0 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliebelfius_config() {
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value'=> 'Mollie Belfius'
)
));
return $config;
}
function molliebelfius_link($params) {
return mollie_link($params, Mollie_API_Object_Method::BELFIUS);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliebelfius_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Belfius Pay Button'
)
));
return $config;
}
function molliebelfius_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::BELFIUS);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliebillie_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Billie'
)
));
return $config;
}
function molliebillie_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::BILLIE);
}

View File

@@ -1,20 +0,0 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliebitcoin_config() {
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value'=> 'Mollie Bitcoin'
)
));
return $config;
}
function molliebitcoin_link($params) {
return mollie_link($params, Mollie_API_Object_Method::BITCOIN);
}

22
src/mollieblik_devapp.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function mollieblik_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie BLIK'
)
));
return $config;
}
function mollieblik_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::BLIK);
}

View File

@@ -0,0 +1,23 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliecheckout_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Checkout'
)
));
return $config;
}
function molliecheckout_devapp_link($params)
{
return mollie_link($params, null);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliecreditcard_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Creditcard'
)
));
return $config;
}
function molliecreditcard_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::CREDITCARD);
}

View File

@@ -1,20 +0,0 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliedirectdebit_config() {
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value'=> 'Mollie Direct Debit'
)
));
return $config;
}
function molliedirectdebit_link($params) {
return mollie_link($params, Mollie_API_Object_Method::DIRECTDEBIT);
}

22
src/mollieeps_devapp.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function mollieeps_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie EPS'
)
));
return $config;
}
function mollieeps_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::EPS);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliegiftcard_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Giftcard'
)
));
return $config;
}
function molliegiftcard_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::GIFTCARD);
}

View File

@@ -1,20 +0,0 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function mollieideal_config() {
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value'=> 'Mollie iDeal'
)
));
return $config;
}
function mollieideal_link($params) {
return mollie_link($params, Mollie_API_Object_Method::IDEAL);
}

22
src/mollieideal_devapp.php Executable file
View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function mollieideal_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie iDEAL'
)
));
return $config;
}
function mollieideal_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::IDEAL);
}

22
src/molliein3_devapp.php Executable file
View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliein3_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie iDEAL in3'
)
));
return $config;
}
function molliein3_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::IN3);
}

22
src/molliekbc_devapp.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliekbc_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie KBC/CBC Payment Button'
)
));
return $config;
}
function molliekbc_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::KBC);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function mollieklarna_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Klarna'
)
));
return $config;
}
function mollieklarna_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::KLARNA);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function mollieklarnapaylater_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Klarna Pay Later'
)
));
return $config;
}
function mollieklarnapaylater_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::KLARNA_PAY_LATER);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function mollieklarnapaynow_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Klarna Pay Now'
)
));
return $config;
}
function mollieklarnapaynow_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::KLARNA_PAY_NOW);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function mollieklarnasliceit_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Klarna Slice It'
)
));
return $config;
}
function mollieklarnasliceit_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::KLARNA_SLICE_IT);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliembway_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie MB Way'
)
));
return $config;
}
function molliembway_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::MBWAY);
}

View File

@@ -1,20 +0,0 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliemistercash_config() {
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value'=> 'Mollie Mistercash'
)
));
return $config;
}
function molliemistercash_link($params) {
return mollie_link($params, Mollie_API_Object_Method::MISTERCASH);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliemultibanco_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Multibanco'
)
));
return $config;
}
function molliemultibanco_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::MULTIBANCO);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliepaybybank_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Pay By Bank'
)
));
return $config;
}
function molliepaybybank_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::PAYBYBANK);
}

View File

@@ -1,20 +0,0 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliepaypal_config() {
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value'=> 'Mollie PayPal'
)
));
return $config;
}
function molliepaypal_link($params) {
return mollie_link($params, Mollie_API_Object_Method::PAYPAL);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliepaypal_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie PayPal'
)
));
return $config;
}
function molliepaypal_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::PAYPAL);
}

View File

@@ -1,20 +0,0 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliepaysafecard_config() {
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value'=> 'Mollie Paysafecard'
)
));
return $config;
}
function molliepaysafecard_link($params) {
return mollie_link($params, Mollie_API_Object_Method::PAYSAFECARD);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliepaysafecard_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Paysafecard'
)
));
return $config;
}
function molliepaysafecard_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::PAYSAFECARD);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function mollieprzelewy24_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Przelewy24'
)
));
return $config;
}
function mollieprzelewy24_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::PRZELEWY24);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function mollieriverty_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Riverty'
)
));
return $config;
}
function mollieriverty_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::RIVERTY);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliesatispay_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Satispay'
)
));
return $config;
}
function molliesatispay_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::SATISPAY);
}

View File

@@ -1,20 +0,0 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function molliesofort_config() {
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value'=> 'Mollie Sofort Banking'
)
));
return $config;
}
function molliesofort_link($params) {
return mollie_link($params, Mollie_API_Object_Method::SOFORT);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function mollieswish_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Swish'
)
));
return $config;
}
function mollieswish_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::SWISH);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function mollietrustly_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie Trustly'
)
));
return $config;
}
function mollietrustly_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::TRUSTLY);
}

View File

@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/mollie/mollie.php';
function mollietwint_devapp_config()
{
$config = mollie_config();
$config = array_merge($config, array(
'FriendlyName' => array(
'Type' => 'System',
'Value' => 'Mollie TWINT'
)
));
return $config;
}
function mollietwint_devapp_link($params)
{
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::TWINT);
}