Answers for "This API call cannot be made with a publishable API key. Please use a secret API key. You can find a list of your API key at https://dashboard.stripe.com/account/apikeys."

0

This API call cannot be made with a publishable API key. Please use a secret API key. You can find a list of your API key at https://dashboard.stripe.com/account/apikeys.

use Stripe\Stripe;

Stripe::setApiKey(env('STRIPE_SECRET'));

.env file
STRIPE_KEY=
STRIPE_SECRET=
Posted by: Guest on August-10-2021

Code answers related to "This API call cannot be made with a publishable API key. Please use a secret API key. You can find a list of your API key at https://dashboard.stripe.com/account/apikeys."

Browse Popular Code Answers by Language