Cardknox
In this step you will create one External credentials, and create three 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 2 keys. Copy these to a separate document so you can reference them in a later step.
- An Ifields Key Key (you will use this key as is) 
- An API Key 

External Credentials
To create the first credential:
- Navigate to Setup > Named Credentials. 
- Click the External Credentials tab. 
- Click New. 
- Enter the following values: 
- Label and Name: cardknoxExternal 
- 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 
- Add New Authentication Parameter - Name: ifields 
- Value: your ifield API key 
 
- Add a second New Parameter - Name: key 
- value: your API 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: ‘cardknoxPaytram’. 
- URL field: https://gateway.paytram.io/ 
- Enabled for Callouts: true. 
- For the External Credential, select the ‘cardknoxExternal’ credential you previously created. 
- Select all Callout Options. 
- Allowed Namespaces for Callouts: ‘paytram’.  
 
- Click Save. 
Now create the second Named credential. 
- Click New and complete the following field values: 
- Label and Name: ‘cardknoxV2’. 
- URL field: https://api.cardknox.com/v2 
- Enabled for Callouts: true. 
- For the External Credential, select the ‘cardknoxExternal’ credential you previously created. 
- Select all Callout Options. 
- Allowed Namespaces for Callouts: ‘paytram’. 
  
- Click Save. 
Now create the third Named credential. 
- Click New and complete the following field values: 
- Label and Name: ‘cardknoxV1’. 
- URL field: https://x1.cardknox.com/ 
- Enabled for Callouts: true. 
- For the External Credential, select the ‘cardknoxExternal’ credential you previously created. 
- Select all Callout Options. 
- Allowed Namespaces for Callouts: ‘paytram’. 
  
- Click Save. 
Adjust Session Settings
Navigate to Setup > Session Settings and ensure the the 'Use Lightning Web Security for Lighning web components and Aura components' is checked. Click Save.
Permissions
Continue to set permissions
Last updated