stop
Stop payment collection.
Returns
Promise<Record<string, unknown>> — Server acknowledgment.
Stop payment collection.
Promise<Record<string, unknown>> — Server acknowledgment.
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',});// Stop payment collectionawait action.stop();});await client.run();