- ru
 - Language: en
 
- Documentation version: 0.1
 
Stripe¶
Stripe uses OAuth2 for its authorization service. To setup Stripe backend:
Register a new application at Stripe App Creation, and
Grab the
client_idvalue inApplicationstab and fill theApp Idsetting:SOCIAL_AUTH_STRIPE_KEY = 'ca_...'
Grab the
Test Secret Keyin theAPI Keystab and fille theApp Secretsetting:SOCIAL_AUTH_STRIPE_SECRET = '...'
Define
SOCIAL_AUTH_STRIPE_SCOPEwith the desired scope (options areread_onlyandread_write):SOCIAL_AUTH_STRIPE_SCOPE = ['read_only']
Add the needed backend to
AUTHENTICATION_BACKENDS:AUTHENTICATION_BACKENDS = ( ... 'social_core.backends.stripe.StripeOAuth2', ... )
More info on Stripe OAuth2 at Integrating OAuth.