#mkoenke_api

1 messages ยท Page 1 of 1 (latest)

cerulean spindleBOT
#

๐Ÿ‘‹ 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.

clever shale
#

Hello
the PaymentMethod you've shared seems to be associated with acct_1Q2XRmRxasZGr5jV

#

The title of the account says sandbox ๐Ÿค”

lucid zinc
#

ohhh oops

clever shale
#

Are you making connect requests? Like is there a Stripe-Account header set in your code?

Having no logs is quite interesting

lucid zinc
#

hmmm

#

i do not see logs either

#

I think maybe i need to add the connected account # instead of the sandbox account number

clever shale
#

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.

lucid zinc
#

typically we store it on the connected account

clever shale
#

can you check platform account logs to see if you're seeing the API error log there?

lucid zinc
#

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

clever shale
#

It looks like your code is using different API keys in places. Like the request that failed came from ruby SDK

lucid zinc
#

interesting

#

let me dig around

clever shale
#

Ruby SDK and acct_0OH0UmS57H7yUMPyJq9o account

#

which is different from your sandbox account

lucid zinc
#

that account number is for the account the Ruby SDK is using to make requests?

clever shale
#

correct

lucid zinc
#

where does the SDK get that account number from?

clever shale
#

Based on the API key being used in your code

lucid zinc
#

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?

clever shale
#

yes

lucid zinc
#

phew ok i got it working on the sanbox, thanks so much