Improve stripe_customer_id

This commit is contained in:
PCoder 2019-12-26 18:06:22 +05:30
commit 6d0a7f7049
2 changed files with 15 additions and 10 deletions

View file

@ -226,7 +226,7 @@ def create_tax_id(stripe_customer_id, billing_address_id, type,
logger.debug("Multiple BillingAddress exist for %s" % billing_address_id)
billing_address = BillingAddress.objects.filter(billing_address_id).order_by('-id').first()
stripe_utils = StripeUtils()
tax_id_response = stripe_utils.create_tax_id_for_user(
tax_id_response = stripe_utils.get_or_create_tax_id_for_user(
stripe_customer_id,
vat_number=billing_address.vat_number,
type=type