currency} {$localisedcost}"; ?>

get_config('payheresandbox'); $payhereurl = ''; if ($use_sandbox){ $payhereurl = 'https://sandbox.payhere.lk/pay/checkout'; } else { $payhereurl = 'https://www.payhere.lk/pay/checkout'; } $merchant_id = $this->get_config('payheremerchantid'); $order_timestamp = time(); $order_id = "payhere_{$USER->id}_{$course->id}_{$order_timestamp}"; $payhere_amount = $cost; $payhere_currency = $instance->currency; $payhere_secret = $this->get_config('payheremerchantsecret'); $frontend_hash = strtoupper (md5 ( $merchant_id . $order_id . $payhere_amount . $payhere_currency . strtoupper(md5($payhere_secret)) ) ) ?>
wwwroot/enrol/payhere/return.php?id=$course->id" ?>"> wwwroot/enrol/payhere/notify.php"?>"> "> id}-{$course->id}-{$instance->id}" ?>" /> " />