hosting/models.py: Fixed bug extracting cc info from dict

This commit is contained in:
PCoder 2017-08-24 12:51:55 +05:30
parent eab0c9fac1
commit 75da4a7711

View file

@ -101,8 +101,8 @@ class HostingOrder(AssignPermissionsMixin, models.Model):
:return:
"""
self.subscription_id = subscription_object.id
self.last4 = cc_details.last4
self.cc_brand = cc_details.brand
self.last4 = cc_details.get('last4')
self.cc_brand = cc_details.get('brand')
self.save()
def get_cc_data(self):