# Hosted Payment Fields - Integration Guide

## 👋 Welcome Message

Welcome to the **Novatti Hosted Payment Fields (HPF) Start Guide**! This document is your ultimate reference for safely integrating payment card entry into your website with minimal PCI compliance overhead. You'll find step-by-step instructions, from initial access to embedding customisable secure fields and completing transactions. Whether you're a developer or integration team member, this guide ensures you’re set up for a smooth, secure checkout experience.

* * *

## 🧩 Summary of the Hosted Payment Fields Start Guide

### 1\. What Are Hosted Payment Fields (HPF)?

-   **HPF** are secure, embeddable input fields hosted by Novatti to capture sensitive card information.
-   They tokenize the card data on the client side, avoiding the direct handling of raw card data in your environment
-   This streamlines PCI DSS compliance by isolating sensitive data handling within Novatti’s controlled domain

### 2\. Integration Workflow

1.  **Sign in to Novatti’s merchant/developer portal.** Retrieve API credentials and configuration info.
2.  **Embed HPF into your frontend.** Typically via JavaScript snippets or iFrame of hosted input fields.
3.  **Configure and customize** appearance to match your brand (e.g. styling fields, labels, layout).
4.  **Tokenize card data**—HPF generates a secure payment token once the customer enters their card.
5.  **Pass the token to your backend** and complete the payment via Novatti’s REST API to finalize the transaction

### 3\. Technical Details

-   **Security**: HPF resides on a separate domain or an isolated iframe, ensuring your servers never see raw card data.
-   **Customization**: Supports custom CSS, placeholder labels, field order, and error messaging to blend seamlessly with your UI.
-   **Developer tools**: Offer a “Try It Out” functionality within the Swagger UI or API explorer, enabling live testing of tokenization and payment calls

### 4\. Why Use HPF?

-   **Lower PCI burden**: You keep sensitive data outside your systems.
-   **Flexible UX**: Keep your branding intact while ensuring security.
-   **API-first flow**: HPF handles front-end collection; your backend handles API calls for token consumption and transaction handling 

### 5\. Next Steps

-   Set up your merchant account and access the portal to retrieve API keys.
-   Add the HPF JavaScript/iframe code to your checkout form.
-   Test the integration using provided example tokens and sandbox environment.
-   Once tested, deploy live and begin processing payments securely.
