Skip to content

Commit

Permalink
Merge pull request #6 from rushi/XOL-3031
Browse files Browse the repository at this point in the history
XOL-3031 Restore support for apiVersion key
  • Loading branch information
anush authored Sep 13, 2016
2 parents def44a8 + 9277399 commit a03983f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,33 @@ public function setApiKey($value)
return $this->setParameter('apiKey', $value);
}

/**
* Sets the API version
*
* By default all requests will use your account's API settings. However
* for every API call you can specify an optional version. When a valid
* API version is specified that request will use that version of the API
* instead of the version configured in your account settings
*
* @param string $value
*
* @return Gateway provides a fluent interface
*/
public function setApiVersion($value)
{
return $this->setParameter('apiVersion', $value);
}

/**
* Returns the API version configured for this gateway
*
* @return string
*/
public function getApiVersion()
{
return $this->getParameter('apiVersion');
}

/**
* Authorize Request.
*
Expand Down

0 comments on commit a03983f

Please sign in to comment.