Hi abolabo, thanks for your reply.
Unfortunately, I can't get it working. Can you point out what I done it wrongly?
I got my extension at /extensions/antifraudster/storefront/controller/responses/extension/antifraudster.php"
<?php
if (!defined('DIR_CORE')) {
header('Location: static_pages/');
}
class ControllerResponsesExtensionAntiFraudster extends AController {
public function main() {}
public function onControllerPagesCheckoutSuccess_InitData() {
$that->loadModel('checkout/order');
$order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']);
if($order_info['payment_country'] == 'NG') {
die('Fraud detected!');
}
}
}
?>