> ## Documentation Index
> Fetch the complete documentation index at: https://developers.pcibooking.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Securing Your Card Entry Form Integration

> A checklist for integrating the PCI Booking card entry form securely: integration, single card entry point, HTTPS, credentials, postMessage origin checks and Content Security Policy.

Follow this checklist when you embed the [Hosted Card Entry Form](https://developers.pcibooking.net/capture-cards/hosted-card-entry-form.md) on your website. Each item is short and links to the page with the details.

If you validate with SAQ A, our Card Entry Form Script Protection Statement relies on these steps. See [Requesting the Script Protection Statement](#requesting-the-script-protection-statement) below.

## 1. Integrate the form as documented

Build and embed the form as described in [Hosted Card Entry Form](https://developers.pcibooking.net/capture-cards/hosted-card-entry-form.md), and use it as we provide it. For production, we recommend the API session option, because the form configuration is set on your server and is not visible in the iframe URL.

## 2. Use the form as your only card entry point

The form must be the only place on your website where card data is entered.

* Do not collect card numbers, expiry dates or security codes in your own fields.
* Do not modify the form, and do not place other elements over it.
* To change how the form looks, use a [stored stylesheet](https://developers.pcibooking.net/account-setup/stylesheets.md).

## 3. Serve the host page over HTTPS

The page that contains the iframe must be served over HTTPS. The success URL, the failure URL and `postMessageHost` must also use HTTPS, as stated in [Request Card Entry Form](https://developers.pcibooking.net/api-reference/tokenize-cards/request-card-entry-form.md).

## 4. Keep your credentials on your server

Your API key must stay on your own systems.

* Never put your API key in browser code, public repositories or logs.
* Create [session tokens](https://developers.pcibooking.net/getting-started/authentication.md#session-token) or [access tokens](https://developers.pcibooking.net/getting-started/authentication.md#access-token) on your server, and pass only those to the browser.
* With the API session option, the form URL you put in the iframe contains no configuration and no credentials.

## 5. Check the origin of every postMessage

If you use postMessage, check `event.origin` on every message your page receives, and ignore any message that does not come from `https://service.pcibooking.net`. When you send commands to the form, set the target origin to `https://service.pcibooking.net`. The samples in [PostMessage Notifications](https://developers.pcibooking.net/capture-cards/postmessage-notifications.md) do both.

## 6. Content Security Policy (recommended)

A Content Security Policy is not required, but we recommend one.

* If you run a Content Security Policy, allow `https://service.pcibooking.net` in `frame-src`, or the browser will block the form.
* If your success and failure pages are on a different domain from the host page, allow that domain in `frame-src` too, because the form redirects to them inside the iframe.
* Restrict the scripts that can run on the host page to the ones you need.

## Requesting the Script Protection Statement

If you validate with SAQ A and need confirmation for the SAQ A script eligibility criterion (PCI SSC FAQ 1588), contact [support@pcibooking.net](mailto:support@pcibooking.net). We send the signed Card Entry Form Script Protection Statement together with our Attestation of Compliance (AOC) and Shared Responsibility Matrix (SRM). See [PCI Scope and Compliance](https://developers.pcibooking.net/concepts/pci-scope-and-compliance.md) for what each document covers.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.