Created
September 2, 2020 13:01
-
-
Save miodeqqq/c630ca155b5834d0fff91877a75f95e1 to your computer and use it in GitHub Desktop.
Django & Stripe - create_customer.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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