Add missing vat_number while saving billing address

This commit is contained in:
PCoder 2019-12-25 10:32:37 +05:30
parent e48ae6a39d
commit 8ebd12c420
2 changed files with 3 additions and 1 deletions

View file

@ -34,7 +34,8 @@ def create_vm(billing_address_data, stripe_customer_id, specs,
street_address=billing_address_data['street_address'], street_address=billing_address_data['street_address'],
city=billing_address_data['city'], city=billing_address_data['city'],
postal_code=billing_address_data['postal_code'], postal_code=billing_address_data['postal_code'],
country=billing_address_data['country'] country=billing_address_data['country'],
vat_number=billing_address_data['vat_number'],
) )
billing_address.save() billing_address.save()
customer = StripeCustomer.objects.filter(id=stripe_customer_id).first() customer = StripeCustomer.objects.filter(id=stripe_customer_id).first()

View file

@ -35,6 +35,7 @@ class MembershipBillingForm(BillingAddressForm):
'city': _('City'), 'city': _('City'),
'postal_code': _('Postal Code'), 'postal_code': _('Postal Code'),
'country': _('Country'), 'country': _('Country'),
'vat_number': _('VAT Number'),
} }