Файл: payment/pay/qiwi/qiwisdk.php
Строк: 34
<?php
require ($_SERVER['DOCUMENT_ROOT'].'/payment/pay/qiwi/sdk/vendor/autoload.php');
const SECRET_KEY = '48e7qUxn9T7RyYE1MVZswX1FRSbE6iyCj2gCRwwF3Dnh5XrasNTx3BGPiMsyXQFNKQhvukniQG8RTVhYm3iP6fdc5oyhariCzcfU2sF6cJ88L1PEYcW2EF5GXVjtQUagdgxnecVzixBinhfhcVCkJrosdLVVvwFF1AHrw9y5dsdn48XVZA5nmk6QYh3Na';
$billPayments = new QiwiApiBillPayments(SECRET_KEY);
$publicKey = '48e7qUxn9T7RyYE1MVZswX1FRSbE6iyCj2gCRwwF3Dnh5XrasNTx3BGPiMsyXQFNKQhvukniQG8RTVhYm3iP6fdc5oyhariCzcfU2sF6cJ88L1PEYcW2EF5GXVjtQUagdgxnecVzixBinhfhcVCkJrosdLVVvwFF1AHrw9y5dsdn48XVZA5nmk6QYh3Na';
$params = [
'publicKey' => $publicKey,
'amount' => abs($_GET['money']),
'billId' => intval($_GET['id']),
'successUrl' => 'https://wordpay.ru/payment/pay/qiwi/status.php',
'phone'=> intval($_GET['phone']),
'customFields[themeCode]'=> 'Pavel-PZU_ycd1pq',
];
/** @var QiwiApiBillPayments $billPayments */
$link = $billPayments->createPaymentForm($params);
echo $link;