#james-invoice
1 messages · Page 1 of 1 (latest)
hi! strange! does it happen if you refresh the page? You sometimes get that error if the tab has been open for a long time
afraid not! refreshing / closing and re opening do nothing
can you share the invoice ID in_xxxx?
in_1L3HlUH0ONA85CPU4HTMhxnA
hmm ok weird
I know why it's happening at least but it feels unexpected
basically your platform is connected to the connected account that invoice was created on, in live mode, but you create the invoice in test mode. So basically it's a weird permissions thing, in theory test mode access to an account is implied by live mode but maybe something is going wrong here
let me look into it with some colleagues now
okay yeah that makes sense! Thanks for looking into this for me
FWIW you can almost certainly fix this by going through https://stripe.com/docs/connect/oauth-standard-accounts using your test mode Connect client ID and having the account holder authorise it, that would set up a test mode connection that probably fixes this. But the question is more if this used to work or if you should have to do that at all really
Okay nice one thats good to know.
ok, thanks for bearing with me — we had a look and unfortunately this is a known issue we haven't had a chance to fix. It's what I mentioned above, having livemode access to the account but using test mode API keys. There is(or was, this is more of a legacy thing now) usually the concept that livemode access implies testmode access so most stuff just works but these hosted invoice page authentication systems are an exception
the fix is either
-
do your testing with a specific test mode connected account instead, use either https://stripe.com/docs/connect/standard-accounts with a test mode API key or https://stripe.com/docs/connect/oauth-standard-accounts with the test mode client_id to create a fully test mode account and do your invoices tests on that one
-
or if you have to use that same account, as above you would have to repeat the OAuth flow with the test mode client_id with the account holder to get a test mode connection established between you and their account
nothing I can say directly or any timelines but we bumped the feedback internally again
nice one, thanks!