> 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. # createPaymentAction > Build a single action entry for a payment prompt. [create-payment-prompt]: /docs/server-sdks/reference/typescript/agents/function-result/create-payment-prompt [ref-functionresult]: /docs/server-sdks/reference/typescript/agents/function-result Static helper that builds a single action entry for a payment prompt. ## **Parameters** **`actionType`** `string` — required Action type. * `"say"` -- use text-to-speech * `"play"` -- play an audio file URL --- **`phrase`** `string` — required Text to speak (when `actionType` is `"say"`) or URL to play (when `actionType` is `"play"`). --- ## **Returns** `PaymentAction` — An object with `type` and `phrase` fields, for use in [`createPaymentPrompt()`][create-payment-prompt]. ## **Example** ```typescript {3} import { FunctionResult } from '@signalwire/sdk'; const action = FunctionResult.createPaymentAction( 'say', 'Please enter your card number.', ); ``` > Build a single action entry for a payment prompt.