Skip to content

Commit

Permalink
Removed GetToken() method
Browse files Browse the repository at this point in the history
there is no viable use-case for this in the library, it just may confuse developers
  • Loading branch information
priitpiile authored Jan 2, 2017
1 parent 8cf6d2d commit fcd50e6
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions lib/Maksekeskus.php
Original file line number Diff line number Diff line change
Expand Up @@ -753,24 +753,6 @@ public function createToken ($request_body)
}


/**
* Get token by email or cookie ID
*
* @param string $request_params Request parameters
* @throws MKException if failed to get token object
* @return obj Token object
*/
public function getToken ($request_params)
{
$response = $this->makeGetRequest('/v1/tokens', $request_params);

if (in_array($response->code, array(200))) {
return $response->body;
} else {
throw new MKException($response->raw_body, 'Could not get token. Response ('.$response->code.'): '.$response->raw_body, $response->body->code);
}
}


public function createPayment ($transaction_id, $request_body)
{
Expand Down

0 comments on commit fcd50e6

Please sign in to comment.