Setting up Third Party API accounts

Obtaining a Google Maps API key

  1. Login with Gmail account

  2. Create a new project

  3. On the page that appears, click on "API and authentication" > "API"

  4. Find and add the following APIs:

    1. Google Maps JavaScript API

    2. Google Places API Web Service

    3. Google Maps Geocoding API

    4. Google Maps Distance Matrix API

    5. YouTube Data API

  5. Click on the name of each API

  6. In the new page, click on "Activate API"

  7. Click on "Credentials" (nav bar on the left)

    1. Click on "Create credentials" > "API key" in the popin

    2. Click on the name of the API then in "Restrictions relating to applications"

    3. Select "HTTP Referrers (websites)

      1. Accept requests from these HTTP referrers (websites)

      2. Add the domain of your platform. Ex: *.second.com/* (do not forget the *)

      3. Copy the API key into

        second_geo_google_place_api_key
  8. Click on "Create identifiers" > "API key" > name it "Server key"

    1. Copy the API key into

      second_geo_google_place_server_api_key

Obtaining an OpenExchangeRates API key

  1. Click on App IDS menu

  2. Click on Generate New App ID

  3. Copy the key into

    SBO > Other > Features > Currency > OER app ID

Microsoft Azure Translator API * (Obsolete)

  1. Goto http://portal.azure.com with customer credentials

  2. Click sur Nouveau (+)

  3. Search Translator Text API

  4. Click on API Traducteur de texte

  5. Click on Create

  6. Click on Subscribe to a subscription

  7. Fill fields

  8. Check in the account tab if you are in the default directory (in the top right corner). Otherwise, click on the last button "Default Directory."

  9. Return to API Text Translator form

  10. Fill fields:

    1. Pricing level: F0

    2. Resource group: project name

    3. Click on dashboard > Translator api

    4. Click on "This free trial version expires in x days."

    5. Click on Opt for automatic conversion

    6. Click on Automatically convert your essay

    7. Click on Yes, I would like to perform the automatic conversion at the end of this trial

    8. Click on register

    9. Click on dashboard > Translator api > key

    10. Copy the key in this way:

      SBO > Other > Features > Translation > Cloud Translator DSN
      : 'msazure://thekey@default'

The Noun Project

  1. Create an app

  2. Generate the API key

  3. Copy the key into

    SBO > Other > Features > The Noun project > Key
    SBO > Other > Features > The Noun project > Secret

Pexels

  1. Create an app

  2. Generate the API key

  3. Copy the key into

    SBO > Other > Features > Pexels > Pexels API token

Stripe

  1. Follow the Stripe API keys guide

  2. Copy the keys into

    SBO > Other > Features > Stripe > API Public Key
    SBO > Other > Features > Stripe > API Secret Key

  3. Create default user accounts & bank account (On Stripe dashboard)

    1. Copy user account id

  4. Fill default user accounts id & bank account ids using following env variables:

# .env.local
STRIPE_DEFAULT_ASKER_ID="default asker id existing on Stripe dashboard account"
STRIPE_DEFAULT_OFFERER_ID="default offerer id existing on Stripe dashboard account"
STRIPE_DEFAULT_BANK_ID="default bank account id existing on Stripe dashboard account"

The following third api accounts are optional.

Mangopay

Create the Mangopay production account (https://hub.mangopay.com/user-registration ):

Choose :

  • Platform Type = Market place

  • Activate Pre-Authorisation

You will need the the "ClientId" and the "Passphrase" received after the creation of this account.

Authorize the use of the pre-authorization in production (https://docs.mangopay.com/api-references/card/pre-authorization/): Warning: by default, MANGOPAY sets a limit of 2500€ per transaction. If you wish to increase this limit, it is necessary to notify them at the creation of your account or later.

Contact [email protected] and ask them to authorize the use of the "PreAuthorization" object in production for the customer's Mangopay production account.

Copy the key into:

cocorico_mangopay.client_id
cocorico_mangopay.client_password

Facebook SSO

Go to https://developers.facebook.com/docs/apps/register)

The procedure for production is the same except that you have to start with step 2.

  1. Go to the “My applications” menu > XXX Projects

  2. Open the “XXX Projects” menu (top left)

  3. Click on "Create a test application" (for development or testing) or "Create an application" (for production).

  4. Enter the username:

    1. XXX--dev (dev version)

    2. XXX--Staging (test version)

    3. [XXX]-Prod (production version)

  5. Enter a contact email address.

  6. On the Dashboard go further down the page to “Add a product”

  7. Click on “Facebook Login” > “Start”

  8. Click on “Settings” in the left menu under “Facebook Login”

  9. Set the "Valid OAuth redirection URLs" depending on the environment and for each locale

    1. https://xxx.io/en/oauth/fb-login(DO NOT PUT FROM/AT THE END OF THE URL)

    2. https://xxx.io/fr/oauth/fb-login(DO NOT PUT FROM/AT THE END OF THE URL)

  10. Click on '"Save Changes"

  11. Go to 'Settings' at the top of the left menu, then "General."

  12. Click on "'Add a Platform" > Website.

  13. Enter "Site URL" (at the bottom): https://[domain]

  14. Click on "Save Changes."

  15. Enter the "App Domain:"

  16. Click on "Save Changes."

  17. Retrieve the values from the "App ID" and "App Secret" fields and copy them into:"

    SBO > Other > Features > Third Apps > Facebook app ID
    SBO > Other > Features > Third Apps > Facebook app secret
  18. "Click on the menu in the top right on the "Disabled" switch to enable public sharing.

  19. Go to the 'Roles' section in the left menu > 'Roles.'"

SMS OVH

If the SMS bundle is activated, create an SMS account with OVH Telecom:

Here is the OVH SMS API doc:

Google Tag Manager

  1. Log in to Google Tag Manager with the created Gmail account https://www.google.fr/tagmanager/

  2. Create an account for the project

  3. Define configuration container

    1. enter the domain

    2. select "web"

  4. Go back to the account level

  5. Save the content ID that was created (GTM-XXXXXX)

  6. Publish the account (click on publish)

  7. Copy the key into

    SBO > Other > Features > Platform Configuration > Google Tag Manager ID

Last updated

Was this helpful?