Stripe

In this step you will create two External credentials, and create two Named credentials.

Retrieve or create your API keys from the Gateway

You will need your publishable and secret keys from Stripe. You can find it on https://dashboard.stripe.com/developers in the API tab. Copy these to a separate document so you can reference them in a later step.

External Credentials

To create the credential:

  1. Navigate to Setup > Named Credentials.

  2. Click the External Credentials tab.

  3. Click New.

  4. Enter the following values:

  5. Label and Name: noauth

  6. Authentication Protocol: No Authentication

  7. Click Save.

  8. In the credential record, scroll down to locate the Principals section and click New to create a new Principal record.

Add the following values:

  1. Parameter name: noauth

  2. Sequence Number: 1

  3. Click Save

Create a second External credential

  1. Click New.

  2. Enter the following values:

  3. Label and Name: stripeExternal

  4. Authentication Protocol: Custom

  5. Click Save.

  6. In the credential record, scroll down to locate the Principals section and click New to create a new Principal record.

Add the following values:

  1. Parameter name: keys

  2. Sequence Number: 1

Under the Authentication Parameters section, Click Add to add a Parameter

  • Parameter name: publishableKey

  • Value: Your Publishable Key

Click Add again to add a 2nd Paramater

  • Parameter name: secretKey

  • Value: Your Secret Key

Click Save

Named Credentials

From Setup, navigate to Named Credentials.

In the Named Credentials tab:

  1. Click New and complete the following field values:

    1. Label and Name: ‘stripe’.

    2. URL field: https://api.stripe.com/v1/

    3. Enabled for Callouts: true.

    4. For the External Credential, select the ‘noauth’ credential you previously created.

    5. Select all Callout Options.

    6. Allowed Namespaces for Callouts: ‘paytram’.

  2. Click Save.

Add a Custom Header

  1. Click New

  2. Name= Authorization

  3. Value= Bearer {your secret key (same as above)}

  4. Sequence Number 1

  5. Click Save

Now create the second Named credential.

From the Named Credentials tab:

  1. Click New and complete the following fields:

    1. Label and Name: ‘stripePaytram’

    2. URL: https://gateway.paytram.io

    3. Enable for Callouts: true

    4. For the External Credential, select the ‘stripeExternal’ external credential you previously created.

    5. Select all Callout Options.

    6. Allowed Namespaces for Callouts: ‘paytram’.

Click Save.

Session Settings

Ensure that the the 2 highlighted fields in Session Settings are NOT CHECKED

Permissions

Continue to set permissions

Last updated