Last active
April 23, 2021 15:25
-
-
Save miodeqqq/985c6491f2b19f6804230981b7194bdf to your computer and use it in GitHub Desktop.
Django & Stripe - attach_identity_document.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
passport_front = stripe.File.create( | |
purpose="identity_document", | |
file=_file, # ContentFile object | |
stripe_account=user2.stripe_id, | |
) | |
individual = { | |
"verification": { | |
"document": {"front": passport_front.get("id"),}, | |
"additional_document": {"front": passport_front.get("id"),}, | |
} | |
} | |
stripe.Account.modify(user2.stripe_id, individual=individual) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment