Skip to content

Commit

Permalink
Update latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed Jan 27, 2015
1 parent 2b59fc0 commit 5309262
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.11.0

* [BC] Set default Stripe API to "2015-01-26" version

# 2.10.2

* ZfrStripe adds support for the new Idempotency feature ([see here](https://stripe.com/docs/api#errors)). It is added
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-01-11**. You can (and should) also explicitly specify the version
The currently latest supported version of the API is **2015-01-26**. You can (and should) also explicitly specify the version
of the client using the second parameter:

```php
$client = new StripeClient('my-api-key', '2015-01-11');
$client = new StripeClient('my-api-key', '2015-01-26');
```

### Versioning
Expand All @@ -49,7 +49,8 @@ However, each new minor version (2.1.0 to 2.2.0 for instance) will update the St

Currently, the following Stripe API versions are accepted by ZfrStripe: `2014-03-28`, `2014-05-19`, `2014-06-13`,
`2014-06-17`, `2014-07-22`, `2014-07-26`, `2014-08-04`, `2014-08-20`, `2014-09-08`, `2014-10-07`, `2014-11-05`,
`2014-11-20`, `2014-12-08`, `2014-12-17`, `2014-12-22`, `2015-01-11`. I will try to update the library as soon as new version are released.
`2014-11-20`, `2014-12-08`, `2014-12-17`, `2014-12-22`, `2015-01-11`, `2015-01-26`. I will try to update the
library as soon as new version are released.

> If you need support for older versions, please use branch v1 of ZfrStripe.
Expand Down
5 changes: 3 additions & 2 deletions src/Client/StripeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,15 @@ class StripeClient extends Client
/**
* Stripe API version
*/
const LATEST_API_VERSION = '2015-01-11';
const LATEST_API_VERSION = '2015-01-26';

/**
* @var array
*/
protected $availableVersions = [
'2014-03-28', '2014-05-19', '2014-06-13', '2014-06-17', '2014-07-22', '2014-07-26', '2014-08-04', '2014-08-20',
'2014-09-08', '2014-10-07', '2014-11-05', '2014-11-20', '2014-12-08', '2014-12-17', '2014-12-22', '2015-01-11'
'2014-09-08', '2014-10-07', '2014-11-05', '2014-11-20', '2014-12-08', '2014-12-17', '2014-12-22', '2015-01-11',
'2015-01-26'
];

/**
Expand Down

0 comments on commit 5309262

Please sign in to comment.