Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function createProduct(array $data, $request_id) |
||
21 | { |
||
22 | $this->apiEndPoint = "v1/catalogs/products"; |
||
1 ignored issue
–
show
|
|||
23 | $this->apiUrl = collect([$this->apiUrl, $this->apiEndPoint])->implode('/'); |
||
1 ignored issue
–
show
|
|||
24 | |||
25 | $this->options['headers']['PayPal-Request-Id'] = $request_id; |
||
1 ignored issue
–
show
|
|||
26 | $this->options['json'] = $data; |
||
27 | |||
28 | $this->verb = 'post'; |
||
1 ignored issue
–
show
|
|||
29 | |||
30 | return $this->doPayPalRequest(); |
||
1 ignored issue
–
show
|
|||
31 | } |
||
97 |