| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 95 | public function setNumberToken(Getnet $credencial) |
||
| 96 | { |
||
| 97 | $data = ["card_number" => $this->card_number,"customer_id" => $this->customer_id]; |
||
| 98 | |||
| 99 | $request = new Request($credencial); |
||
| 100 | $response = $request->post($credencial, "/v1/tokens/card", json_encode($data)); |
||
| 101 | $this->number_token = $response["number_token"]; |
||
| 102 | |||
| 103 | return $this; |
||
| 104 | } |
||
| 105 | } |
||
| 106 |