Skip to content

Commit

Permalink
Allow configuring Stripe-Version at the gateway level
Browse files Browse the repository at this point in the history
  • Loading branch information
anush committed Jan 4, 2020
1 parent d9580b1 commit 8f2fd68
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/AbstractGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public function getDefaultParameters()
{
return array(
'apiKey' => '',
'stripeVersion' => null
);
}

Expand Down Expand Up @@ -150,6 +151,24 @@ public function setApiKey($value)
return $this->setParameter('apiKey', $value);
}

/**
* @return string
*/
public function getStripeVersion()
{
return $this->getParameter('stripeVersion');
}

/**
* @param string $value
*
* @return Gateway
*/
public function setStripeVersion($value)
{
return $this->setParameter('stripeVersion', $value);
}

/**
* Authorize Request.
*
Expand Down

0 comments on commit 8f2fd68

Please sign in to comment.