Format cc month to 2 decimal places
This commit is contained in:
		
					parent
					
						
							
								fe44908868
							
						
					
				
			
			
				commit
				
					
						903ef48c75
					
				
			
		
					 3 changed files with 4 additions and 4 deletions
				
			
		|  | @ -569,14 +569,14 @@ class OrderConfirmationView(DetailView, FormView): | |||
|             context['cc_last4'] = card_details_response['last4'] | ||||
|             context['cc_brand'] = card_details_response['brand'] | ||||
|             context['cc_exp_year'] = card_details_response['exp_year'] | ||||
|             context['cc_exp_month'] = card_details_response['exp_month'] | ||||
|             context['cc_exp_month'] = '{:02d}'.format(card_details_response['exp_month']) | ||||
|         else: | ||||
|             card_id = self.request.session.get('card_id') | ||||
|             card_detail = UserCardDetail.objects.get(id=card_id) | ||||
|             context['cc_last4'] = card_detail.last4 | ||||
|             context['cc_brand'] = card_detail.brand | ||||
|             context['cc_exp_year'] = card_detail.exp_year | ||||
|             context['cc_exp_month'] = card_detail.exp_month | ||||
|             context['cc_exp_month'] ='{:02d}'.format(card_detail.exp_month) | ||||
| 
 | ||||
|         if ('generic_payment_type' in request.session and | ||||
|                 self.request.session['generic_payment_type'] == 'generic'): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue