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