paymentSessions.capture
Capture a manually authorized Ryft payment session to complete the transaction. Provide the session ID and optional amount to finalize the payment.
Instructions
Capture a manually captured Ryft payment session.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| amount | No |
Implementation Reference
- src/tools/payment-sessions.ts:120-125 (handler)The tool 'paymentSessions.capture' is registered in 'src/tools/payment-sessions.ts'. It uses an async function as a handler that calls the Ryft API via 'client.post' to capture a payment session.
registerTool( 'paymentSessions.capture', 'Capture a manually captured Ryft payment session.', { id: z.string().min(1), amount: z.number().int().positive().optional() }, async ({ id, ...body }) => client.post(`/payment-sessions/${id}/captures`, body), );