forked from tpay-com/tpay-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasic.php
38 lines (31 loc) · 873 Bytes
/
basic.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/*
* Created by tpay.com
*/
class TpayBasic
{
private $tpay;
public function __construct(tpay\PaymentBasic $object)
{
$this->tpay = $object;
$this->getDataForTpay();
}
public function getDataForTpay()
{
$config = array(
'kwota' => 999.99,
'opis' => 'Transaction description',
'crc' => '100020003000',
'pow_url' => 'https://www.tpay.com',
'wyn_url' => 'http://example.pl/examples/paymentBasic.php?transaction_confirmation',
'wyn_email' => '[email protected]',
'email' => '[email protected]',
'imie' => 'Jan',
'nazwisko' => 'Kowalski',
);
/*
* This method return HTML form
*/
echo $this->tpay->getTransactionForm($config);
}
}