1. Install PaygreenJS

Load the library

First, you must add the library and its style to the page of your site where you want the payment form to appear:

<link href="https://pgjs.paygreen.fr/latest/paygreen.min.css" type="text/css" rel="stylesheet" />
<script defer type="text/javascript" src="https://pgjs.paygreen.fr/latest/paygreen.min.js"></script>

Once the script has been added, the variable paygreenjs will be available every where.

📘

About security and PCI Compliance

To be PCI Compliant you must integrate PayGreenJS directly from pgjs.paygreen.fr. The scripts and style sheets cannot be included in your bundle.