Skip to content

Commit

Permalink
Merge pull request #8 from daanstokhof/PLUG-89
Browse files Browse the repository at this point in the history
Remove payment fee when an order has been cancelled
  • Loading branch information
daan-pay authored Dec 30, 2019
2 parents 92749ff + fbc9da5 commit f85e5cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion paynlpaymentmethods/controllers/front/finish.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ public function postProcess()
Tools::redirect('index.php?controller=order-confirmation'.$slow.'&id_cart=' . $cartId . '&id_module=' . $this->module->id . '&id_order=' . $orderId . '&key=' . $customer->secure_key);

} else {
# delete old payment fee
$this->context->cart->deleteProduct(Configuration::get('PAYNL_FEE_PRODUCT_ID'),0);

// naar checkout
Tools::redirect('index.php?controller=order&step=1');
}
Expand All @@ -111,4 +114,4 @@ public function initContent()
$this->setTemplate('module:paynlpaymentmethods/views/templates/front/waiting.tpl');
}

}
}

0 comments on commit f85e5cc

Please sign in to comment.