Releases: p3ol/subscribe-php-sdk
Releases · p3ol/subscribe-php-sdk
Custom offer price, Sandbox mode & PHP 8.1
2.0.1 (2023-10-17)
Bug Fixes
- add missing sandbox options (4f30372)
- fix failing tests (7bd0ee4)
- fix undefined array key warning (5b2321f)
2.0.0 (2023-08-24)
⚠ BREAKING CHANGES
- Now requires php >= 8.1
customers.switchSubscriptionOffer(customerId, subscriptionId, offer, requestOptions)
becomescustomers.switchSubscriptionOffer(customerId, subscriptionId, offer, **{ priceId }**, requestOptions)
-> it now takes an additional parameter before request options to speficy offer options like price idsandbox: true|false
is now an option on every request (instead of only offers list) and has been removed fromoffers.list()
offers.list(page, count, status, include, exclude)
becomesoffers.list(page, count, include, exclude, **status**, requestOptions)
->status
is moved to the end of the parameters list to be consistent with other SDKs.
Features
- add price to options (3965f48)
- allow to provide offers options on subscription switch (9985fea)
- drop php 8.0 compatibility and require php 8.1 (c68eea4)
- offers: add sandbox param (992a8ab)