Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
7 | public function createInvoice(array $param = []) |
||
8 | { |
||
9 | $default = [ |
||
10 | 'user_id' => '', |
||
11 | 'callback' => '', |
||
12 | 'forward' => '0', |
||
13 | 'amount' => '0.00', |
||
14 | 'address' => '', |
||
15 | ]; |
||
16 | |||
17 | $url = $this->buildUrl('/receive'); |
||
|
|||
18 | $url .= '?'.$this->buildQueryParam($default, $param); |
||
19 | $response = $this->client->doGet($url); |
||
20 | |||
21 | return $response; |
||
22 | } |
||
40 |