Find your use case
Compare the ways to integrate Pay.com, from a hosted checkout to your own server, by who builds the checkout, PCI scope, payment methods, and effort.
Pay.com offers four ways to integrate. Three of them use Pay.com.js in your web page. Universal checkout, Headless checkout, and Tokenization share the same package, initialized and used differently. The fourth, the server-to-server API, runs from your server alone. Which one fits depends on how much control you want over the checkout your customers see, and on the PCI compliance your business already has in place.
All four share the same platform and token vault, so you can move between them as your requirements change. Universal checkout and Headless checkout use the same payment session flow. The server-to-server API creates charges and holds directly, with no session. Tokenization uses a separate session type and supports cards only, so moving to or from it takes more development work.
Compare the integrations
The four integrations differ in who builds the checkout, the PCI scope you take on, and the payment methods they support.
| Universal | Headless | Tokenization | Server-to-server | |
|---|---|---|---|---|
| Who builds the checkout | Pay.com renders and manages it | You | You, for card capture only | You |
| PCI scope | SAQ-A (22 controls) | SAQ-A-EP (139 controls) | SAQ-A-EP (139 controls) | SAQ-D / Level 1 |
| Effort | Low (prebuilt UI, minimal frontend code) | Medium (you build the UI, and Pay.com.js sends card data to Pay.com) | Medium (client-side tokenization, plus separate API calls for payments) | High (full backend integration, PCI certification required) |
| Takes the payment | Yes | Yes | No. Your server uses the token in a separate API call. | Yes |
| Payment methods | All supported payment methods | All supported payment methods | Cards only | Cards, wallets, bank redirects, and other alternative payment methods |
| 3D Secure | Handled by Pay.com.js | Handled by Pay.com.js | You handle it | You handle it |
| Session | Payment session | Payment session | Tokenization session | None |
| Best for | Fastest time to market, with no design customization needed | Full brand control without handling card data on your servers | Storing cards for recurring charges or anonymous checkouts | Maximum backend control, for large organizations with existing compliance |
In your app
Show Pay.com’s drop-in, with the least code, or build your own screen.
On your website
Universal checkout, Headless checkout, and Tokenization run in your web page with Pay.com.js. A hybrid checkout combines the first two.
Universal checkout
Universal checkout is a fully hosted, customizable checkout. You add Pay.com.js to your page, and Pay.com renders the whole payment form inside it and handles the fields, the styling, validation, error handling, and submission. Payment methods that redirect open in a pop-up, so your page keeps its context.
It's the fastest way to start accepting payments, and your PCI scope is the smallest (SAQ-A), because no card data touches your systems.
Choose it if you want to go live quickly and don't need a fully custom checkout design. You can still customize the form. Start with Universal checkout.
Headless checkout
You build and own the payment form, with your own components. Pay.com.js captures the sensitive card data and handles the payment method logic behind the scenes. Card details typed on your page go straight from the browser to Pay.com and never reach your servers.
That puts Headless checkout between Universal checkout and the server-to-server API. You get your own UI, and card data is still sent directly to Pay.com. Your PCI scope is SAQ-A-EP, more than Universal checkout's SAQ-A but far less than handling card data on your servers.
Choose it if your brand experience matters and you have a design team ready to build a custom checkout, if your design needs go beyond what Universal checkout supports, or if you want to change your UI independently of the payment integration. Start with Headless checkout.
Hybrid checkout
A hybrid checkout uses Universal checkout and Headless checkout on the same page. Universal checkout shows wallet buttons and alternative payment methods, and Headless checkout runs your own card form. See Hybrid checkout.
Tokenization
Tokenization combines Pay.com.js in your page with API calls from your server. Pay.com.js captures the customer's card details and turns them into a token, and your server then uses the token without ever handling raw card data. It stores a card without taking a payment at that moment.
It's useful for public or anonymous checkouts where you want to store a payment method for later, without requiring the customer to log in. Choose it if you need to save payment methods for future charges, subscriptions, or deferred billing. Start with Tokenize a card.
From your server
With the server-to-server API, your servers handle card data and call the Pay.com API directly, with no SDK in the page. You have the most control over every part of the payment flow and the checkout, and the API creates charges and holds directly, with no session.
Card details pass through your infrastructure, so this path requires full PCI DSS compliance.
Choose it if you're PCI-certified, have complex backend payment logic, or are building for an enterprise environment with specific security requirements. Start with Create a charge.
Not sure which to choose?
If you're starting fresh and don't have strong requirements in either direction, start with Universal checkout. You can move to Headless checkout or the server-to-server API later as your product matures, without rebuilding your Pay.com integration.
Your Pay.com implementation team can advise on the right path during onboarding. See Set up your account for how to reach them.
Next steps
- For Universal checkout, Headless checkout, or Tokenization, install and initialize Pay.com.js, then follow your integration's guide. Pay.com.js works in the environment of the session you give it, sandbox or live.
- For the server-to-server API, start with Create a charge.