Salesforce B2B Commerce Stripe Integration Issue: This API call cannot be made with a publishable API key. Please use a secret API key.

Integrating Salesforce B2B Commerce with Stripe can streamline your online payment processes and enhance the overall shopping experience for your customers.

Set Up a Stripe Account:

  • If you don’t have a Stripe account, sign up for one at Stripe’s website.
  • Obtain your API keys from the Stripe Dashboard. You’ll need the Publishable Key and Secret Key.

In Salesforce, a Named Credential is typically used to store authentication information for external services or APIs. However, if you’re integrating with a service like Stripe that doesn’t require explicit authentication via a username and password, you can still use a Named Credential without providing authentication details.

Here’s how you can create a Named Credential for Stripe without authentication:

  1. Create a Named Credential:
    • Go to Setup in Salesforce.
    • Enter “Named Credentials” in the Quick Find box and select “Named Credentials.”
  2. Create a New Named Credential:
    • Click on “New Named Credential.”
    • Enter a Label for the Named Credential (e.g., “Stripe”).
    • Enter the URL for the Stripe API endpoint you want to connect to (e.g., “https://api.stripe.com“).
    • Leave the “Authentication Protocol” as “No Authentication.”
  3. Save the Named Credential:
    • Click “Save.”

please check out this video for more:

2 responses to “Salesforce B2B Commerce Stripe Integration Issue: This API call cannot be made with a publishable API key. Please use a secret API key.”

  1. Heathert Avatar

    Great job on this piece! It was very informative and engaging. I’m eager to hear different perspectives on this. Click on my nickname for more engaging content.

  2. Monicat Avatar
    Monicat

    Excellent content! The way you explained the topic is impressive.

Leave a Reply

Your email address will not be published. Required fields are marked *