create_customer - repeated Stripe API errors in CiviCRM log
We are seeing persistent log messages in the CiviCRM ConfigAndLog that look like this:
2024-02-08 22:11:49-0800 [error] Stripe(5): create_customer (unknown error): Stripe\Exception\PermissionException: This API call cannot be made with a publishable API key. Plea
se use a secret API key. You can find a list of your API keys at https://dashboard.stripe.com/account/apikeys.
2024-02-08 22:11:49-0800 [error] Failed to create Stripe Customer: An error occurred; Array
(
[code] => 9000
[message] => An error occurred
)
In the Stripe dashboard I see a lot of these error messages:
These occur every time there is a payment made.
We have checked our API keys and they are correct. Also, the payment does get recorded in both Stripe and Civi correctly.
- Civi 5.68.1
- CiviCRM Stripe 6.10.2
- Stripe API version 2023-08-16