Skip to content

Commit 7ef71b3

Browse files
committed
remove postal code check since some countries does not have them (#7138)
1 parent da1a4e0 commit 7ef71b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

admin/billing/payment/stripe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func getPaymentCustomerFromStripeCustomer(c *stripe.Customer) *Customer {
125125
Name: c.Name,
126126
Email: c.Email,
127127
HasPaymentMethod: i.Next(),
128-
HasBillableAddress: c.Address != nil && c.Address.PostalCode != "",
128+
HasBillableAddress: c.Address != nil,
129129
TaxExempt: c.Address != nil && c.Address.Country != "US" && c.Address.Country != "CA",
130130
}
131131
}

0 commit comments

Comments
 (0)