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:

51 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. Aurora2643 Avatar
    Aurora2643
  2. Leon308 Avatar
    Leon308
  3. Alfred2360 Avatar
    Alfred2360
  4. Daniella2704 Avatar
    Daniella2704
  5. Richard2012 Avatar
    Richard2012
  6. Kelly2339 Avatar
    Kelly2339
  7. Beverly3706 Avatar
    Beverly3706
  8. Aaliyah746 Avatar
    Aaliyah746
  9. Lincoln1667 Avatar
    Lincoln1667
  10. Braxton4209 Avatar
    Braxton4209
  11. Andres1605 Avatar
    Andres1605
  12. Amelie1896 Avatar
    Amelie1896
  13. Gilbert1975 Avatar
    Gilbert1975
  14. Krystal1103 Avatar
    Krystal1103
  15. Sabrina2894 Avatar
    Sabrina2894
  16. Theodore4444 Avatar
    Theodore4444
  17. Flynn3893 Avatar
    Flynn3893
  18. Caroline1342 Avatar
    Caroline1342
  19. Timothy3205 Avatar
    Timothy3205
  20. Stanley3024 Avatar
    Stanley3024
  21. Bonnie2842 Avatar
    Bonnie2842
  22. 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.

  23. 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 *