Skip to content

Commit

Permalink
Little fix, use build-in functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Daan van Marsbergen committed May 26, 2014
1 parent 5e4c542 commit 6d17565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions catalog/controller/payment/mollie_ideal.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ public function payment ()
{
// A payment for this order has already been created. If the status is still open, we can redirect to
// this paymentUrl. Otherwise an error must be thrown.
if ($payment->status == Mollie_API_Object_Payment::STATUS_OPEN && $order['order_status_id'] === $this->config->get('mollie_ideal_pending_status_id'))
if ($payment->isOpen() && $order['order_status_id'] === $this->config->get('mollie_ideal_pending_status_id'))
{
$this->redirect($payment->links->paymentUrl);
$this->redirect($payment->getPaymentUrl());
}
else
{
Expand Down

0 comments on commit 6d17565

Please sign in to comment.