Pre send - Celigo.integrator.Hook: error calling hook func

Celigo.integrator.Hook: error calling hook func (hook function error: id)

I am getting below error when calling the Pre-Send script. Can anyone send me sample Pre-Send script.

"\"userEvent\":null,\"internalId\":null,\"code\":\"SSS_MISSING_REQD_ARGUMENT\",\"details\":\"id\",\"stackTrace\":{\"[Ljava.lang.String;\":[\"processCustomerPayments(eval code#1(eval):7)\",\"(Celigo.build.Integrator.closure.js:712)\",\"(Celigo.build.Integrator.closure.js:1207)\",\"(Celigo.build.Integrator.closure.js:1188)\",\"(Celigo.build.Integrator.closure.js:1002)\",\"(Celigo.build.Integrator.closure.js:1004)\",\"(Celigo_Basis.closure.js:1147)\",\"(Celigo_Basis.closure.js:1153)\",\"restletwrapper(null:4)\",\"(Celigo_LicensingServices.closure.js$5328:17)\"]},\"type\":\"nlobjError\",\"suppressNotification\":false}"

I have created suitescript in 1.0 and function only accepts on argument.

function processCustomerPayments(dataIn)
{
return dataIn;
}

There are some examples on GitHub:

https://github.com/CeligoServices/SuiteScript-Hooks