• France
Merchant Back Office
assistance
FAQContact support
Search
Categories
Tags
English
French
English
Homepage
Use cases
Create a payment
Create an installment 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

Code samples

'sample' file in GitHub

For each integration step, we provide a simplified example in PHP.

  1. Fill in the Test or Production REST API keys in the config.php file ( Example file: config.php ).

  2. If necessary, modify the payment data in the formToken.php file ( Example file: formToken.php ).

  3. Display the payment form in a browser according to the desired display mode:

  • embedded.php(Sample files: embedded.php and popin.php)
  • popin.php(Sample files: embedded.php and popin.php)
  1. Once the form is displayed, proceed with the payment. In Test mode, click on the Test cards tab of the debug bar and select the card type.

  2. Retrieve IPN data during server-to-server calls using the ipn.php file ( Example files: ipn.php and paid.php ).

  3. Redirect the buyer to the merchant site in case of successful payment using the paid.php file ( Example files: ipn.php and paid.php ).

Server SDKs

You do not need an SDK to use the REST API, but it can facilitate the work process.

PHP

Installation https://github.com/lyra/rest-php-sdk
Source code (ZIP) https://github.com/lyra/rest-php-sdk/archive/latest.zip
Package manager https://packagist.org/packages/lyracom/rest-php-sdk
Examples of use https://github.com/lyra/rest-php-examples

Java

Installation https://github.com/lyra/rest-api-server-java-sdk
Package manager https://search.maven.org/artifact/com.lyra/server-rest-sdk/

Integration examples: C# / Python (Flask) / Symfony

Framework Description
Angular example of integration for Angular
ember example of integration for Ember
ionic example of integration for Ionic
next integration example for Next
React example of integration for React
server integration example for Server
svelte integration example for Svelte
vue example of integration for Vue.js
require.js example of integration with RequireJS

Other integration examples: C# / Python (Flask) / Symfony

Framework Description
C# example of integration for C# (.NET)
python/flask example in Python using the Flask framework
php/symfony example in python in PHP with symfony
© 2025 {'|'} All rights reserved to PayZen by OSB
25.25.0-1.11