Skip to content

Commit a303eda

Browse files
authored
Merge pull request #167 from anush/gateway_version
Allow configuring `Stripe-Version` at the gateway level
2 parents d9580b1 + 8f2fd68 commit a303eda

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/AbstractGateway.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ public function getDefaultParameters()
107107
{
108108
return array(
109109
'apiKey' => '',
110+
'stripeVersion' => null
110111
);
111112
}
112113

@@ -150,6 +151,24 @@ public function setApiKey($value)
150151
return $this->setParameter('apiKey', $value);
151152
}
152153

154+
/**
155+
* @return string
156+
*/
157+
public function getStripeVersion()
158+
{
159+
return $this->getParameter('stripeVersion');
160+
}
161+
162+
/**
163+
* @param string $value
164+
*
165+
* @return Gateway
166+
*/
167+
public function setStripeVersion($value)
168+
{
169+
return $this->setParameter('stripeVersion', $value);
170+
}
171+
153172
/**
154173
* Authorize Request.
155174
*

0 commit comments

Comments
 (0)