forked from tpay-com/tpay-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBankSelection.php
More file actions
47 lines (37 loc) · 1.12 KB
/
BankSelection.php
File metadata and controls
47 lines (37 loc) · 1.12 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
47
<?php
/*
* Created by tpay.com
*/
namespace tpayLibs\examples;
use tpayLibs\src\_class_tpay\PaymentForms\PaymentBasicForms;
include_once 'config.php';
include_once 'loader.php';
class BankSelectionExample extends PaymentBasicForms
{
public function __construct()
{
$this->merchantSecret = 'demo';
$this->merchantId = 1010;
parent::__construct();
}
/*
*Get bank selection by sending data array
*/
public function getBankForm()
{
$config = array(
'kwota' => 999.99,
'opis' => 'Transaction description',
'crc' => '100020003000',
'wyn_url' => 'http://example.pl/examples/notificationBasic.php?transaction_confirmation',
'wyn_email' => 'shop@example.com',
'pow_url' => 'http://example.pl/examples/success.html',
'email' => 'customer@example.com',
'imie' => 'Jan',
'nazwisko' => 'Kowalski',
);
$form = $this->getBankSelectionForm($config, false, true);
echo $form;
}
}
(new BankSelectionExample())->getBankForm();