Releases: yii2mod/yii2-cashier
Releases · yii2mod/yii2-cashier
2.0.0 Release
- Rename table subscription -> subscriptions
- Require PHP 7.1, added type hints, return types
- Rename columns in the subscriptions table
- Update tests
For upgrade to this release please execute migration by the following command:
$ php yii migrate --migrationPath=@vendor/yii2mod/yii2-cashier/migrations
1.6 Release
- Added table prefixes in migrations
- Updated tests
1.5 Release
- Added php-cs-fixer
- Fixed code style
1.4 Release
- Rename subscription table to lowercase
To apply this changes please rename Subscription
table to lowercase
1.3 Release
- Create tests
1.2 Release
Date: October, 15, 2016
- Set Subscription Prorate Argument when using updateQuantity
1.1 Release
Date: Monday, July 25, 2016
- Update init migration
- Update composer.json
1.0.2
Date: Wednesday, June 08, 2016
- Add
refund
function to Billable
$invoice = $userModel->findInvoice('invoice_id');
$refund = $userModel->refund($invoice->charge);
var_dump($refund->amount); // show refund amount
- Invoice date now uses UTC for instantiation since Stripe's API uses UTC for all dates
- Fix handling data from the stripe webhooks
1.0.1 Release
Date: Thursday, May 12, 2016
Added methods to the SubscriptionModel for easily increment or decrement your subscription quantity
Example:
$user = User::findOne(1);
$user->subscription('main')->incrementQuantity();
// Add five to the subscription's current quantity...
$user->subscription('main')->incrementQuantity(5);
$user->subscription('main')->decrementQuantity();
// Subtract five to the subscription's current quantity...
$user->subscription('main')->decrementQuantity(5);
Alternatively, you may set a specific quantity using the updateQuantity method:
$user->subscription('main')->updateQuantity(10);
1.0 Release
Initial Release