-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.php
More file actions
28 lines (26 loc) · 791 Bytes
/
index.php
File metadata and controls
28 lines (26 loc) · 791 Bytes
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
<?php
require(__DIR__ . '\vendor\autoload.php');
use click\applications\Application;
use click\models\Payments;
Application::session('JKhkjANmjHAJjbnKAhA', ['/prepare', '/complete'], function(){
$payments = new Payments([
'db' => [
'dsn' => 'mysql:host=localhost;dbname=module',
'username' => 'root',
'password' => ''
]
]);
$application = new Application([
'type' => 'json',
'model' => $payments,
'configs' => [
'click' => [
'merchant_id' => 'YOUR MERCHANT ID',
'service_id' => 'YOUR SERVICE ID',
'user_id' => 'YOUR MERCHANT USER ID',
'secret_key' => 'SECRET KEY'
]
]
]);
$application->run();
});