#xfechx

1 messages · Page 1 of 1 (latest)

rose spindleBOT
main kestrel
#

Hi there

real plume
#

Hi bismarck

main kestrel
#

Do you have a link I can visit?

real plume
#

I was testing a few things last night and created that one. I can see the PDF but the hosted invoice does not work

main kestrel
#

Let me take a look

#

Okay so looks like this is a known issue

#

Basically it happens when you have a Connected Account that is only connected in live mode but you are creating a test mode Invoice on that account.

real plume
#

Hmm and how do I resolve it?

#

Do I also need to connect in test mode?

main kestrel
#

So you can either connect that account in test mode via OAuth

#

Yep that is probably the easiest way

#

Or you should just create a new Standard Connected Account in test mode to test with

real plume
#

Ok, but I don't have to disconnect in live, right?

main kestrel
#

Nope

#

Just run through OAuth with your test keys and that should do it

real plume
#

Ok

#

Another question. When connecting an account, the Oauth generates a sk_live key only for that connection, correct?

#

I dont have to use the sk_live from the platform

main kestrel
real plume
#

I use the stripe account header on each function call, but my question specifically is about saving the platform sk_ keys... or rather just use the sk provided by the oauth connection. Not sure if I explain myself (or probably I still dont understand fully(

main kestrel
#

Yep you just use your platform key

#

You shouldn't use the API key returned via OAuth

real plume
#

Why is this? And what about for example on an app where I dont want to store my platform sk keys? Or design wise what is the way to do it?

main kestrel
#

Why is what?

#

Why do you see keys returned from OAuth?

real plume
#

I am asking for advice. Trying to modernize my stripe implementations

#

Just thought that was the correct way of doing it

main kestrel
#

You are already doing it the correct way

real plume
#

Ok perfect. Thanks

main kestrel
#

Which is to use your platform API key and pass the Stripe Account header