- Allow to add metadata when creating cards
- Allow to set metadata for cards when updating
- [BC] Set default Stripe API to "2015-10-16"
- Add the "default_source" parameter when updating a Stripe customer (all descriptors).
- [BC] Set default Stripe API to "2015-10-01"
- [BC] Set default Stripe API to "2015-09-08"
- [BC] Set default Stripe API to "2015-09-03"
- [BC] Set default Stripe API to "2015-08-19". When using this new version, refunds are now get without specifying a charge ID.
- [BC] For all descriptors,
closeDispute
andupdateDispute
now uses the new endpoints that do not require a charge ID but instead a dispute ID. In previous versions:
$stripeClient->closeDispute(['charge' => 'ch_abc']);
In new version:
$stripeClient->closeDispute(['id' => 'dp_abc']);
Also, new endpoints have been added that allow to retrieve a specific dispute by its id, as well as retrieving all disputes.
- [BC] Descriptor cleanup: older descriptors have been removed. ZfrStripe now supports Stripe API version from 2015-02-18. If you are using an older version of the API, you should stay on 2.x branch.
- [BC] Set default Stripe API to "2015-07-28"
- [BC] Set default Stripe API to "2015-07-13"
- [BC] Set default Stripe API to "2015-07-07"
- [BC] Set default Stripe API to "2015-06-15"
- Add the
destination
parameter when creating a charge (in all descriptors).
- [BC] Set default Stripe API to "2015-04-07" version.
- [BC] Set default Stripe API to "2015-03-24" version. This adds the property
discountable
forcreateInvoiceItem
andupdateInvoiceItem
for all descriptors.
- Fix missing import
- [BC] Set default Stripe API to "2015-02-18" version (note: this version brings several important breaking changes in how you use Stripe API).
- Fix a bug when changing the API version at runtime did not properly updated the descriptor.
- [BC] Set default Stripe API to "2015-02-16" version
- Set a simpler dependency for Guzzle (hopefully solving some dependencies problems)
- [BC] Set default Stripe API to "2015-02-10" version
- Validation for
tax_percent
is less restrictive and now accepts both a string or float
- [BC] Set default Stripe API to "2015-01-26" version
- ZfrStripe adds support for the new Idempotency feature (see here). It is added
to every POST request, and work by using the new
idempotency_key
param.
- Fix a bug where the parameter
plan
was required forupdateSubscription
(it is actually optional).
- [BC] Set default Stripe API to "2015-01-11" version
- Fixed a long-lasting bug for
updateDispute
method. Also, a new descriptor has been added, as a previous BC was not taken into account in ZfrStripe. Therefore, current descriptor is Stripe-v1.2.
- Add the new
tax_percent
property to subscriptions.
- [BC] Set default Stripe API to "2014-12-22" version
- [BC] Set default Stripe API to "2014-12-17" version. This version replaced the
statement_description
tostatement_descriptor
for charges, plans, invoices and tranfers. Therefore, a new descriptor has been released for versions starting at "2014-12-17".
- [BC] Set default Stripe API to "2014-12-08" version
- [BC] Set default Stripe API to "2014-11-20" version
- [BC] Set default Stripe API to "2014-11-05" version
- Add support for the new
reason
property when creating a refund.
- Fix IDE auto-completion hint for
getUpcomingInvoiceLineItems
method
- Add missing
getUpcomingInvoiceLineItems
endpoint. This can be used to retrieve all the invoice line items from a given upcoming invoice.
forgiven
boolean was not properly encoded when updating an invoice.
- Add support for filtering deleted customers or not through the
deleted
parameter. Please note that this feature IS NOT documented and officially supported by Stripe, and may be removed without caution.
- Add support for the new
shipping
array when creating charges. - Add support for filtering charges if they are paid or not through the
paid
parameter. Please note that this feature IS NOT documented and officially supported by Stripe, and may be removed without caution.
- [BC] Set default Stripe API to "2014-10-07" version
- ZfrStripe now uses PSR-4 for autoloading. This has flattened the structure of the libray, it should not break any of your code :).
- You can now use the shortcut
now
when setting or updatingtrial_end
property. - Add support for the new
billing_cycle_anchor
property when creating and updating a subscription.
- Fix a bug when filtering invoice items by date.
- Add support for filtering invoice items if they are proration or not through the
proration
parameter. Please note that this feature IS NOT documented and officially supported by Stripe, and may be removed without caution.
- Add support for
object_id
when retrieving events. This allows to filter events by customer. Please note that this feature IS NOT documented and officially supported by Stripe, but as it powers Stripe dashboard, it should not be removed.
- The
getInvoiceLineItems
was not working correctly when pagination. - [BC] For consistency with other resources, the
id
parameter for retrieving invoice line items has been renameinvoice
.
- [BC] Set default Stripe API to "2014-09-08" version.
- Fix docblock to allow auto-completion on
getInvoiceLineItemsIterator
- Balance transactions history for fee refund can be retrieved using the "fee_refund" type (Stripe documentation was wrong)
- Fix
updateApplicationFeeRefund
method
- Fix error with exception name
- [BC] PHP minimum dependency has been raised to PHP 5.4
- [BC] Any descriptor before 2014-03-28 has been removed. If you need a previous version, please use 1.x branch.
- Add new method to update coupons.
- Add missing recipient card endpoints.
- API version can now be changed by using the same client.
- After some talk with Stripe developers, I realized I could simplify how versioning is done inside ZfrStripe. Starting from v2, I will reuse the same descriptor until an endpoint actually changes (for instance, in January 2014 the endpoint to get customer's subscriptions changed from "/customers/cus_abc/subscription" to "/customers/cus_abc_subscriptions"). However, if a new endpoint is introduced, it can actually be accessed even for older versions so that we do not need to duplicate the whole descriptor.
- [BC] Update latest API descriptor to 2014-08-20. This changes the response when getting disputes.
- [BC] Update latest API descriptor to 2014-08-04. This changes the response when getting transfers.
- [BC] Update latest API descriptor to 2014-07-26. This adds new endpoint for application fee refunds, and change the endpoint to refund an application fee.
- [BC] Update latest API descriptor to 2014-07-22.
- Add the
statement_description
to invoice. - Add the new
forgiven
property when updating an invoice for latest descriptor.
- Fix descriptor for refunds endpoint.
- [BC] The "Stripe-Version" header is now added to all requests. This allow to do API calls using another API version than the one define in your Stripe dashboard (see doc for more details).
- [BC] Update latest API descriptor to 2014-06-17. It includes the following changes:
- Refunds is now a first-class resource, so you can retrieve, update and list refunds through specific methods.
- Allow dispute to have metadata (starting from 2014-06-17).
- Allow charges to have metadata (starting from 2014-06-17).
- Add the various "balance" methods that were missing. It has been backported to all descriptors.
- Add the new
receipt_email
property for charges.
- Add support for "day" interval for plans.
- [BC] Update latest API descriptor to 2014-05-19. This adds support for metadata in subscriptions.
- You can now set
statement_description
withcreatePlan
andupdatePlan
methods (only for version starting from 2014-03-28).
- Add new useful and more precise exceptions. This may be a minor BC. Before this release, ZfrStripe used to throw
a CardErrorException on 402. Now, it only throws this exception if the error type is
card_error
, otherwise it throws a RequestFailedException. Alternatively, the ValidationErrorException has been replaced with a more generic BadRequestException, which more closely follows Stripe API. Furthermore, an ApiRateLimitException has been added to easily track an API rate limit error.
- Add missing
subscription
parameter togetUpcomingInvoice
method since 2014-01-31
- Add the new
ending_before
property for the cursor-based pagination (from 2014-03-28 version only)
- Properly encode boolean values to "true" or "false" string, as required by Stripe API. The change has been applied to all the previous service description.
- [BC] Update latest API descriptor to 2014-03-28. This adds support for the new cursor-based pagination. This version removes the "offset" parameter, in favour of a new "starting_after" parameter. The new "limit" parameter is equivalent to the old "count" parameter. If you use ZfrStripe iterators, this does not change anything for you.
- [BC] Update latest API descriptor to 2014-03-13. This adds a new "statement_description" for both creating charge and transfer, and remove "statement_descriptor" from transfer.
- Fix a bug when setting a description for invoice items [#1]
- [BC] Update latest API descriptor to 2014-01-31
- Fix a bug when using iterators that always skipped the first element
- Add iterators
- Allow to reuse the same client with different API keys (useful when dealing with Stripe Connect)
- Initial release