Skip to content
Snippets Groups Projects
Commit a1d9f685 authored by mattwire's avatar mattwire
Browse files

Use stripe-php library API version (2023-08-16)

parent c1fcf4f8
Branches
Tags
No related merge requests found
......@@ -269,7 +269,8 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
// Set plugin info and API credentials.
Stripe::setAppInfo('CiviCRM', CRM_Utils_System::version(), CRM_Utils_System::baseURL());
Stripe::setApiKey(self::getSecretKey($this->_paymentProcessor));
Stripe::setApiVersion(CRM_Stripe_Check::API_VERSION);
// With Stripe-php 12 we pin to latest Stripe API
// Stripe::setApiVersion(CRM_Stripe_Check::API_VERSION);
}
/**
......
......@@ -19,8 +19,8 @@ class CRM_Stripe_Check {
/**
* @var string
*/
const API_VERSION = '2022-11-15';
const API_MIN_VERSION = '2020-08-27';
const API_VERSION = \Stripe\Util\ApiVersion::CURRENT;
const API_MIN_VERSION = '2022-11-15';
/**
* @var string
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment