From 319401b6d111a2813aff55e6d421d596c50726b4 Mon Sep 17 00:00:00 2001 From: Rushi Vishavadia Date: Mon, 12 Sep 2016 10:56:54 -0700 Subject: [PATCH] XOL-3031 Restore support for apiVersion key --- src/Gateway.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/Gateway.php b/src/Gateway.php index 518c5fab..e4cfc531 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -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. *