Skip to content
oabdoun edited this page Dec 4, 2014 · 8 revisions

Binding identified user to CitrusPay user

Binding is a 3 steps process:

  1. get a subscription OAuth token for binding
  2. do the user binding
  3. get a OAuth token for user

Get a subscription OAuth token

This is a webservice call

  • protocol HTTPS
  • hostname admin.citruspay.com (live) or sandboxadmin.citruspay.com (integration)
  • method POST
  • path /oauth/token
  • Content-Type application/x-www-form-urlencoded
  • parameters
    • client_id your subscription oauth client id
    • client_secret your subscription oauth client secret
    • grant_type implicit

The OAuth subscription token is the access_token attribute of the returned JSON object.

Example

curl -H 'Content-Type=application/x-www-form-urlencoded' \
     -d 'client_id=citrus-test-subscription' \
     -d 'client_secret=824d9fdd75344ef24b3042d05e31a90d' \
     -d 'grant_type=implicit' \
     -X POST 'https://sandboxadmin.citruspay.com/oauth/token'

Response

Clone this wiki locally