Forum Academy Marketplace Showcase Pricing Features

API Connector Authorization Headers for Live and Test Keys

Hello.

I created a custom API call from Stripe using Bubble’s API Connector.

I’ve added two shared headers called “Authorization” and I’ve added the Bearer secret keys for both the test and live versions. So;

Authorization: Bearer sk_test_
Authorization: Bearer sk_live_

In run mode, the test key works in test mode, but the live key does not work in live mode.

What am I doing wrong?

Note: When I remove the header for the test key, the live key works in live mode. However, I’m wondering if there is a way I can just have both at the same time.

Thank you

Did you ever find a workaround for this or did you have to build out if version is live splits?

Hello.

I cannot remember to fix, but I think what I ended up having to do was remember to swap the keys whenever I wanted to use the test version or the live version. I think the issue for me was that it wouldnt read both for some reason.