• France
status page
demonstrations
assistance
FAQContact support
Search
Categories
Tags
English
French
English
Homepage
Use cases
Create a payment
Create an installment payment
Create a multi-card (split) payment
Create a payment by Alias (Token)
Create a payment link
Create a recurring payment
Manage subscriptions
Manage your transactions (refund, cancel...)
Analyze your reports
API docs
Embedded Form
REST API
Hosted payment
Mobile payment
File exchange
Snippets
Payment methods
Plugins
Guides
Merchant Back Office
Functional guides

Example file: smartForm.php

This file is used for displaying the payment smartForm in List mode.

In the HEAD,,

  1. load our JavaScript library

  2. integrate the public key , mandatory initialization parameter

  3. integrate other initialization parameters , like a URL in case of accepted payment

  4. choose a theme (neon theme)

In the BODY,,

  1. define the display mode (List mode)

  2. use , the formToken , created in step 3, in parameter kr-form-token

<?php include_once 'config.php'; ?>
<?php include_once 'formToken.php'; ?>

<head>
<!-- STEP :
1 : load the JS librairy 
2 : required public key 
3 : the JS parameters url sucess and langage EN  -->

<meta name="viewport"
   content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />  
  
<script type="text/javascript"
        src="<?php echo DOMAIN_URL; ?>/static/js/krypton-client/V4.0/stable/kr-payment-form.min.js"
        kr-public-key="<?php echo PUBLIC_KEY; ?>"
        kr-post-url-success="paid.php";
        kr-language="en-EN">
 </script>

  <!--  theme NEON should be loaded in the HEAD section   -->
  <link rel="stylesheet" href= "<?php echo DOMAIN_URL; ?>/static/js/krypton-client/V4.0/ext/neon-reset.css">
<script src= "<?php echo DOMAIN_URL; ?>/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>
© 2025 {'|'} All rights reserved to Scellius
25.18-1.11