22 Commits

Author SHA1 Message Date
Wouter van Os
750ff2ebde Update dutch.php 2018-05-30 11:53:51 +02:00
Wouter van Os
5119185bde Update english.php 2018-05-30 11:53:08 +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
15 changed files with 198 additions and 182 deletions

View File

@@ -1,13 +1,29 @@
# Installatie # # WHMCS Mollie Gateway
+ Ga naar de root van de WHMCS installatie (de hoofd folder) en voer het onderstaande commando uit. Onofficiële Mollie gateway voor WHMCS. In deze gratis plugin zit GEEN ondersteuning voor Mollie Recurring (SEPA/Automatisch Incasso). Hiervoor hebben we een [betaalde](https://0100dev.nl/modules/whmcs#WHMCS%20Mollie%20Recurring) plugin. Deze plugins zijn niet afhankelijk van elkaar en kunnen naast elkaar opereren maar ook zonder elkaar.
+ ``` git clone --recursive https://github.com/0100Dev/WHMCS-Mollie.git /tmp/whmcs && sudo mv /tmp/whmcs/src ./modules/gateways/```
# 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.
### Betaalmethodes
Alle betaalmethodes van Mollie zijn ondersteund. Zet de gewenste betaalmethodes aan door de gateway in WHMCS te activeren. Alle betaalmethodes van Mollie zijn ondersteund. Zet de gewenste betaalmethodes aan door de gateway in WHMCS te activeren.
# Support # ### Updates
Support alleen in Github via haar issuetracker.
#### V1.0 naar V2.0
Deze release is NIET compatible met V1.x. Verwijder eerst alle files vanuit je /modules/gateways folder die betrekking hebben op deze gateway. Alles dus met mollie_x.php. In WHMCS dien je ook opnieuw deze gateways in te schakelen. WHMCS zal aangeven dat de ouded gateways niet meer gevonden kunnen worden, dit klopt - verwijder deze en vervang deze met de nieuw ingeschakelde.
Let erop dat je bijvoorbeeld NIET onze mollierecurring.php moet verwijderen, als je onze betaalde Mollie Recurring gateway actief hebt.
### Support
Support op basis van best-effort in Github via haar issuetracker. Bbusiness support (reactietijd van max. 24 uur, normaliter <1 uur) via ons [klantenpaneel](https://my.0100dev.nl/) tegen ons uurtarief a € 45,- excl. VAT. Maak een account aan en stuur via daar een ticket in.
[Meer informatie via Mollie](https://www.mollie.nl/betaaldiensten/) [Meer informatie via Mollie](https://www.mollie.nl/betaaldiensten/)
![Powerd By Mollie](http://www.mollie.nl/images/badge-betaling-medium.png)

View File

@@ -29,7 +29,7 @@ if(isset($_POST['id'])) {
$transaction = mysql_fetch_assoc($transactionQuery); $transaction = mysql_fetch_assoc($transactionQuery);
$_GATEWAY = getGatewayVariables('mollie' . $transaction['method']); $_GATEWAY = getGatewayVariables('mollie' . $transaction['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)');

View File

@@ -6,14 +6,14 @@ $_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['payWithBitcoin'] = 'Betaal met Bitcoin';
$_GATEWAYLANG['payWithDirectdebit'] = 'Betaal met Automatisch Incasso'; $_GATEWAYLANG['payWithCreditcard'] = 'Betaal met Creditcard';
$_GATEWAYLANG['payWithIdeal'] = 'Betaal met iDeal'; $_GATEWAYLANG['payWithIdeal'] = 'Betaal met iDeal';
$_GATEWAYLANG['payWithMistercash'] = 'Betaal met Mistercash'; $_GATEWAYLANG['payWithMistercash'] = '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';

View File

@@ -7,14 +7,14 @@ $_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['payWithBitcoin'] = 'Pay with Bitcoin';
$_GATEWAYLANG['payWithDirectdebit'] = 'Pay with Direct Debit'; $_GATEWAYLANG['payWithCreditcard'] = 'Pay with Credit Card';
$_GATEWAYLANG['payWithIdeal'] = 'Pay with iDeal'; $_GATEWAYLANG['payWithIdeal'] = 'Pay with iDeal';
$_GATEWAYLANG['payWithMistercash'] = 'Pay with Mistercash'; $_GATEWAYLANG['payWithMistercash'] = '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';

View File

@@ -66,7 +66,7 @@ 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($_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, 'method' => $method,
'description' => $params['description'], 'description' => $params['description'],
'redirectUrl' => $params['returnurl'] . '&check_payment=' . $transactionId, 'redirectUrl' => $params['returnurl'] . '&check_payment=' . $transactionId,
'webhookUrl' => $params['systemurl'] . '/modules/gateways/mollie/callback.php', 'webhookUrl' => $params['systemurl'] . 'modules/gateways/mollie/callback.php',
'metadata' => array( 'metadata' => array(
'invoice_id' => $params['invoiceid'], 'invoice_id' => $params['invoiceid'],
), ),
@@ -121,4 +121,4 @@ function mollie_link($params, $method = Mollie_API_Object_Method::IDEAL) {
return $return; return $return;
} }
} }
} }

View File

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

View File

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

40
src/molliebelfius.php → src/molliebelfius_devapp.php Executable file → Normal file
View File

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

40
src/molliebitcoin.php → src/molliebitcoin_devapp.php Executable file → Normal file
View File

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

View 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);
}

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);
}

View File

@@ -2,7 +2,7 @@
require_once __DIR__ . '/mollie/mollie.php'; require_once __DIR__ . '/mollie/mollie.php';
function mollieideal_config() { function mollieideal_devapp_config() {
$config = mollie_config(); $config = mollie_config();
$config = array_merge($config, array( $config = array_merge($config, array(
@@ -15,6 +15,6 @@ function mollieideal_config() {
return $config; return $config;
} }
function mollieideal_link($params) { function mollieideal_devapp_link($params) {
return mollie_link($params, Mollie_API_Object_Method::IDEAL); return mollie_link($params, Mollie_API_Object_Method::IDEAL);
} }

40
src/molliepaypal.php → src/molliepaypal_devapp.php Executable file → Normal file
View File

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

View File

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

40
src/molliesofort.php → src/molliesofort_devapp.php Executable file → Normal file
View File

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