· 6 years ago · Jul 12, 2019, 05:48 PM
1<?php
2
3$ composer require qiwi/bill-payments-php-sdk-master
4
5
6const SECRET_KEY = '***';
7
8$billPayments = new Qiwi\Api\BillPayments(SECRET_KEY);
9
10$publicKey = '***';
11$params = [
12 'publicKey' => $publicKey,
13 'amount' => 200,
14 'billId' => '893794793973',
15 'successUrl' => 'http://test.ru/',
16];
17
18/** @var \Qiwi\Api\BillPayments $billPayments */
19$link = $billPayments->createPaymentForm($params);
20
21echo $link;
22
23?>