#epuuc

1 messages · Page 1 of 1 (latest)

half mapleBOT
cinder flame
lavish fulcrum
#

Sorry, I don't have access to the backend, or the dashboard, was just wondering if the pk_test_xxx key is used anywhere else in any requests to you guys, or code besides in the StripeProvider in React Native's code.

#

Just on a time crunch to fix this issue before tomorrow

cinder flame
#

Okay but I have no information on who you are

#

So I would need account IDs or something to even begin to look into this

lavish fulcrum
#

I have an account ID

#

from the last time I chatted with Stripe

#

acct_1NSTtmCrjytTLB5p

cinder flame
#

Okay I'm seeing some requests using the Test API keys to create Payment Intents

#

And create Payment Methods using our iOS SDK

lavish fulcrum
#

yes, but in code we're definitely using the live keys

#

wait

#

creating the payment intents is from the backend, correct?

cinder flame
#

I am telling you I am seeing Test mode requests both client-side and back-end

#

that were made today

lavish fulcrum
#

really?

cinder flame
#

Yes

lavish fulcrum
#

we're trying everything here, lemme send something and tell me if anything is wrong

#

we had that saved in an external file but it was still saying the test key was being used

cinder flame
#

Okay but that's the publishable key

#

So that only addresses the client-side

#

And the requests I saw are from the iOS SDK so that would be in an iOS app

lavish fulcrum
#

that's the only place a key is being used, besides the client_secret which is passed from the backend

cinder flame
#

pk_ can only be used client-side

#

It isn't a back-end key

lavish fulcrum
cinder flame
#

I'm looking at the API key used in a request on your account and it is using sk_test_

lavish fulcrum
#

the secret key is being used then

#

which is on the back end

#

and I'm guessing that creates a test payment intent, and the client_secret is sent to the app to be used?

cinder flame
#

Yup

lavish fulcrum
#

so that's why it's coming up as both client-side and backend?

cinder flame
#

All the same objects as Live mode but in Test

#

No, you are using a test API key client-side as well

#

Those are two separate keys

lavish fulcrum
#

the pk_test key?

cinder flame
#

Yup

lavish fulcrum
#

really? we have it practically hard coded in as using the live key

lavish fulcrum
cinder flame
#

But it's on the client side. Is it possible there is an installed iOS app somewhere that was not updated?

lavish fulcrum
#

hmm, we've always had it use the live key, or at least a ternary to determine if it's a simulator or not

cinder flame
#

Well all I can tell you is that you have client-side requests using an iOS SDK and the test key

lavish fulcrum
#

has the sk_live key ever been used?

cinder flame
#

Really I can't keep helping you like this. All of this information is available in your account logs

agile zealot
#

We just figured out the issue behind it, some old code for testing we forgot to delete lol. Thanks @cinder flame for the time.