#wentaozhou

1 messages · Page 1 of 1 (latest)

celest folioBOT
visual creek
#

Hello! What request/code is given you that error?

regal spoke
#

I'm not sure. The error does not tell me which function it's calling. and it does not happen every time when I going through the same process. it's just that sometimes it shows up, and sometimes it does not. I'm using stripe api in multiple places in the backend so hard to tell. sorry.

visual creek
#

Are you working with connect accounts at all?

regal spoke
#

yea I have a stripe account

visual creek
#

Sorry let me clarify - are you working with Connect (so do you create additional connected accounts that connect to your platform?

regal spoke
#

yea I do

visual creek
#

That's probably the issue - for accounts created in livemode, there are some requests that can only be done in live mode. I think requests like adding an external account can only be done in live mode for real connect accounts

regal spoke
#

oh thanks. so do I resolve the error by removing the connected account?

visual creek
#

Well it depends on what you're trying to do - is this code meant to only be used in test mode? Or is this the same code you use in live mode?

regal spoke
#

yes it's the same code

visual creek
#

Gotcha - and do you have any protections to make sure that you're only calling things in livemode for livemode accounts and testmode for test mode accounts?

regal spoke
#

I don't believe so. maybe I should add that?

visual creek
#

Yeah, I'd definitely recommend that as a starting point

regal spoke
#

can you share me docs to reference?

visual creek
#

There isn't really a doc for this - it has more to do with how your app is structured.

#

How does your code currently determine whether to use live or test mode?