lib/app_manager/model.rb in app_manager-1.1.3 vs lib/app_manager/model.rb in app_manager-1.1.4

- old
+ new

@@ -18,12 +18,12 @@ end remaining_days = self.get_remaining_days if remaining_days > 0 return true end - shopify_fields = @field_names = AppManager.configuration.field_names plan_obj = AppManager::Client.new - active_charge = plan_obj.get_charge(shopify_fields['name']) rescue nil + shop_domain = self[AppManager.configuration.shopify_domain_field] + active_charge = plan_obj.get_charge(shop_domain) rescue nil return active_charge['active_charge'].present? && !active_charge['active_charge'].nil? ? true : false end \ No newline at end of file