Forum Academy Marketplace Showcase Pricing Features

Stripe error: Invalid API

Hi team,
I have a fairly standard (but not so standard), Stripe error: Invalid API provided: BearerSk****XYZ.
This happens when the user clicks the check-out ‘Buy-now’ button to proceed the transaction using Stripe.

This issue persists even when:

  1. Triple checking secret key, public key and client ID- these are absolutely correct
  2. There are no added spaces before or after the keys, only one between Bearer and sk…
  3. I’m using the bubble.io Stripe API plugin > Charge the customer
  4. I receive no stripe logs, only bubble.io stating the same error on screenshot
  5. After many searches and forum checks with no luck. I’ve noticed some threads speaking of payee can be the issue - but no references as to why/ fix

Any and all suggestions would be greatly appreciated!

There should be a space between ‘Bearer’ and your secret key…

e.g.:

Bearer sk_live*************************************

Thanks Adam, I can confirm that this space is there… see attached.

Ah… you’re using a plugin… (I wrongly assumed you were making your own API call…)

In that case, you shouldn’t include ‘Bearer’ at all…

Just enter the actual key i.e. sk_live*************************************************** etc.

Yet another rookie error of mine! much thanks Adam for your help here…

This is interesting though, because is this only for the Bubble.io Stripe Plugin - as other stripe plugins do need this e.g. Zeroqode Marketplace stripe plugin?

1 Like

This is interesting though, because is this only for the Bubble.io Stripe Plugin - as other stripe plugins do need this e.g. Zeroqode Marketplace stripe plugin?

I’ve no idea (I don’t generally use plugins for Stripe), but I’m sure every plugin maker does things differently, so you’d have to check the docs for each plugin individually…