#xfechx
1 messages · Page 1 of 1 (latest)
Hi there
Hi bismarck
Do you have a link I can visit?
I was testing a few things last night and created that one. I can see the PDF but the hosted invoice does not work
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.
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
Ok, but I don't have to disconnect in live, right?
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
Yeah that is legacy and you should not use that key. You should just use the StripeAccount header: https://stripe.com/docs/connect/authentication
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(
Yep you just use your platform key
You shouldn't use the API key returned via OAuth
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?
I am asking for advice. Trying to modernize my stripe implementations
Just thought that was the correct way of doing it
You are already doing it the correct way
Ok perfect. Thanks
Which is to use your platform API key and pass the Stripe Account header