From 8f2fd68ad145940b7a8d62f7107ae4b52ecbef05 Mon Sep 17 00:00:00 2001 From: Anush Ramani Date: Sat, 4 Jan 2020 13:36:40 -0800 Subject: [PATCH] Allow configuring `Stripe-Version` at the gateway level --- src/AbstractGateway.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/AbstractGateway.php b/src/AbstractGateway.php index 417de143..9d5653e3 100644 --- a/src/AbstractGateway.php +++ b/src/AbstractGateway.php @@ -107,6 +107,7 @@ public function getDefaultParameters() { return array( 'apiKey' => '', + 'stripeVersion' => null ); } @@ -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. *