• France
status page
Demo shops
assistance
FAQContact support
Search
Categories
Tags
Europe (English)
France
Spain
Europe (English)
India
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
SDD mandates by REST API
Snippets
Payment methods
Plugins
Marketplace
Guides
Merchant Back Office
Back Office Expert
Functional guides

Sample file: config.php

See the chapter: Retrieving the keys :

  • Step 2: Authenticate him/herself

Depuis le bom_expert

For the DEMO store:

NUMBER VARIABLE value Description
1 USERNAME 69876357 For calls to REST Web Services
2 PASSWORD testpassword_DEMOPRIVATEKEY23G4475zXZQ2UA5x7M For calls to REST Web Services
3 PUBLIC_KEY 69876357:testpublickey_DEMOPUBLICKEY95me92597fd28tGD4r5 For creating a payment form in the Buyer's browser.
4 SHA_KEY 38453613e7f44dc58732bad3dca2bca3 In order to verify the authenticity of the data returned during the payment form response in the browser

Le cas échéant, à remplacer par les données de votre boutique.

Ajoutez les données suivantes :

NUMBER VARIABLE value Description
5 SERVER https://api.lyra.com To create theformToken
6 URL_JS https://static.lyra.com/static/js/krypton-client/V4.0/stable/kr-payment-form.min.js To load our JS library


<?php
/**
 * Define configuration
  * Configuration initialisation, using Lyra account informations.
 * provided in your Back Office (Menu: Settings > Shop > API REST Keys).
 
 **/
// DEMO SHOP
define('USERNAME', '69876357');
define('PASSWORD', 'testpassword_DEMOPRIVATEKEY23G4475zXZQ2UA5x7M');
define('PUBLIC_KEY', '69876357:testpublickey_DEMOPUBLICKEY95me92597fd28tGD4r5');
define('SHA_KEY', '38453613e7f44dc58732bad3dca2bca3');
define('SERVER', 'https://api.lyra.com');
$URL_JS = 'https://static.lyra.com/static/js/krypton-client/V4.0/stable/kr-payment-form.min.js';


// SUBSTITUTE BY MERCHANT SHOP (Menu: Settings > Shop > API REST Keys)
// define('USERNAME', 'KEY Number 1');
// define('PASSWORD', 'KEY Number 2');
// define('PUBLIC_KEY', 'KEY Number 3');
// define('SHA_KEY', 'KEY Number 4');
// define('SERVER', 'KEY Number 5');
// $URL_JS = 'KEY Number 6';


 /*DOMAIN_URL : racine domaine URL_JS */
define('DOMAIN_URL', strstr($URL_JS,'/static/',true));

?>

Pour information, DOMAIN_URL correspond la racine de l'URL JavaScript : https://static.lyra.com/static/js/krypton-client/V4.0/stable/kr-payment-form.min.js.

Jobs
Legal
GDPR
25.22-1.11