Skip to content

Commit

Permalink
Remove payment fee when an order has been cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
daan-pay committed Dec 27, 2019
1 parent 92749ff commit fbc9da5
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 fbc9da5

Please sign in to comment.