mirror of
https://github.com/0100Dev/WHMCS-Mollie-Payments.git
synced 2026-01-18 03:28:18 +01:00
Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b879299be7 | ||
|
|
330d74e8c9 | ||
|
|
a789cc6ec0 | ||
|
|
6a3c0eb5f3 | ||
|
|
d164ddc0d3 | ||
|
|
7e92cf1609 | ||
|
|
8a5418c216 | ||
|
|
d4050b5e5d | ||
|
|
e5c0ac7bc7 | ||
|
|
33b7093be7 | ||
|
|
034fc6e2c2 | ||
|
|
cb6ec43159 | ||
|
|
6eecdf7896 | ||
|
|
27974a3474 | ||
|
|
42b183d409 | ||
|
|
ba87b6acc7 |
29
README.md
29
README.md
@@ -1,13 +1,28 @@
|
||||
# Installatie #
|
||||
+ Ga naar de root van de WHMCS installatie (de hoofd folder) en voer het onderstaande commando uit.
|
||||
+ ``` git clone --recursive https://github.com/0100Dev/WHMCS-Mollie.git /tmp/whmcs && sudo mv /tmp/whmcs/src ./modules/gateways/```
|
||||
# WHMCS Mollie Gateway
|
||||
Onofficiële Mollie gateway voor WHMCS.
|
||||
|
||||
# Ondersteunde betaalmethodes #
|
||||
Compatible met **alle** WHMCS versies.
|
||||
|
||||
### Installatie via SSH
|
||||
+ Log in op SSH (of console) en zorg dat GIT geinstalleerd is op uw webserver.
|
||||
+ Ga naar de root van de WHMCS installatie (de hoofd folder) en voer het onderstaande commando uit.
|
||||
+ ``` git clone --recursive https://github.com/0100Dev/WHMCS-Mollie.git /tmp/whmcs && sudo cp /tmp/whmcs/src ./modules/gateways/```
|
||||
|
||||
### Installatie via FTP
|
||||
+ Log in op FTP.
|
||||
+ Download de `whmcs-mollie.tar.gz` van onze [releases pagina](https://github.com/0100Dev/WHMCS-Mollie/releases) (**LET OP:** **niet** `Source code (zip)` of `Source code (tar.gz)`!).
|
||||
+ Upload alles uit de `src` folder uit de hierboven gedownloaden TAR in de `/modules/gateways` folder van uw WHMCS installatie.
|
||||
+ Opmerking: mollieideal.php van deze module moet de originele van WHMCS overschrijven. Het is tot nu toe nog niet mogelijk om het bestand een andere naam te geven dankzij WHMCS naamgevingen en interne namen.
|
||||
|
||||
### Betaalmethodes
|
||||
Alle betaalmethodes van Mollie zijn ondersteund. Zet de gewenste betaalmethodes aan door de gateway in WHMCS te activeren.
|
||||
|
||||
# Support #
|
||||
### Updates
|
||||
|
||||
#### V1.0 naar V1.1
|
||||
In deze release is een conflict met WHMCS haar Mollie iDeal gateway opgelost. Hierdoor moet je de Mollie IDeal gateway van ons weer opnieuw activeren.
|
||||
|
||||
### Support
|
||||
Support alleen in Github via haar issuetracker.
|
||||
|
||||
[Meer informatie via Mollie](https://www.mollie.nl/betaaldiensten/)
|
||||
|
||||

|
||||
|
||||
@@ -29,7 +29,7 @@ if(isset($_POST['id'])) {
|
||||
|
||||
$transaction = mysql_fetch_assoc($transactionQuery);
|
||||
|
||||
$_GATEWAY = getGatewayVariables('mollie' . $transaction['method']);
|
||||
$_GATEWAY = getGatewayVariables('mollie' . $transaction['method'] . '_devapp');
|
||||
|
||||
if ($transaction['status'] != 'open') {
|
||||
logTransaction($_GATEWAY['paymentmethod'], array_merge($transaction, $_POST), 'Callback - Failure 3 (Transaction not open)');
|
||||
|
||||
@@ -6,14 +6,14 @@ $_GATEWAYLANG['selectBank'] = 'Selecteer bank';
|
||||
|
||||
$_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['payWithBelfius'] = 'Betaal met Belfius';
|
||||
$_GATEWAYLANG['payWithBitcoin'] = 'Betaal met Bitcoin';
|
||||
$_GATEWAYLANG['payWithDirectdebit'] = 'Betaal met Automatisch Incasso';
|
||||
$_GATEWAYLANG['payWithIdeal'] = 'Betaal met iDeal';
|
||||
$_GATEWAYLANG['payWithMistercash'] = 'Betaal met Mistercash';
|
||||
$_GATEWAYLANG['payWithMistercash'] = 'Betaal met Bancontact';
|
||||
$_GATEWAYLANG['payWithPaypal'] = 'Betaal met PayPal';
|
||||
$_GATEWAYLANG['payWithPaysafecard'] = 'Betaal met Paysafecard';
|
||||
$_GATEWAYLANG['payWithSofort'] = 'Betaal met Sofort Banking';
|
||||
@@ -7,14 +7,14 @@ $_GATEWAYLANG['selectLater'] = 'Select later';
|
||||
|
||||
$_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['payWithBelfius'] = 'Pay with Belfius';
|
||||
$_GATEWAYLANG['payWithBitcoin'] = 'Pay with Bitcoin';
|
||||
$_GATEWAYLANG['payWithDirectdebit'] = 'Pay with Direct Debit';
|
||||
$_GATEWAYLANG['payWithIdeal'] = 'Pay with iDeal';
|
||||
$_GATEWAYLANG['payWithMistercash'] = 'Pay with Mistercash';
|
||||
$_GATEWAYLANG['payWithMistercash'] = 'Pay with Bancontact';
|
||||
$_GATEWAYLANG['payWithPaypal'] = 'Pay with PayPal';
|
||||
$_GATEWAYLANG['payWithPaysafecard'] = 'Pay with Paysafecard';
|
||||
$_GATEWAYLANG['payWithSofort'] = 'Pay with Sofort Banking';
|
||||
@@ -66,7 +66,7 @@ function mollie_link($params, $method = Mollie_API_Object_Method::IDEAL) {
|
||||
header('location: ' . $params['returnurl'] . '&paymentfailed=true');
|
||||
exit();
|
||||
} 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 {
|
||||
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)) {
|
||||
@@ -88,7 +88,7 @@ function mollie_link($params, $method = Mollie_API_Object_Method::IDEAL) {
|
||||
'method' => $method,
|
||||
'description' => $params['description'],
|
||||
'redirectUrl' => $params['returnurl'] . '&check_payment=' . $transactionId,
|
||||
'webhookUrl' => $params['systemurl'] . '/modules/gateways/mollie/callback.php',
|
||||
'webhookUrl' => $params['systemurl'] . 'modules/gateways/mollie/callback.php',
|
||||
'metadata' => array(
|
||||
'invoice_id' => $params['invoiceid'],
|
||||
),
|
||||
|
||||
6
src/molliemistercash.php → src/molliebancontact_devapp.php
Executable file → Normal file
6
src/molliemistercash.php → src/molliebancontact_devapp.php
Executable file → Normal file
@@ -2,19 +2,19 @@
|
||||
|
||||
require_once __DIR__ . '/mollie/mollie.php';
|
||||
|
||||
function molliemistercash_config() {
|
||||
function molliebancontact_devapp_config() {
|
||||
$config = mollie_config();
|
||||
|
||||
$config = array_merge($config, array(
|
||||
'FriendlyName' => array(
|
||||
'Type' => 'System',
|
||||
'Value'=> 'Mollie Mistercash'
|
||||
'Value'=> 'Mollie Bancontact'
|
||||
)
|
||||
));
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
function molliemistercash_link($params) {
|
||||
function molliebancontact_devapp_link($params) {
|
||||
return mollie_link($params, Mollie_API_Object_Method::MISTERCASH);
|
||||
}
|
||||
4
src/molliebanktransfer.php → src/molliebanktransfer_devapp.php
Executable file → Normal file
4
src/molliebanktransfer.php → src/molliebanktransfer_devapp.php
Executable file → Normal file
@@ -2,7 +2,7 @@
|
||||
|
||||
require_once __DIR__ . '/mollie/mollie.php';
|
||||
|
||||
function molliebanktransfer_config() {
|
||||
function molliebanktransfer_devapp_config() {
|
||||
$config = mollie_config();
|
||||
|
||||
$config = array_merge($config, array(
|
||||
@@ -15,6 +15,6 @@ function molliebanktransfer_config() {
|
||||
return $config;
|
||||
}
|
||||
|
||||
function molliebanktransfer_link($params) {
|
||||
function molliebanktransfer_devapp_link($params) {
|
||||
return mollie_link($params, Mollie_API_Object_Method::BANKTRANSFER);
|
||||
}
|
||||
4
src/molliebelfius.php → src/molliebelfius_devapp.php
Executable file → Normal file
4
src/molliebelfius.php → src/molliebelfius_devapp.php
Executable file → Normal file
@@ -2,7 +2,7 @@
|
||||
|
||||
require_once __DIR__ . '/mollie/mollie.php';
|
||||
|
||||
function molliebelfius_config() {
|
||||
function molliebelfius_devapp_config() {
|
||||
$config = mollie_config();
|
||||
|
||||
$config = array_merge($config, array(
|
||||
@@ -15,6 +15,6 @@ function molliebelfius_config() {
|
||||
return $config;
|
||||
}
|
||||
|
||||
function molliebelfius_link($params) {
|
||||
function molliebelfius_devapp_link($params) {
|
||||
return mollie_link($params, Mollie_API_Object_Method::BELFIUS);
|
||||
}
|
||||
4
src/molliebitcoin.php → src/molliebitcoin_devapp.php
Executable file → Normal file
4
src/molliebitcoin.php → src/molliebitcoin_devapp.php
Executable file → Normal file
@@ -2,7 +2,7 @@
|
||||
|
||||
require_once __DIR__ . '/mollie/mollie.php';
|
||||
|
||||
function molliebitcoin_config() {
|
||||
function molliebitcoin_devapp_config() {
|
||||
$config = mollie_config();
|
||||
|
||||
$config = array_merge($config, array(
|
||||
@@ -15,6 +15,6 @@ function molliebitcoin_config() {
|
||||
return $config;
|
||||
}
|
||||
|
||||
function molliebitcoin_link($params) {
|
||||
function molliebitcoin_devapp_link($params) {
|
||||
return mollie_link($params, Mollie_API_Object_Method::BITCOIN);
|
||||
}
|
||||
20
src/molliecreditcard_devapp.php
Normal file
20
src/molliecreditcard_devapp.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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_Object_Method::CREDITCARD);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
require_once __DIR__ . '/mollie/mollie.php';
|
||||
|
||||
function mollieideal_config() {
|
||||
function mollieideal_devapp_config() {
|
||||
$config = mollie_config();
|
||||
|
||||
$config = array_merge($config, array(
|
||||
@@ -15,6 +15,6 @@ function mollieideal_config() {
|
||||
return $config;
|
||||
}
|
||||
|
||||
function mollieideal_link($params) {
|
||||
function mollieideal_devapp_link($params) {
|
||||
return mollie_link($params, Mollie_API_Object_Method::IDEAL);
|
||||
}
|
||||
4
src/molliepaypal.php → src/molliepaypal_devapp.php
Executable file → Normal file
4
src/molliepaypal.php → src/molliepaypal_devapp.php
Executable file → Normal file
@@ -2,7 +2,7 @@
|
||||
|
||||
require_once __DIR__ . '/mollie/mollie.php';
|
||||
|
||||
function molliepaypal_config() {
|
||||
function molliepaypal_devapp_config() {
|
||||
$config = mollie_config();
|
||||
|
||||
$config = array_merge($config, array(
|
||||
@@ -15,6 +15,6 @@ function molliepaypal_config() {
|
||||
return $config;
|
||||
}
|
||||
|
||||
function molliepaypal_link($params) {
|
||||
function molliepaypal_devapp_link($params) {
|
||||
return mollie_link($params, Mollie_API_Object_Method::PAYPAL);
|
||||
}
|
||||
4
src/molliepaysafecard.php → src/molliepaysafecard_devapp.php
Executable file → Normal file
4
src/molliepaysafecard.php → src/molliepaysafecard_devapp.php
Executable file → Normal file
@@ -2,7 +2,7 @@
|
||||
|
||||
require_once __DIR__ . '/mollie/mollie.php';
|
||||
|
||||
function molliepaysafecard_config() {
|
||||
function molliepaysafecard_devapp_config() {
|
||||
$config = mollie_config();
|
||||
|
||||
$config = array_merge($config, array(
|
||||
@@ -15,6 +15,6 @@ function molliepaysafecard_config() {
|
||||
return $config;
|
||||
}
|
||||
|
||||
function molliepaysafecard_link($params) {
|
||||
function molliepaysafecard_devapp_link($params) {
|
||||
return mollie_link($params, Mollie_API_Object_Method::PAYSAFECARD);
|
||||
}
|
||||
4
src/molliesofort.php → src/molliesofort_devapp.php
Executable file → Normal file
4
src/molliesofort.php → src/molliesofort_devapp.php
Executable file → Normal file
@@ -2,7 +2,7 @@
|
||||
|
||||
require_once __DIR__ . '/mollie/mollie.php';
|
||||
|
||||
function molliesofort_config() {
|
||||
function molliesofort_devapp_config() {
|
||||
$config = mollie_config();
|
||||
|
||||
$config = array_merge($config, array(
|
||||
@@ -15,6 +15,6 @@ function molliesofort_config() {
|
||||
return $config;
|
||||
}
|
||||
|
||||
function molliesofort_link($params) {
|
||||
function molliesofort_devapp_link($params) {
|
||||
return mollie_link($params, Mollie_API_Object_Method::SOFORT);
|
||||
}
|
||||
Reference in New Issue
Block a user