From 0ac48b16326ec4af04e8d0b37d75cb5ec08f87e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Gallego?= Date: Mon, 14 Dec 2015 16:30:09 +0100 Subject: [PATCH] Add versions --- CHANGELOG.md | 5 +++++ README.md | 8 ++++---- src/Client/StripeClient.php | 5 +++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5285f3a..78e7a03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 3.5.0 + +* [BC] Set default Stripe API to "2015-10-16" +* Add the "default_source" parameter when updating a Stripe customer (all descriptors). + # 3.4.0 * [BC] Set default Stripe API to "2015-10-01" diff --git a/README.md b/README.md index 56a752d..c48e0ca 100644 --- a/README.md +++ b/README.md @@ -30,11 +30,11 @@ $client = new StripeClient('my-api-key'); > You can change the API key for the client using the `setApiKey` method. This is useful if you are using Stripe Connect and make both your own API calls and API calls on behalf of your users. -The currently latest supported version of the API is **2015-10-01**. You can (and should) also explicitly specify the version +The currently latest supported version of the API is **2015-10-16**. You can (and should) also explicitly specify the version of the client using the second parameter: ```php -$client = new StripeClient('my-api-key', '2015-10-01'); +$client = new StripeClient('my-api-key', '2015-10-16'); ``` ### Versioning @@ -53,8 +53,8 @@ and set the default Stripe version as the latest one. * If existing endpoints are updating by changing their URL, a major release of ZfrStripe is released as compatibility cannot be assured. Currently, the following Stripe API versions are accepted by ZfrStripe: `2015-02-18`, `2015-03-24`, `2015-04-07`, `2015-06-15`, `2015-07-07`, -`2015-07-13`, `2015-07-28`, `2015-08-07`, `2015-08-19`, `2015-09-03`, `2015-09-08`, `2015-09-23`, `2015-10-01`. I will try to update the library -as soon as new version are released. +`2015-07-13`, `2015-07-28`, `2015-08-07`, `2015-08-19`, `2015-09-03`, `2015-09-08`, `2015-09-23`, `2015-10-01`, `2015-10-12`, +`2015-10-16`. I will try to update the library as soon as new version are released. > If you need support for versions as old as 2014-03-28, please use branch v2 of ZfrStripe. > If you need support for even older versions, please use branch v1 of ZfrStripe. diff --git a/src/Client/StripeClient.php b/src/Client/StripeClient.php index 4f145a6..8e64d99 100644 --- a/src/Client/StripeClient.php +++ b/src/Client/StripeClient.php @@ -202,14 +202,15 @@ class StripeClient extends Client /** * Stripe API version */ - const LATEST_API_VERSION = '2015-09-08'; + const LATEST_API_VERSION = '2015-10-16'; /** * @var array */ protected $availableVersions = [ '2015-02-18', '2015-03-24', '2015-04-07', '2015-06-15', '2015-07-07', '2015-07-13', '2015-07-28', - '2015-08-07', '2015-08-19', '2015-09-03', '2015-09-08', '2015-09-23', '2015-10-01' + '2015-08-07', '2015-08-19', '2015-09-03', '2015-09-08', '2015-09-23', '2015-10-01', '2015-10-12', + '2015-10-16' ]; /**