forked from clone/WHMCS-Mollie-Payments
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95348ada82 | ||
|
|
19979d9f28 |
@@ -5,8 +5,13 @@ Compatible met **alle** WHMCS versies.
|
|||||||
|
|
||||||
### Installatie via SSH
|
### Installatie via SSH
|
||||||
+ Log in op SSH (of console) en zorg dat GIT geinstalleerd is op uw webserver.
|
+ 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.
|
+ Ga naar een tijdelijke folder (bijvoorbeeld `/tmp`) 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/```
|
+ ``` git clone https://github.com/0100Dev/WHMCS-Mollie.git```
|
||||||
|
+ Ga in de `WHMCS-Mollie` folder die zojuist met het vorige commando aangemaakt is.
|
||||||
|
+ Installeer Composer op de webserver of volg de instructies [hier](https://getcomposer.org/download/) en voer daarna het onderstaande commando uit.
|
||||||
|
+ ```composer install```
|
||||||
|
+ Ga naar de root van de WHMCS installatie (de hoofd folder) en dan naar `modules/gateways`.
|
||||||
|
+ Kopieer nu alles uit de `WHMCS-Mollie/src` folder van enkele stappen terug naar de huidige folder.
|
||||||
|
|
||||||
### Installatie via FTP
|
### Installatie via FTP
|
||||||
+ Log in op FTP.
|
+ Log in op FTP.
|
||||||
|
|||||||
@@ -108,15 +108,13 @@ function mollie_link($params, $method = Mollie_API_Object_Method::IDEAL)
|
|||||||
$return = '<form action="" method="POST">';
|
$return = '<form action="" method="POST">';
|
||||||
|
|
||||||
if ($method == \Mollie\Api\Types\PaymentMethod::IDEAL) {
|
if ($method == \Mollie\Api\Types\PaymentMethod::IDEAL) {
|
||||||
$issuers = $mollie->issuers->all();
|
$issuers = $mollie->methods->get('ideal', ['include' => 'issuers'])->issuers;
|
||||||
|
|
||||||
$return .= '<label for="issuer">' . $_GATEWAYLANG['selectBank'] . ':</label> ';
|
$return .= '<label for="issuer">' . $_GATEWAYLANG['selectBank'] . ':</label> ';
|
||||||
|
|
||||||
$return .= '<select name="issuer">';
|
$return .= '<select name="issuer">';
|
||||||
foreach ($issuers as $issuer) {
|
foreach ($issuers as $issuer) {
|
||||||
if ($issuer->method == \Mollie\Api\Types\PaymentMethod::IDEAL) {
|
$return .= '<option value=' . htmlspecialchars($issuer->id) . '>' . htmlspecialchars($issuer->name) . '</option>';
|
||||||
$return .= '<option value=' . htmlspecialchars($issuer->id) . '>' . htmlspecialchars($issuer->name) . '</option>';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$return .= '</select>';
|
$return .= '</select>';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user