forcedotcom / b2b-commerce-on-lightning-quickstart

Creative Commons Zero v1.0 Universal
175 stars 207 forks source link

I'm getting error in stripe integration #85

Open nayakdillip opened 1 year ago

nayakdillip commented 1 year ago

invalid_request_error Sending credit card numbers directly to the Stripe API is generally unsafe. We suggest you use test tokens that map to the test card you are using, see https://stripe.com/docs/testing. To enable raw card data APIs in test mode,

image

If I'm passing test token then the error I'm getting

secret_key_required Looks like you forgot to include an API key in your request.

You can find a list of your configured keys on the API

image
nayakdillip commented 11 months ago

here the solution

https://www.fullstacknote.com/salesforce-b2b-commerce-stripe-integration-issue-this-api-call-cannot-be-made-with-a-publishable-api-key-please-use-a-secret-api-key/