stop

View as MarkdownOpen in Claude

Stop payment collection.

Returns

dict — Server acknowledgment.

Example

1from signalwire.relay import RelayClient
2
3client = RelayClient(
4 project="your-project-id",
5 token="your-api-token",
6 host="your-space.signalwire.com",
7 contexts=["default"],
8)
9
10@client.on_call
11async def handle_call(call):
12 await call.answer()
13 action = await call.pay(
14 payment_connector_url="https://example.com/payment-connector",
15 charge_amount="29.99",
16 currency="USD",
17 )
18
19 # Stop payment collection
20 await action.stop()
21
22client.run()