title: Stripe cancellation of subscription not working Django
body: <p>I'm trying to create a cancellation page to remove a subscription. However, it's not working. In that, I cannot find the customer when I try to call Stripe API. </p>
  
  <p>The customer and subscription I think are being created, at least, the charge is going through. </p>
  
  <p>Here is where I create the subscription in views.py:</p>
  
  <pre><code>def charge(request): 
      stripe.api_key = settings.STRIPE_SECRET_KEY
      if request.method == 'POST':
      try:
          token = request.POST.get('stripeToken')
          user = request.user
          plan = 'plan_xxxxxx'
          order_number = X
          customer = stripe.Customer.create(description='Membership', 
              source=token,
              email=user.email, 
              plan=plan)
  
          charge = stripe.Subscription.create(
              customer=customer.id,
              items=[{'plan': plan}]
              )
      return render(request, 'charge.html')
  </code></pre>
  
  <p>Here is where I try to cancel the subscription:</p>
  
  <pre><code>def cancel_subscription(request):
      customer = stripe.Customer.retrieve('request.user.stripe_id')
      customer.cancel_subscription(at_period_end=True)
      return render(request, 'cancel.html')
  </code></pre>
  
  <p>This is the error that I get:</p>
  
  <pre><code>Request cus_xxxxxxxx: No such customer: request.user.stripe_id
  </code></pre>