This repository contains examples on how to implement Mollie Components. Mollie Components is a set of Javascript APIs that allows you to add the fields needed for card holder data to your own checkout, in a way that is fully PCI-DSS SAQ-A compliant.
See the live demo of these examples here: https://mollie.github.io/components-examples/
- Example 1: Basic example
- Example 2: Floating labels
- Example 3: Vertical layout
- Example 4: Floating labels and additional input fields
- Example 5: Floating labels with status indicators
- Example 6: Single component
In order to run the examples you need a webserver. Although its plain HTML, CSS and JavaScript Mollie Components needs a valid hostname (e.g. localhost or 127.0.0.1). For this README example we use the serve package but any other webserver should work just fine.
- Clone the repo
git clone [email protected]:mollie/components-examples.git
- Navigate to the the repo
cd components-example
- Serve the examples via a webserver
npx serve