PHP code example of dnetix / redirection
1. Go to this page and download the library: Download dnetix/redirection library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dnetix / redirection example snippets
$placetopay = new Dnetix\Redirection\PlacetoPay([
'login' => 'YOUR_LOGIN', // Provided by PlacetoPay
'tranKey' => 'YOUR_TRANSACTIONAL_KEY', // Provided by PlacetoPay
'baseUrl' => 'https://THE_BASE_URL_TO_POINT_AT',
'timeout' => 10, // (optional) 15 by default
]);