# Hosted Fields Building with an AI agent? Start at https://docs.payme.io/agents.md Last updated: 2026-11-19 Put PayMe's card inputs in your own checkout form with the browser SDK, then charge the token from your server with generate-sale. Hosted Fields put PayMe's card inputs inside your own checkout form as PayMe iframes. The browser SDK (`window.PayMe`) returns a token, and your server charges it with `generate-sale` and `buyer_key`. Start with the [Build your own checkout form with Hosted Fields](/accepting-payments/checkout/hosted-fields-jsapi-guide). ## Guides - [Hosted Fields JavaScript Reference](/payments/hosted-fields/javascript-reference): `PayMe.create` options, fields, field options and styling, field events, `tokenize`, validators and teardown of the Hosted Fields browser SDK. ## Endpoints - [Charge a Hosted Fields token](/payments/hosted-fields/post-generate-sale-hosted-fields-jsapi): POST /generate-sale