I freshly installed version 3.0.2.0 and tried to use custom payment method that was working on 2.3.0.2.
It was installed successfully and i can see that it is listed under Extensions > extensions > Payments.

I can even click install button also and it installs without any errors.

But when i click edit button it throws me following error.

(edit: controller and model codes are attached)
Notice: Undefined index: token in /storage/ssd3/688/2921688/public_html/admin/controller/extension/payment/ez_cash.php on line 28Notice: Undefined index: token in /storage/ssd3/688/2921688/public_html/admin/controller/extension/payment/ez_cash.php on line 29Notice: Undefined index: token in /storage/ssd3/688/2921688/public_html/admin/controller/extension/payment/ez_cash.php on line 77Notice: Undefined index: token in /storage/ssd3/688/2921688/public_html/admin/controller/extension/payment/ez_cash.php on line 82Notice: Undefined index: token in /storage/ssd3/688/2921688/public_html/admin/controller/extension/payment/ez_cash.php on line 87

It says something wrong with line number 28,29 etc.
below is line 28 and 29
$data['action'] = $this->url->link('extension/payment/ez_cash', 'token=' . $this->session->data['token'], 'SSL');
$data['cancel'] = $this->url->link('extension/extension', 'token=' . $this->session->data['token'], 'SSL');