Skip to content

Commit

Permalink
Fix removing tax rates (#1059)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Feb 11, 2021
1 parent feb18b3 commit e9bfca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ public function syncTaxRates()
{
$stripeSubscription = $this->asStripeSubscription();

$stripeSubscription->default_tax_rates = $this->user->taxRates();
$stripeSubscription->default_tax_rates = $this->user->taxRates() ?: '';

$stripeSubscription->proration_behavior = $this->prorateBehavior();

Expand All @@ -1051,7 +1051,7 @@ public function syncTaxRates()
foreach ($this->items as $item) {
$stripeSubscriptionItem = $item->asStripeSubscriptionItem();

$stripeSubscriptionItem->tax_rates = $this->getPlanTaxRatesForPayload($item->stripe_plan);
$stripeSubscriptionItem->tax_rates = $this->getPlanTaxRatesForPayload($item->stripe_plan) ?: '';

$stripeSubscriptionItem->proration_behavior = $this->prorateBehavior();

Expand Down

0 comments on commit e9bfca6

Please sign in to comment.