Skip to content

Commit

Permalink
Update iDeal script for new Mollie API
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter0100 authored Oct 2, 2018
1 parent 19979d9 commit 95348ad
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/mollie/mollie.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,13 @@ 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 .= '<option value=' . htmlspecialchars($issuer->id) . '>' . htmlspecialchars($issuer->name) . '</option>';
}
$return .= '</select>';
}
Expand Down

3 comments on commit 95348ad

@dqos
Copy link
Contributor

@dqos dqos commented on 95348ad Dec 21, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test this by any chance?

@dqos
Copy link
Contributor

@dqos dqos commented on 95348ad Dec 28, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Wouter0100
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Qarizma yes, experiencing issues?

Please sign in to comment.