Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lyra/php-payment-form-examples
Implementation of the VADS PayZen payment system in PHP
https://github.com/lyra/php-payment-form-examples
Last synced: 4 days ago
JSON representation
Implementation of the VADS PayZen payment system in PHP
- Host: GitHub
- URL: https://github.com/lyra/php-payment-form-examples
- Owner: lyra
- License: apache-2.0
- Created: 2015-12-03T08:24:22.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-06-23T14:45:35.000Z (over 2 years ago)
- Last Synced: 2023-04-10T20:01:13.887Z (over 1 year ago)
- Language: PHP
- Homepage: https://payzen.io/en-EN/form-payment/quick-start-guide/history-of-the-document.html
- Size: 425 KB
- Stars: 6
- Watchers: 7
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: COPYING.md
Awesome Lists containing this project
README
# Lyra PHP payment form example
## Introduction
The code presented here is an example of the implementation of the Lyra payment gateway form integration in PHP. It aims to ease its use and learning.
## Contents
This project main contents are:
* `lib/locale`: contains the different translation files for French, English, German and Spanish languages.
* `lib/lyra-payment-form-sdk`: core files that contains the Lyra payment SDK logic.
* `lib/tools`: the core file, defining an utilitary class encapsulating all the Lyra logics of the examples.
* `config/Config.php`: a centralized configuration and initialization file.
* `example/`: contains the logic implementation of the different payment examples.
* `example/return-payment.php`: the file for the return URL at the end of the payment.
* Some other resources for styling pages.## The first use
1. Copy the content of this project to your PHP web server.
2. In `config/Config.php`, replace the occurrence of the token `[***CHANGE-ME***]` by the actual return url and configure all settings with the actual values from your gateway Back Office.
3. Access the `index.php` page from your browser.
4. Follow the indications to perform a payment## The next steps
You will also find here the instructions on how to plug the toolbox logging process to your own logging mechanism, how
to override the IPN and RETURN URL defined for your gateway Back Office. And finally, you can change the `TEST` parameter
to `PRODUCTION` to switch to real payment mode, with *all* the caution this decision expects.## Note
* The documentation used to write this code was [Guide d'implementation formulaire de paiement, v3.4](https://payzen.io)