> 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. # PayAction > Action handle for an active payment collection operation. [call-pay]: /docs/server-sdks/reference/typescript/relay/call/pay [base-action-interface]: /docs/server-sdks/reference/typescript/relay/actions [stop]: /docs/server-sdks/reference/typescript/relay/actions/pay-action/stop Returned from [`call.pay()`][call-pay]. Tracks an active payment collection operation. Terminal states: `finished`, `error`. Inherits all properties and methods from the [base Action interface][base-action-interface] (`controlId`, `isDone`, `completed`, `result`, `wait()`). ## **Properties** No additional properties beyond the [base Action interface][base-action-interface]. ## **Methods** #### [stop](/docs/server-sdks/reference/typescript/relay/actions/pay-action/stop) Stop payment collection. ## **Example** ```typescript {11} import { RelayClient } from '@signalwire/sdk'; const client = new RelayClient({ project: process.env.SIGNALWIRE_PROJECT_ID!, token: process.env.SIGNALWIRE_API_TOKEN!, contexts: ['default'] }); client.onCall(async (call) => { await call.answer(); const action = await call.pay('https://example.com/payment-connector', { chargeAmount: '29.99', currency: 'USD', }); const event = await action.wait(); console.log(`Payment state: ${event.params.state}`); }); await client.run(); ``` > Action handle for an active payment collection operation. ## Docs - [stop](https://signalwire.com/docs/server-sdks/reference/typescript/relay/actions/pay-action/stop.md): Stop payment collection.