Hi,
I see two problems in your payment plugin code:
1. You have the code:
function onPaymentSave(&$cart,&$rates,&$payment_id){
}
Since you don't extend from hikashopPaymentPlugin, but directly from JPlugin, you indeed need that function, and in it, you need to add the code to store the selection of the customer. Otherwise, the payment method won't be registered as being selected.
The function should be like that:
function onPaymentSave(&$cart,&$rates,&$payment_id){
$usable = array();
$this->onPaymentDisplay($cart,$rates,$usable);
$payment_id = (int) $payment_id;
foreach($usable as $usable_method){
if($usable_method->payment_id==$payment_id){
return $usable_method;
}
}
return false;
}
Also, on the line:
var $name = 'IONPay';
it should all be in lowercase.