Checkout
Last updated: 2026-11-23
Checkout options on PayMe: the Hosted Payment Page, Hosted Fields in your own form, the Direct API, mobile apps and POS devices, and when to use each.
A checkout is where the buyer enters their payment details. PayMe gives you three ways to build one online, plus an option for mobile apps and one for in-person payments. They differ in who shows the card form and how much of PCI DSS (the card industry's security standard) falls on you.
Choose a checkout
| Option | How it works | Choose it when |
|---|---|---|
| Hosted Payment Page | Your server calls generate-sale; the buyer pays on PayMe's page (sale_url) in an iframe or a redirect. PayMe carries PCI DSS. |
You want the fastest integration and every payment method on one page. The page design is limited. |
| Hosted Fields | PayMe's card inputs (iframes) sit inside your own form. The browser gets a token, and your server charges it with generate-sale. |
The checkout must look native to your site, without card data touching your servers. Your Content Security Policy must allow cdn.payme.io and hf.payme.io. |
| Direct API | Your server sends the card details to pay-sale. |
You are PCI DSS Level 1 compliant and need full control. PayMe must enable the API for you. |
The comparison is also on Integration options.
Hosted Payment Page
- Customize the Hosted Payment Page: pre-fill the buyer's details, read the success redirect to
sale_return_url, and showsale_urlin an iframe. - Let the buyer choose how to pay: send
sale_payment_method: multito show cards, Apple Pay, Google Pay and Bit on one page. - Template sales (one link, many payments): one payment link that many buyers can pay, each payment creating its own sale.
Mobile apps and in-person payments
- Accept payments in a mobile app: your server creates the sale, and the app opens
sale_urlin SFSafariViewController (iOS) or Chrome Custom Tabs (Android), not a WebView. The iOS and Android SDKs are legacy. - Take in-person payments with a POS device: for partners. Order and pair devices, then take payments with
POST /sales.
Where to start
- Get your test account and keys: Authentication and environments.
- Pick a checkout from the table above.
- Run one sale end to end in the sandbox with the Quickstart.
- Handle the callbacks, and confirm each sale before you fulfil the order.
- Before launch, follow Go live: from sandbox to production.
Guides
- Customize the Hosted Payment Page: Pre-fill PayMe's hosted payment page with the buyer's details, read the parameters of the success redirect to sale_return_url, and show sale_url in an iframe.
- Let the buyer choose how to pay: Send sale_payment_method: multi to generate-sale (default is credit-card). The card form is always shown. Apple Pay, Google Pay and Bit appear only if the seller's service is active and installments is 1, 0 or 102-112; fixed 2-12 leaves card only. Wallet buttons need a browser that supports them; Bit is ILS only; capture_buyer keeps card and Apple Pay (if set up). Wallets and Bit pay in one payment. Callbacks carry the method used in sale_payment_method; get-sales keeps multi, get-transactions has transaction_payment_method. Not a template sale.
- Template sales (one link, many payments): A template sale is one payment link that many buyers can pay; each payment creates its own sale. Create it with generate-sale and sale_type template; close it with cancel-template or sale_expiry_seconds.
- Build your own checkout form with Hosted Fields: Add PayMe Hosted Fields to your own checkout: how the flow works, a complete minimal page, five working examples, charging the token from your server, and a link to its JavaScript reference.
- Accept payments in a mobile app: Mobile app checkout: the app calls your server; your server calls generate-sale with the MPL and returns sale_url; the app opens it in SFSafariViewController (iOS) or Chrome Custom Tabs (Android), not a WebView. sale_return_url must be a public http(s) URL (myapp:// fails with error 21): use an HTTPS page that hands back with Universal Links/App Links or a button. Handle a closed browser. Confirm with the sale-complete callback and get-sales (sale_status completed, sale_price). Test wallets in the in-app browser on real devices. The iOS and Android SDKs are legacy.
- Take in-person payments with a POS device: For partners. Order POS devices with vas-enable (extend_items in vas_data adds devices). PayMe pairs new devices; to pair yourself call pos/pair (payme_client_key, seller_payme_id, pos_id, terminal_id, optional name), then pos/authenticate with the 6-digit verification_code. Callbacks: point-of-sale-action-pair-update, -authenticate-update. Pay: POST /sales with payment.method pos, pos_id, currency; a decline is HTTP 200 status_code 1; 26020 means still verifying, wait for the callback. Refund: PUT /sales/{id} with payment.action refund. pos/transmit returns acknowledge_number and report.