@@ 69-79 (lines=11) @@ | ||
66 | * @param array $data |
|
67 | * @return ResponseInterface |
|
68 | */ |
|
69 | protected function chargeByToken($data) |
|
70 | { |
|
71 | $link = $this->baseUrl . self::CHARGE_RETURNING_USER; |
|
72 | ||
73 | return $this->adapter->getHttpClient() |
|
74 | ->post( |
|
75 | $link, [ |
|
76 | 'body' => json_encode(array_merge($this->apiKeys, $data)) |
|
77 | ] |
|
78 | ); |
|
79 | } |
|
80 | } |
|
81 |
@@ 47-55 (lines=9) @@ | ||
44 | return $res['data']; |
|
45 | } |
|
46 | ||
47 | protected function chargeByToken($data) |
|
48 | { |
|
49 | return $this->adapter->getHttpClient() |
|
50 | ->post( |
|
51 | $this->baseUrl . self::TOKEN_CHARGE_RELATIVE_LINK, [ |
|
52 | 'body' => json_encode($data) |
|
53 | ] |
|
54 | ); |
|
55 | } |
|
56 | } |
|
57 |