> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # createPaymentParameter > Build a parameter entry for the pay() method. [pay]: /docs/server-sdks/reference/typescript/agents/function-result/pay [ref-functionresult]: /docs/server-sdks/reference/typescript/agents/function-result Static helper that builds a parameter entry for the `parameters` list of [`pay()`][pay]. ## **Parameters** **`name`** `string` — required Parameter name. --- **`value`** `string` — required Parameter value. --- ## **Returns** `PaymentParameter` — An object with `name` and `value` fields, for use in the `parameters` list of [`pay()`][pay]. ## **Example** ```typescript {3} import { FunctionResult } from '@signalwire/sdk'; const param = FunctionResult.createPaymentParameter( 'merchant_id', 'MERCH_12345', ); ``` > Build a parameter entry for the pay() method.