Stripe
In this step you will create two External credentials, and create two Named credentials.
Important: When creating your credentials, use the exact spelling and capitalization indicated and follow the credential creation and Flow run in order.
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:
Navigate to Setup > Named Credentials.
Click the External Credentials tab.
Click New.
Enter the following values:
Label and Name: noauth
Authentication Protocol: No Authentication
Click Save.
In the credential record, scroll down to locate the Principals section and click New to create a new Principal record.

Add the following values:
Parameter name: noauth
Sequence Number: 1
Click Save
Create a second External credential
Click New.
Enter the following values:
Label and Name: stripeExternal
Authentication Protocol: Custom
Click Save.
In the credential record, scroll down to locate the Principals section and click New to create a new Principal record.

Add the following values:
Parameter name: keys
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:
Click New and complete the following field values:
Label and Name: ‘stripe’.
URL field: https://api.stripe.com/v1/
Enabled for Callouts: true.
For the External Credential, select the ‘noauth’ credential you previously created.
Select all Callout Options.
Allowed Namespaces for Callouts: ‘paytram’.

Click Save.
Add a Custom Header
Click New
Name= Authorization
Value= Bearer {your secret key (same as above)}
Sequence Number 1
Click Save
Now create the second Named credential.
From the Named Credentials tab:
Click New and complete the following fields:
Label and Name: ‘stripePaytram’
URL: https://gateway.paytram.io
Enable for Callouts: true
For the External Credential, select the ‘stripeExternal’ external credential you previously created.
Select all Callout Options.
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