Stripe Elements is a set of prebuilt UI components for securely collecting and handling payment information in web applications. It allows developers to easily integrate a customizable payment form while ensuring compliance with security standards like PCI DSS.

Violet integrates with Stripe Elements to let you easily use all their features while processing payment during Checkout through Violet. This guide will walk you through the steps to integrate Stripe Elements with Violet, depending on which Checkout flow you are using.

Pre-requisites

Install up Stripe.js

Install the Stripe.js React libraries and the Stripe JS loader from the npm public registry:

npm install --save @stripe/react-stripe-js @stripe/stripe-js

Checkout Flows

Depending on the Checkout flow you use, add support for Stripe Elements by following the guides below.