> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://developers.truemed.com/v-1/guides/setup/api/payment-sessions/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.truemed.com/_mcp/server. # Payment Sessions ## Docs - [Before you begin](https://developers.truemed.com/v-1/guides/setup/api/payment-sessions/before-you-begin.md): What you need — an API key, a server, and a webhook endpoint — before building with the Payment Sessions API. - [How Truemed checkout works](https://developers.truemed.com/v-1/guides/setup/api/payment-sessions/how-truemed-checkout-works.md): The end-to-end Truemed checkout flow — create a payment session, redirect the customer, and fulfill from the webhook. - [Accept your first payment](https://developers.truemed.com/v-1/guides/setup/api/payment-sessions/accept-your-first-payment.md): The shortest path to a working Truemed payment — create a session, redirect the customer, and fulfill from the webhook. - [Webhooks and fulfillment](https://developers.truemed.com/v-1/guides/setup/api/payment-sessions/webhooks-and-fulfillment.md): How to use the payment session webhook as the fulfillment boundary, and keep fulfillment idempotent across retries. - [Payment lifecycle](https://developers.truemed.com/v-1/guides/setup/api/payment-sessions/payment-lifecycle.md): Every payment session status, what it means, and what to do next. - [Manual and delayed capture](https://developers.truemed.com/v-1/guides/setup/api/payment-sessions/manual-delayed-capture.md): How to authorize a payment at checkout and capture it later, when you're ready to fulfill. - [Itemized fees and discounts](https://developers.truemed.com/v-1/guides/setup/api/payment-sessions/itemized-fees-and-discounts.md): How to pass itemized fees, discounts, and taxes to create_payment_session so Truemed can show a full breakdown at checkout. - [Refunds, cancels, and voids](https://developers.truemed.com/v-1/guides/setup/api/payment-sessions/refunds-cancels-and-voids.md): How to cancel, void, or refund a Truemed payment session depending on where it is in the payment lifecycle. - [Embedded checkout (iFrame)](https://developers.truemed.com/v-1/guides/setup/api/payment-sessions/i-frame-payment-session.md): How to render the Truemed payment session inline with an iFrame instead of redirecting the customer to a hosted page. - [Testing](https://developers.truemed.com/v-1/guides/setup/api/payment-sessions/testing.md): How to test the full Truemed payment flow in the sandbox before going live. - [Implementation readiness checklist](https://developers.truemed.com/v-1/guides/setup/api/payment-sessions/implementation-readiness-checklist.md): A pre-launch checklist covering checkout, fulfillment, webhooks, and reconciliation for your Truemed integration.