Skip to content

Commit

Permalink
Update minimum version
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed Dec 18, 2014
1 parent c4ec9a2 commit feb1733
Show file tree
Hide file tree
Showing 4 changed files with 3,358 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 2.7.0

* [BC] Set default Stripe API to "2014-12-17" version. This version replaced the `statement_description` to
`statement_descriptor` for charges, plans, invoices and tranfers. Therefore, a new descriptor has been released for
versions starting at "2014-12-17".

# 2.6.0

* [BC] Set default Stripe API to "2014-12-08" version
Expand Down
10 changes: 5 additions & 5 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 **2014-12-08**. You can (and should) also explicitly specify the version
The currently latest supported version of the API is **2014-12-17**. You can (and should) also explicitly specify the version
of the client using the second parameter:

```php
$client = new StripeClient('my-api-key', '2014-12-08');
$client = new StripeClient('my-api-key', '2014-12-17');
```

### Versioning
Expand All @@ -48,8 +48,8 @@ Starting from v2, ZfrStripe does not follow this mechanism strictly, because new
However, each new minor version (2.1.0 to 2.2.0 for instance) will update the Stripe API version to the latest available. This means that Stripe responses *may* change. This means that to keep BC you should either tighten your dependency (2.1.* instead of 2.* for instance) OR always specify the exact version you want, as shown above.

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`. I will try to update the library as soon as new version are released.
`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`. 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 All @@ -66,7 +66,7 @@ $details = $client->createCharge([
```

The parameters have a direct one-to-one mapping with the official documentation (for any reference, you can also
check the `ZfrStripe\Client\ServiceDescription\Stripe-v1.0.php` file). To know what the responses look like, please
check the `ZfrStripe\Client\ServiceDescription\Stripe-v1.1.php` file). To know what the responses look like, please
refer to the [official API reference](https://stripe.com/docs/api).

#### Using a different Stripe API version
Expand Down
Loading

0 comments on commit feb1733

Please sign in to comment.