From 75da4a771117077af0126ed919b01b497645de3d Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 24 Aug 2017 12:51:55 +0530 Subject: [PATCH] hosting/models.py: Fixed bug extracting cc info from dict --- hosting/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosting/models.py b/hosting/models.py index cc75f2bb..478ed745 100644 --- a/hosting/models.py +++ b/hosting/models.py @@ -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):