1. Go to this page and download the library: Download receiver1/omnipay-pzmpay 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/ */
receiver1 / omnipay-pzmpay example snippets
// Create a new payment gateway
$gateway = Omnipay::create('PZMPay');
// Set the secret code
$gateway->setSecretCode('secretCode');
// Create a new payment for 10 rubles 00 kopecks
$purchaseResponse = $gateway->purchase([
'amount' => 10,
'currency' => 'RUB',
'description' => 'Balance top-up 1337 Cheats',
])->send();
if (!$purchaseResponse->isSuccessful()) {
throw new Exception($response->getMessage());
}
// Get the payment identifier in PZMPay
$invoiceId = $purchaseResponse->getTransactionId();
// Get the link to the PZMPay payment form
$redirectUrl = $purchaseResponse->getRedirectUrl();