Skip to content

Commit

Permalink
Add the withCurrency and withUserDefaultCurrency SubscriptionBuilderC…
Browse files Browse the repository at this point in the history
…lass methods
  • Loading branch information
edulazaro committed Sep 19, 2023
1 parent 2b45a44 commit f05400d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SubscriptionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,13 @@ public function withCurrency($currency)
public function withUserDefaultCurrency()
{
// Not a Stripe customer yet
if (!$this->owner->stripe_id) {
if (! $this->owner->stripe_id) {
return $this;
}

$stripeCustomer = $this->owner->asStripeCustomer();

if (!empty($stripeCustomer['currency'])) {
if (! empty($stripeCustomer['currency'])) {
$this->currency = $stripeCustomer['currency'];
}

Expand Down

0 comments on commit f05400d

Please sign in to comment.