Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
62 | public function sendTokenRequest() |
||
63 | { |
||
64 | $token_payload = ['payment_source' => null]; |
||
65 | |||
66 | if (!empty($this->token_source)) { |
||
67 | $token_payload['payment_source']['token'] = $this->token_source; |
||
68 | } |
||
69 | |||
70 | if (!empty($this->customer_source)) { |
||
71 | $token_payload['customer'] = $this->customer_source; |
||
72 | } |
||
73 | |||
74 | return $this->createPaymentSourceToken(array_filter($token_payload)); |
||
|
|||
75 | } |
||
77 |