1 | <?php |
||
7 | class QuickPay |
||
8 | { |
||
9 | /** |
||
10 | * Contains the QuickPay_Request object |
||
11 | * |
||
12 | * @access public |
||
13 | * @var Request |
||
14 | */ |
||
15 | public $request; |
||
16 | |||
17 | /** |
||
18 | * __construct function. |
||
19 | * |
||
20 | * Instantiates the main class. |
||
21 | * Creates a client which is passed to the request construct. |
||
22 | * |
||
23 | * @auth_string string Authentication string for QuickPay |
||
24 | * |
||
25 | * @access public |
||
26 | */ |
||
27 | public function __construct($auth_string = '', $additional_headers = array()) |
||
32 | |||
33 | /** |
||
34 | * Add additional headers to request. |
||
35 | * |
||
36 | * This could be used when need to test a callback url in dev mode |
||
37 | * |
||
38 | * QuickPay-Callback-Url: http://text.url/callback |
||
39 | * |
||
40 | * @access public |
||
41 | */ |
||
42 | public function setHeaders($additional_headers = array()) |
||
46 | } |
||
47 |