PHP code example of raufabbas / payriff
1. Go to this page and download the library: Download raufabbas/payriff 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/ */
raufabbas / payriff example snippets
use Payriff\Payriff;
$payriff = new Payriff();
$payriff->setEncryptionToken(time() . rand());
$payriff->setMerchantNo('merchant');
$payriff->setSecretKey('secret');
$createOrder = $payriff->createOrder(amount: 1, description: 'Test order');