Hi RevenueCat Team / Community,
I am encountering a persistent account_invalid error while testing RevenueCat Web Billing with Stripe. It appears that RevenueCat is attempting to use a Production API Key to access a Stripe Sandbox Account, which results in the following error:
JSON
{
"error": {
"code": "account_invalid",
"message": "The provided key 'pk_live_******************' does not have access to account 'acct_1SZWXNDHtgf1OqUX'...",
"type": "invalid_request_error"
}
}
What I have already tried:
-
Stripe Side: Revoked/Deleted the RevenueCat app from my Stripe Production dashboard and re-connected it only to the Test Mode environment.
-
RevenueCat Side: Deleted the main Stripe account under
Account Settings -> Project -> Stripe. -
App Configuration: Verified that the "Web Billing" app provider in the RevenueCat dashboard is correctly linked to the Stripe Sandbox account.
-
Product IDs: Confirmed that all Product Identifiers match correctly between Stripe and RevenueCat.
Observation: Even though the configuration points to Sandbox, the error message clearly shows a pk_live key being used. It seems as though RevenueCat has cached the production credentials or is defaulting to the live environment despite the sandbox mapping.
My Environment:
-
Framework: Vue
-
Implementation: RevenueCat Web purchase links
Is there a specific way to force the backend to clear cached Stripe credentials, or is there a configuration step I might have missed to ensure only pk_test keys are used for sandbox apps?
Any insights would be greatly appreciated. Thanks!
