Skip to content

Releases: yii2mod/yii2-cashier

2.0.0 Release

22 Mar 19:26
ffb8c7c
Compare
Choose a tag to compare
  1. Rename table subscription -> subscriptions
  2. Require PHP 7.1, added type hints, return types
  3. Rename columns in the subscriptions table
  4. 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

06 Nov 16:59
Compare
Choose a tag to compare
  1. Added table prefixes in migrations
  2. Updated tests

1.5 Release

22 Nov 16:03
Compare
Choose a tag to compare
  1. Added php-cs-fixer
  2. Fixed code style

1.4 Release

09 Nov 10:27
Compare
Choose a tag to compare
  1. Rename subscription table to lowercase

To apply this changes please rename Subscription table to lowercase

1.3 Release

03 Nov 15:51
Compare
Choose a tag to compare
  1. Create tests

1.2 Release

15 Oct 07:02
Compare
Choose a tag to compare

Date: October, 15, 2016

  1. Set Subscription Prorate Argument when using updateQuantity

1.1 Release

25 Jul 13:00
Compare
Choose a tag to compare

Date: Monday, July 25, 2016

  1. Update init migration
  2. Update composer.json

1.0.2

08 Jun 13:05
Compare
Choose a tag to compare

Date: Wednesday, June 08, 2016

  1. Add refund function to Billable
$invoice = $userModel->findInvoice('invoice_id');
$refund = $userModel->refund($invoice->charge);
var_dump($refund->amount); // show refund amount
  1. Invoice date now uses UTC for instantiation since Stripe's API uses UTC for all dates
  2. Fix handling data from the stripe webhooks

1.0.1 Release

12 May 09:07
Compare
Choose a tag to compare

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

11 May 10:45
Compare
Choose a tag to compare

Initial Release