Download the PHP package dalenys/php-merchant-api without Composer
On this page you can find all versions of the php package dalenys/php-merchant-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dalenys/php-merchant-api
More information about dalenys/php-merchant-api
Files in dalenys/php-merchant-api
Package php-merchant-api
Short Description Dalenys PHP merchant API
License BSD-3-Clause
Homepage http://developer.dalenys.com/
Informations about the package php-merchant-api
[Dalenys Merchant API] (http://developer.dalenys.com/)
A simple PHP implementation of the Dalenys payment platform API.
Installing
Composer
You can easily install this library by adding the following lines to your composer.json file
or by using this command line in a terminal at the root of your project
Manual install
You can install this library manually by simply cloning it to your project and including scripts/autoload.php
Using
Building a simple payment form
Here is the code sample for implementing a simple 10€ payment form
Payment options
You can specify some additional options to the buildPaymentFormButton method. The most useful options are:
- CREATEALIAS = yes/no => Ask for the creation of a rebilling alias (allowing one click payments or subscription like payments)
- 3DSECURE = yes/no => Ask for 3DSECURE authentication
- CARDFULLNAME => When set the card holder inputs will be filled with specified data
For the full list of options you can read the Dalenys documentation
Sandbox environment
You can easily test your integration with the sandbox environment. This environment will simulate payments without processing any real money move. You just have to use another builder method:
Transaction edition
You can edit a transaction: capturing or refunding an authorization. You should use the direct link AP:
Testing
- First you have to copy tests/ftests/config.php.dist to tests/ftests/config.php
- Then run
composer tests
If you want to run only the unit or functional test suites:
composer utests
or composer ftests
Documentation
-
The documentation is available in doc folder.
- Ensure to download the phar package
- You can generate it with https://www.phpdoc.org/ by running
composer doc
All versions of php-merchant-api with dependencies
ext-curl Version *