forked from tpay-com/tpay-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBasicEhatForm.php
More file actions
46 lines (36 loc) · 1.08 KB
/
BasicEhatForm.php
File metadata and controls
46 lines (36 loc) · 1.08 KB
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
39
40
41
42
43
44
45
46
<?php
/*
* Created by tpay.com
*/
namespace tpayLibs\examples;
use tpayLibs\src\_class_tpay\PaymentForms\PaymentBasicForms;
include_once 'config.php';
include_once 'loader.php';
class BasicEhatExample extends PaymentBasicForms
{
public function __construct()
{
$this->merchantSecret = 'demo';
$this->merchantId = 1010;
parent::__construct();
}
public function displayEhatForm()
{
$config = array(
'kwota' => 999.99,
'opis' => 'Transaction description',
'crc' => '100020003000',
'wyn_url' => 'http://example.pl/examples/paymentBasic.php?transaction_confirmation',
'wyn_email' => 'shop@example.com',
'pow_url' => 'http://example.pl/examples/paymentBasic.php',
'email' => 'customer@example.com',
'imie' => 'Jan',
'nazwisko' => 'Kowalski',
);
/*
* This method return HTML form
*/
echo $this->getEHatForm($config);
}
}
(new BasicEhatExample())->displayEhatForm();