AttributeError: 'NoneType' object has no attribute 'startswith django

How to solve the issue?
after I click the Complete Order Button, it shows an error.

Its simple, find the object where you are using startswith as attribute. The object value is returned as None. Make sure object is getting proper value, or handle the None value in your code.