Skip to content

Commit

Permalink
fix removing tax rates
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Feb 19, 2021
1 parent 19d3d34 commit d803ae5
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 @@ -1066,7 +1066,7 @@ public function syncTaxRates()
{
$stripeSubscription = $this->asStripeSubscription();

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

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

Expand All @@ -1075,7 +1075,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) ?: null;

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

Expand Down

0 comments on commit d803ae5

Please sign in to comment.