private function makeRefundChargeback($type, $note, $fee)
{
if ($this->apiSessionObject->getRoleType() == Gpf_Api_Session::AFFILIATE) {
throw new Exception("This method can be used only by merchant!");
}
if ($this->getFiltersParameter()->getCount() == 0) {
throw new Exception("Refund / Chargeback in transactions grid is possible to make only with filters!");
}
$request = new Gpf_Rpc_ActionRequest('Pap_Merchants_Transaction_TransactionsForm', 'makeRefundChargebackByParams', $this->apiSessionObject);
$request->addParam('filters', $this->getFiltersParameter());
$request->addParam(self::REFUND_MERCHANT_NOTE, $note);
$request->addParam(self::REFUND_TYPE, $type);
$request->addParam(self::REFUND_FEE, $fee);
$request->sendNow();
return $request->getAction();
}