---
updatedAt: 2026-10-26T15:12:31.000Z
agentTools:
  projectIndex: https://developer.pay.nl/llms.txt
---

# PAY.Parts

A suite of pre-built UI components that you can embed in your own checkout to accept payments.

<Callout icon="❗" theme="error">
  ### Card Input Method enabling

  To use PAY.Parts, you must separately activate the card network payment methods and complete onboarding at the sales location. Processing through payment option **Visa Mastercard** is not possible for PAY.Parts.


  <Image src="https://files.readme.io/98d7eda2a513ad589bb61dbec1538d794cd22520870fc794c78a104cfbfff154-image.png" align="center" />

</Callout>

## Different components

| Visual                                                                                                  | Component                                                                                                   |
| :------------------------------------------------------------------------------------------------------ | :---------------------------------------------------------------------------------------------------------- |
| ![](https://files.readme.io/295d535d398cda0cb2413a4f728cf1c843c567b5b345a3051c10efa231a60e40-image.png) | **Card Network Payment form** — Enter card details (name, card number, expiry date, CVC).                   |
| ![](https://files.readme.io/c07ae6854f7cdca12d917f5c91b3ea76609882a291dc35733b0c966348bbd56e-image.png) | **Gifcard Redeem form** — Accept a variety of giftcards on the checkout page.                               |
| ![](https://files.readme.io/c065cfee484e5f7e174a3d09e2e20f16733284af5bf51f8ee364b4b334e9b3a9-image.png) | **Payment Method Optimizer** \[BETA] — User-optimized flow showcasing the last-used payment method.         |
| ![](https://files.readme.io/7a1bdd04776a7c09630dcde9cba1e1210a00c8bb613ad2ac40483508ad735eaa-image.png) | **Alternative Payment methods** \[BETA] — Full payment method list from the enabled methods on the service. |
| ![](https://files.readme.io/c3300af4311ac404d75b044e74a64ba889dfa6722902105f702089d2f6ad673f-image.png) | **Checkout buttons** \[BETA] — Apple Pay, PayPal and Google Pay buttons.                                    |

<Callout icon="👍" theme="okay">
  View a full working demo at [https://parts.pay.nl/](https://parts.pay.nl/).
</Callout>

<br />

## A vibe-coded proof of concept

To indicate how easy it is to integrate PAY.Parts we have vibe-coded a proof of concept with one single prompt.

<iframe src="https://player.vimeo.com/video/1185085185?h=e8186b34c4" width="100%" height="500" frameBorder="0" allowFullScreen={true}></iframe>

## Introduction

The frontend must include **PayParts.js**, a JavaScript SDK developed by Pay. This SDK is responsible for rendering the payment UI components directly on your checkout page.

When the consumer is ready to proceed, the merchant backend requests a session token from Pay. Once the session token is retrieved, PayParts.js can be initialized and the required components can be mounted.

Your client then completes the payment. If 3D Secure authentication is required, the payer is redirected to a 3D Secure page to finalize the verification. After the payment process is completed (successfully or not), the appropriate order confirmation or failure page can be shown to the consumer based on the result.

Some flows result in a redirect flow where the user is returned to your ReturnURL where you can confirm the payment state; other flows result in a direct confirmation of state based on the PaymentComplete Event.

We send a webhook to the merchant backend with the results of the payment, based on the Exchange URL configured in the ServiceLocation or injected via the PayLoad.

Setting up a checkout on your website using PayParts involves a few straightforward steps and is relatively easy to implement.

## Flowchart

<Image src="https://files.readme.io/60675ab1d8542a84002500ed17b33be314b726a4db46e076259503d58cd95af1-payparts-workflow.png" align="center" />

**The flow (text version of the diagram above):**

1. **Consumer** lands on your checkout page, which loads **PayParts.js**.
2. Your **merchant backend** requests a session token from Pay via `POST /v1/session/start`.
3. PayParts.js **initializes** with the session token and **mounts** the payment components.
4. The consumer **completes the payment** in the embedded components. If 3-D Secure is needed, they are redirected to a 3-D Secure page and back.
5. The flow ends in one of two ways:
   * **Redirect methods** — the consumer is returned to your `ReturnURL`, where you confirm the payment state; or
   * **Inline methods** — the state is confirmed directly via the `PaymentComplete` event.
6. Pay sends a **webhook** to your backend with the payment result, based on the **Exchange URL** configured in the Service Location or injected via the PayLoad.

<br />

## Available components

| Component              | What it is                                                                                                     |
| :--------------------- | :------------------------------------------------------------------------------------------------------------- |
| `checkout-buttons`     | Component that combines the Apple Pay, PayPal and Google Pay buttons                                           |
| `card-payments`        | Component to enter card details (name, card number (Pan), expiry date and CVC). See below for PCI requirements |
| `applepay`             | Component to add the Apple Pay wallet button                                                                   |
| `googlepay`            | Component to add the Google Pay wallet button                                                                  |
| `paypal`               | Component to add the PayPal wallet button                                                                      |
| `methods`              | Full payment method list from the payment methods enabled on the service. The same as our Hosted Checkout.     |
| `giftcards`            | Giftcards to accept a variety of giftcards on the checkout page.                                               |
| `click-to-pay-methods` | Click-to-Pay methods list                                                                                      |
| `user-optimized`       | User optimized flow showcasing the last-used payment method for that user. Enabling fast, familiar checkout.   |

## PCI requirements for the Card Payments component

Before you can request, process, or store cardholder data on your website, you must comply with the Payment Card Industry Data Security Standard (PCI DSS). This is a set of security requirements designed to ensure that all companies handling card information maintain a secure environment.

Read the knowledgebase article: <https://support.pay.nl/en/knowledge/pay-parts-requirements>

## Requirements for ApplePay and GoogleWallet buttons

To enable Apple Pay and Google Wallet buttons on your own domain, your domain must be registered with both Apple and Google. We handle this enrollment automatically for the URLs you provide during signup.

<Accordion title="Apple Pay" icon="fa-cog">
  1. Host our `.well-known` file at `https://yoururl.com/.well-known/apple-developer-merchantid-domain-association` — here is the file: [Right click (save as)](https://zero-parts.pay.nl/.well-known/apple-developer-merchantid-domain-association)
  2. Contact our support to have your domain whitelisted.
  3. Make sure you've finished boarding Apple Pay under Sales Locations in the [dashboard (my.pay.nl)](https://my.pay.nl).
  4. After confirmation from boarding you should be able to accept payments with Apple Pay!
</Accordion>

<Accordion title="Google Wallet" icon="fa-cog">
  Google Wallet is currently not enabled for production.
</Accordion>

## How to integrate Pay.Parts

Use the following steps to integrate Pay.Parts:

0. **Full end-to-end, in one place:** [Integrate PayParts (Quickstart)](integrate-payparts-quickstart)
1. [Create a session from your backend](create-a-session-from-your-backend)
2. Add components to your frontend
   * [Prepare your frontend](add-components-to-your-frontend#prepare-your-frontend)
   * [Initialize the SDK](add-components-to-your-frontend#initialize-the-sdk)
   * [Create and mount a component](add-components-to-your-frontend#create-and-mount-a-component)
3. Optional: [handle events](handle-events)
4. Reference: [SDK API reference](sdk-api-reference)

<Callout icon="📘" theme="info">
  ### Signed exchanges

  PAY.PARTS exchanges are **signed** using the **Service Location credentials**.

  The key used to sign an exchange depends on the credentials that were used to create the payment. PAY.PARTS sessions are created using a **Service Location** (SL) and its **secret**. Exchanges resulting from a PAY.PARTS payment are therefore signed using that same Service Location secret.

  For these exchanges:

  - `signature-keyid` contains the relevant `SL-xxxx-xxxx` code; use the secret belonging to that Service Location to verify the HMAC signature.
  - Do **not** use your merchant API token (AT code) to verify a PAY.PARTS exchange. An API token is only used for signature verification when the underlying object was created using that API token.
</Callout>