#badr_api

1 messages ¡ Page 1 of 1 (latest)

abstract helmBOT
#

👋 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/1240973407751770122

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

grave spoke
#

hi! what sort of payments are they , Direct or Destination?

stone slate
#

not sure what do you mean with the destination really ?
we are platform that organisation register under it, they connect their stripe account to our main account and they start getting payments through our platform .. so their account is conencted to us .
probably this is what it called Destination..

#

var chargeService = new ChargeService();

  StripeList<Charge> x =  await chargeService.ListAsync(
      new ChargeListOptions
    {
        Created = new DateRangeOptions { GreaterThanOrEqual = startDate, LessThanOrEqual = endDate, },
    }, new RequestOptions { ApiKey = _stripeOptions.StripeSecretKey });

This is the code I have atm .

grave spoke
stone slate
#

Ok it's Destination charges then

grave spoke
#

are you sure? because we have internal tools and when I look at your account and your API calls, you are using Direct

#

it's important you understand this since it's fundamental to your questions, as it controls which accounts the objects that you're trying to list will live on.

stone slate
#

do you mean the api call I did is using direct or our account with the customer relation are direct charge ?

grave spoke
#

both?

#

sorry I don't really understand what that question meant

#

anyway, because you use Direct Charges, the objects live on the connected account

#

your RequestOptions should be passing your platform's API key, and StripeAccount= the ID of the specific account who's payments you're looking for

stone slate
#

got it now, is there a way to get all the connected account in a list ?

grave spoke