Cardknox

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

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:

  1. Navigate to Setup > Named Credentials.

  2. Click the External Credentials tab.

  3. Click New.

  4. Enter the following values:

  5. Label and Name: cardknoxExternal

  6. Authentication Protocol: Custom

  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: keys

  2. Sequence Number: 1

  3. Add New Authentication Parameter

    1. Name: ifields

    2. Value: your ifield API key

  4. Add a second New Parameter

    1. Name: key

    2. value: your API key

  5. 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: ‘cardknoxPaytram’.

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

    3. Enabled for Callouts: true.

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

    5. Select all Callout Options.

    6. Allowed Namespaces for Callouts: ‘paytram’.

  2. Click Save.

Now create the second Named credential.

  1. Click New and complete the following field values:

    1. Label and Name: ‘cardknoxV2’.

    2. URL field: https://api.cardknox.com/v2

    3. Enabled for Callouts: true.

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

    5. Select all Callout Options.

    6. Allowed Namespaces for Callouts: ‘paytram’.

  2. Click Save.

Now create the third Named credential.

  1. Click New and complete the following field values:

    1. Label and Name: ‘cardknoxV1’.

    2. URL field: https://x1.cardknox.com/

    3. Enabled for Callouts: true.

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

    5. Select all Callout Options.

    6. Allowed Namespaces for Callouts: ‘paytram’.

  2. 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