46 lines
1.8 KiB
PHP
Executable File
46 lines
1.8 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
require_once 'vendor/autoload.php';
|
|
$succes_URL = $_SESSION['server']. '/recap-paiement-faireMajRecap-1';
|
|
// https://docs.lyra.com/fr/rest/V4.0/javascript/guide/create_formtoken.html
|
|
// https://docs.lyra.com/fr/rest/V4.0/javascript/guide/payment_form.html
|
|
?>
|
|
|
|
<!-- <!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
<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" /> -->
|
|
|
|
<!-- Javascript library. Should be loaded in head section -->
|
|
<script
|
|
src="<?php echo $client->getClientEndpoint();?>/static/js/krypton-client/V4.0/stable/kr-payment-form.min.js"
|
|
kr-public-key="<?php echo $client->getPublicKey(); ?>"
|
|
kr-post-url-success="<?php echo $succes_URL; ?>">
|
|
</script>
|
|
|
|
<!-- theme and plugins. should be loaded after the javascript library -->
|
|
<!-- not mandatory but helps to have a nice payment form out of the box -->
|
|
<link rel="stylesheet" href="<?php echo $client->getClientEndpoint();?>/static/js/krypton-client/V4.0/ext/classic-reset.css">
|
|
<script src="<?php echo $client->getClientEndpoint();?>/static/js/krypton-client/V4.0/ext/classic.js"></script>
|
|
<!-- </head> -->
|
|
|
|
<!-- <body style="padding-top:20px"> -->
|
|
<!-- payment form -->
|
|
<div class="kr-embedded" kr-form-token="<?php echo $formToken;?>" style="margin:auto" >
|
|
|
|
<!-- payment form fields -->
|
|
<div class="kr-pan"></div>
|
|
<div class="kr-expiry"></div>
|
|
<div class="kr-security-code"></div>
|
|
|
|
<!-- payment form submit button -->
|
|
<button class="kr-payment-button"></button>
|
|
|
|
<!-- error zone -->
|
|
<div class="kr-form-error"></div>
|
|
</div>
|
|
<!-- </body>
|
|
</html> -->
|