"refund", "tran_class" => "ecom", "cart_id" => "cart_66666", "cart_currency" => "SAR", "cart_amount" => 130, "cart_description" => "shopping Cart", "tran_ref" => "TST2105600089368" //the Capture tran_ref you want to refund it ]; $page = $plugin->send_api_request($request_url, $data); print_r($page); exit();