mirror of
https://github.com/0100Dev/WHMCS-Mollie-Payments.git
synced 2026-01-18 03:28:18 +01:00
Update iDeal script for new Mollie API
This commit is contained in:
@@ -108,16 +108,14 @@ function mollie_link($params, $method = Mollie_API_Object_Method::IDEAL)
|
||||
$return = '<form action="" method="POST">';
|
||||
|
||||
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 .= '<select name="issuer">';
|
||||
foreach ($issuers as $issuer) {
|
||||
if ($issuer->method == \Mollie\Api\Types\PaymentMethod::IDEAL) {
|
||||
$return .= '<option value=' . htmlspecialchars($issuer->id) . '>' . htmlspecialchars($issuer->name) . '</option>';
|
||||
}
|
||||
}
|
||||
$return .= '</select>';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user