Skip to content

Instantly share code, notes, and snippets.

@miodeqqq
Created September 2, 2020 13:01
Show Gist options
  • Select an option

  • Save miodeqqq/c630ca155b5834d0fff91877a75f95e1 to your computer and use it in GitHub Desktop.

Select an option

Save miodeqqq/c630ca155b5834d0fff91877a75f95e1 to your computer and use it in GitHub Desktop.
Django & Stripe - create_customer.py
response_customer = stripe.Customer.create(
email=user.email,
description=f"EMPLOYER - {user.get_full_name}",
name=user.get_full_name,
phone=user.profile.phone_number,
)
user1.stripe_id = response_customer.stripe_id
user1.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment