#alexis-api-key
1 messages · Page 1 of 1 (latest)
Hello! Can you clarify what you mean by "generate an API key"? What exactly are you doing/which steps
I am going to API Keys > Create Secret Key
and naming the new key
but no public key shows only a secret
Why are you creating an API key? There's no need to create one, you would already have one. And same for the Publishable API key you already have one, all accounts do
i was told by support that if i am creating multiple payment gateways i need separate API keys
What does "creating multiple payment gateways" mean? I worry you're maybe using the wrong vocabulary. There's no "payment gateway" on Stripe, you just use Stripe and you only need one pair of API keys
I am using stripe as a payment gateway for regfox
we have one exisiting payment gateway that is used to track a specific payment type in reg fox
we want to create another payment gateway that is using strip but with a different naming so that it can track alternative types of payments
You need a separate Stripe account in that case
so you only get 1 api key set per stripe account?
its letting me generate an additional secret
so thats why im confused?
You can create a new Secret key, but it won't do what you are after so you can't use that option
If you want to separate revenue, you either need separate Stripe accounts or you need to use something like metadata in your code to tag each payment. But you are using a plugin and you're not the developer yourself so you can't control this, so you'll have to use separate Stripe accounts
sure thing!
just to understand correctly though the first 2 keys public and secret are used together in tandem for only one payment gateway and a separate strip account can only be used to have another API
Kind of. Sorry the way you're framing the question is really unclear
also whats the purpose of being able to generate more secret keys?
Not your fault, our product can be complex, but like at the end of the day if you want payment A B and C to be about business 123 and payment X Y and Z to be about business 987 then you need separate accounts
it's not really relevant to your situation/use-case so you can just ignore this feature about new secret keys
ok I udnerstand
jsut to also make sure im explaining this clearly though
its all the same company
its not seaprate companies, its just that reg fox runs events so we want to be able to use aeparate payment gateways for seaprate events
named in a way that specifies the event
yes but that's not possible.
API Keys will not change anything. Either you use separate accounts, or you need another way to differentiate the transactions, but that requires custom code. Maybe the plugin you use supports this but you'd need to ask them in that case
so can I use the same API keys for instance with 2 payment gateways?
yes
ok so then that would be my solution correct use the same publish and secret key for the secondary payment gateway?
Hello! I'm taking over and catching up...
Just to make sure I understand, what are the two payment gateways in question?
You said one was something called regfox I believe?
What's the other?
ill send you a screenshot
You can use your API keys with two different sites/instances of a third-party system, but doing so may make it difficult to tell the activity on one instance apart from activity on the other.
This is the payment gateways we currently have setup which 2 already exist
whats confusing to me is I see 2 different API keys here (2 different sets of publish and secret keys for each)
but i only see one of them in the API keys on the stripe end
so what you are saying is that basically if there are two separate publish and secret keys for each of these payment gateways in regfox this is because theres separate strip accounts
It's either two separate Stripe accounts, or one set of keys is from live mode and one set is from test mode.
The live keys will start with sk_live and pk_live and the test ones will start with sk_test and pk_test
ill check
they are both lice
so your saying they are separate strip accounts
live*
Yes, most likely.
It's possible the keys belong to the same account if you rolled a previous key and replaced it with a new one.
understood but essentially rolling the key makes it in active so theres no way for both to be active simultanelously