Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYes
amountNo

Implementation Reference

  • 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),
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bkawk/ryft-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server