# Villa Payment API (villaPayment3) > One payment backend for every Villa Market sales channel. K Bank takes cards and Thai QR, MPGS takes American > Express, Stripe takes Apple Pay only. For a Villa order the server sets the amount (a bypass_order test charge > names its own). What a browser posts never decides that money arrived. ## Build a sales channel - [Build a sales channel](/docs/guides/channels): the routing table: method, gateway, where the customer lands, what decides "paid" - [Quickstart](/docs/guides/channels/quickstart): direct card with callback (production), hosted checkout (dev branch) - [Confirmation routing](/docs/guides/channels/confirmation-routing): hop by hop for K Bank card, K Bank Thai QR, MPGS, Stripe, hosted checkout - [The return contract](/docs/guides/channels/return-contract): {callback}/thankyou?orderId&status&amount&chargeId&token, the callback rules, how to confirm - [Return to the channel](/docs/guides/channels/channel-return): the channel registry: the hosted checkout returns the customer to {returnBase}/thankyou?sessionId&status&state (on on the current dev stack since 1 Dec 2026, two test channels paid through; not on production) - [Launch a shop](/docs/guides/channels/launch-a-shop): one build registers a channel, gives it a return page and checks it (channel-kit) - [Signed server callback](/docs/guides/channels/server-callback): for channels that keep their own orders (on dev: on for one test origin; a signed event delivered on 1 Dec 2026 marked one staging order paid, sandbox charge; not on production) - [Testing a channel](/docs/guides/channels/testing) - [For coding agents](/docs/guides/channels/for-agents): rules, decision tree, file map, checklist - [Gaps and what is next](/docs/guides/channels/gaps) ## Machine-readable - [channel-contract.json](/channels/channel-contract.json): environments, integrations, return URLs, callback rules, the channel registry, gaps - [openapi.yaml](/openapi.yaml) ## Demo - [Channel demo](/demo/channel-demo.html): interactive simulation of every route; nothing leaves the browser ## Reference - [Taking payments at Villa Market](/docs/guides/payments/overview) - [Checkout API](/docs/guides/payments/checkout-api) - [Stripe Apple Pay](/docs/guides/payments/apple-pay) - [API reference](/docs/api/main-api) ## Rules for agents - For a Villa order never send an amount you computed: the server prices it and charges its own total. - The return URL is a hint. Confirm on the channel's server. - Never deploy, merge to master or touch a secret without a person. Merging to master deploys production.