Rename token to id_payment_method
This commit is contained in:
		
					parent
					
						
							
								8c72b56f6c
							
						
					
				
			
			
				commit
				
					
						7b71ba55f2
					
				
			
		
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -504,7 +504,7 @@ class PaymentOrderView(FormView):
 | 
				
			||||||
                        )
 | 
					                        )
 | 
				
			||||||
                        customer = StripeCustomer.create_stripe_api_customer(
 | 
					                        customer = StripeCustomer.create_stripe_api_customer(
 | 
				
			||||||
                            email=user_email,
 | 
					                            email=user_email,
 | 
				
			||||||
                            token=id_payment_method,
 | 
					                            id_payment_method=id_payment_method,
 | 
				
			||||||
                            customer_name=user_name)
 | 
					                            customer_name=user_name)
 | 
				
			||||||
                except CustomUser.DoesNotExist:
 | 
					                except CustomUser.DoesNotExist:
 | 
				
			||||||
                    logger.debug(
 | 
					                    logger.debug(
 | 
				
			||||||
| 
						 | 
					@ -515,7 +515,7 @@ class PaymentOrderView(FormView):
 | 
				
			||||||
                    )
 | 
					                    )
 | 
				
			||||||
                    customer = StripeCustomer.create_stripe_api_customer(
 | 
					                    customer = StripeCustomer.create_stripe_api_customer(
 | 
				
			||||||
                        email=user_email,
 | 
					                        email=user_email,
 | 
				
			||||||
                        token=id_payment_method,
 | 
					                        id_payment_method=id_payment_method,
 | 
				
			||||||
                        customer_name=user_name)
 | 
					                        customer_name=user_name)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            billing_address = address_form.save()
 | 
					            billing_address = address_form.save()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -277,7 +277,7 @@ class StripeCustomer(models.Model):
 | 
				
			||||||
        return "%s - %s" % (self.stripe_id, self.user.email)
 | 
					        return "%s - %s" % (self.stripe_id, self.user.email)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @classmethod
 | 
					    @classmethod
 | 
				
			||||||
    def create_stripe_api_customer(cls, email=None, token=None,
 | 
					    def create_stripe_api_customer(cls, email=None, id_payment_method=None,
 | 
				
			||||||
                                   customer_name=None):
 | 
					                                   customer_name=None):
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
            This method creates a Stripe API customer with the given
 | 
					            This method creates a Stripe API customer with the given
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue