Skip to main content
Question

Web Billing Error: RevenueCat using Production Key (pk_live) for Stripe Sandbox Account

  • February 8, 2026
  • 1 reply
  • 45 views

Forum|alt.badge.img+2

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:

  1. Stripe Side: Revoked/Deleted the RevenueCat app from my Stripe Production dashboard and re-connected it only to the Test Mode environment.

  2. RevenueCat Side: Deleted the main Stripe account under Account Settings -> Project -> Stripe.

  3. App Configuration: Verified that the "Web Billing" app provider in the RevenueCat dashboard is correctly linked to the Stripe Sandbox account.

  4. 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!

This post has been closed for comments

1 reply

matt-heaney
RevenueCat Staff
Forum|alt.badge.img+3
  • RevenueCat Staff
  • February 11, 2026

Hey ​@xing-fu-7a3933!

Matt from RevenueCat here.

I’ve taken a look at your account and your logs, but I need some extra information to dig into this further. As this information relates to your API keys to make sure everything is set up properly, we can’t discuss it here in public.

While logged into your RevenueCat account, please go to revenuecat.com/support, link this post, and submit a support request. Once that’s done, drop me a message here and I’ll reply to you there.

Thanks,
Matt