#mkoenke_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1288218276689612942
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
the PaymentMethod you've shared seems to be associated with acct_1Q2XRmRxasZGr5jV
The title of the account says sandbox ๐ค
ohhh oops
Are you making connect requests? Like is there a Stripe-Account header set in your code?
Having no logs is quite interesting
hmmm
i do not see logs either
I think maybe i need to add the connected account # instead of the sandbox account number
Depending on the connect payment flow you're trying to integrate, you'd need to store the payment method on the plaform or the connected account.
typically we store it on the connected account
can you check platform account logs to see if you're seeing the API error log there?
i just checked our prod dashboard, and we actually do not store it on the connected account, all payments are associated with the platform account
sure
sorry i was right the first time, we are storing it on the connected account, its just the one i checked initially had no payments - we only store payments made by our connected accounts to us on the platform account
i found the request id: req_EnL7glSVJOORoT
its getting associated to the test environment for some reason and not the sandbox
It looks like your code is using different API keys in places. Like the request that failed came from ruby SDK
Ruby SDK and acct_0OH0UmS57H7yUMPyJq9o account
which is different from your sandbox account
that account number is for the account the Ruby SDK is using to make requests?
correct
where does the SDK get that account number from?
Based on the API key being used in your code
oh i see, so its not explicitly set - its set through the API key
the log with the request ID i sent you is saying its unable to find the payment method with that id - is that payment method created on the sandbox account?
yes
phew ok i got it working on the sanbox, thanks so much