Example file: smartForm.php
This file is used for displaying the payment smartForm
in List mode.
In the HEAD
,,
load our JavaScript library
integrate the public key , mandatory initialization parameter.
integrate other initialization parameters , like a URL in case of accepted payment.
choose a theme (neon theme)
In the BODY
,,
define the display mode (List mode)
use , the formToken , created in step 3, in parameter.
kr-form-token
<head> <!-- STEP : 1 : load the JS librairy 2 : required public key 3 : the JS parameters url sucess and langage EN --> <script type="text/javascript" src="https://static.systempay.fr/static/js/krypton-client/V4.0/stable/kr-payment-form.min.js" kr-public-key="73239078:testpublickey_Zr3fXIKKx0mLY9YNBQEan42ano2QsdrLuyb2W54QWmUJQ" kr-post-url-success="paid.php"; kr-language="en-EN"> </script> <!-- theme NEON should be loaded in the HEAD section --> <link rel="stylesheet" ref="https://static.systempay.fr/static/js/krypton-client/V4.0/ext/neon-reset.min.css"> <script src="https://static.systempay.fr/static/js/krypton-client/V4.0/ext/neon.js"> </script> </head> <body> <div class="kr-smart-form" kr-form-token="<?php echo $formToken; ?>" > </div> </body> </html>