Skip to content
Damien edited this page Jun 5, 2016 · 1 revision
let stripe: Provider = .Stripe(
    clientID: "***",
    clientSecret: "***"
    redirectURL: "foo://callback"
)
Token
{
  "token_type": "bearer",
  "stripe_publishable_key": PUBLISHABLE_KEY,
  "scope": "read_write",
  "livemode": false,
  "stripe_user_id": USER_ID,
  "refresh_token": REFRESH_TOKEN,
  "access_token": ACCESS_TOKEN
}
Scopes

The options are read_write and read_only, with read_only being the default.

Authorization Request Parameters
https://connect.stripe.com/oauth/authorize?response_type=code&client_id=ca_32D88BD1qLklliziD7gYQvctJIhWBSQ7&scope=read_write
Token Request Parameters
curl https://connect.stripe.com/oauth/token \
   -d client_secret=sk_test_BQokikJOvBiI2HlWgH4olfQ2 \
   -d code=AUTHORIZATION_CODE \
   -d grant_type=authorization_code
Clone this wiki locally