paymentSessions.void
Cancel a Ryft payment session to prevent transaction completion. Use this tool to stop pending payments from processing.
Instructions
Void a Ryft payment session.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/tools/payment-sessions.ts:127-132 (handler)The registration and handler implementation for the 'paymentSessions.void' tool. It uses the Ryft client to perform a POST request to the sessions void endpoint.
registerTool( 'paymentSessions.void', 'Void a Ryft payment session.', { id: z.string().min(1) }, async ({ id }) => client.post(`/payment-sessions/${id}/voids`, {}), );