Hi, Can anyone tell me how we can get the request ...
# suitescript
s
Hi, Can anyone tell me how we can get the request parameter using these functions provided in suitescript_api.js
s
Hi @Watz the second link you have shared is not working
aslo in the first link it is trying something like
Copy code
request.getParameter('custparam_phone' )
but the request object not available in the scope
w
Fixed it
In what scope?
s
message has been deleted
basically i am trying to get parameter in this function
w
Is that the entry point for a suitelet?
s
yes
w
If so. It would be input.getParameter()
s
TypeError: Cannot find function getParameter in object com.netsuite.erp.payments.plugin.PaymentProcessingInputImpl@127d0a41. (INVOCATION_WRAPPER#274)
the above line giving this error
w
Are you sure that it is a suitelet script? Try renaming the input/output to the standard request/response instead as suitelet usually have
s
getting the same error
w
Can you show me the script record from NS?
Since you're getting an error that indicate that it really is a payment processing plug-in and not a suitelet.
s
yes this is a payment processing plugin
w
Ok, I don't have any experience with that. Maybe someone else here has.
I am a bit curious though. I can't find any documentation on how to develop gateway plug-ins. Looks pretty locked down by Netsuite?
s
Yes I guess, for that we have the membership for SDN and also the partner account
b
since you seem to already be a member of SDN, ill skip the step about going through SAFE and simply direct you to the documentation, your input and output are not nlobjRequest or nlobjResponse objects
👑 1