Файл: sys/fnc/createform.php
Строк: 12
<?php
function createPaymentForm($key, $theme, $amount, $method, $code) {
$protocol = 'http' . ((isset($_SERVER['HTTPS']) and $_SERVER['HTTPS'] != 'off') ? 's' : '') . '://';
$parameters = [
'publicKey' => $key,
'amount' => $amount,
'comment' => $code,
'successUrl' => $protocol . getenv('HTTP_HOST') . '/user/money/buy.php?success',
'customFields[themeCode]' => $theme,
'paySource' => $method,
'lifetime' => date('Y-m-d', strtotime(date('Y-m-d') . '+2 DAY')) . 'T0000',
];
return 'https://oplata.qiwi.com/create?' . http_build_query($parameters, '&', '&');
}