Total Complexity | 5 |
Total Lines | 66 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | trait Helpers |
||
10 | { |
||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $token_source = []; |
||
15 | |||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $customer_source = []; |
||
20 | |||
21 | /** |
||
22 | * Set payment method token by token id. |
||
23 | * |
||
24 | * @param string $id |
||
25 | * @param string $type |
||
26 | * |
||
27 | * @return \Srmklive\PayPal\Services\PayPal |
||
28 | */ |
||
29 | public function setTokenSource(string $id, string $type) |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Set payment method token customer id. |
||
41 | * |
||
42 | * @param string $id |
||
43 | * |
||
44 | * @return \Srmklive\PayPal\Services\PayPal |
||
45 | */ |
||
46 | public function setCustomerSource(string $id) |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * Send request for creating payment method token. |
||
57 | * |
||
58 | * @throws \Throwable |
||
59 | * |
||
60 | * @return array|\Psr\Http\Message\StreamInterface|string |
||
61 | */ |
||
62 | public function sendTokenRequest() |
||
77 |