#ben_api

1 messages ยท Page 1 of 1 (latest)

cloud lagoonBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

blazing reef
#

the code got cut off a bit:
const stripeCheckoutSessionOptions = {
line_items: stripeCheckoutLineItems,
client_reference_id: uniqueReferenceId,
mode: 'payment',
billing_address_collection: 'required',
phone_number_collection: {
enabled: true
},
payment_intent_data: {
application_fee_amount: 100,
transfer_group: event.stripeTicketTransferGroupName
},
consent_collection:{
/promotions: 'auto',/
terms_of_service: 'required'
},
/return_url: 'https://example.com/success?session_id={CHECKOUT_SESSION_ID}',/
success_url: 'https://example.com/success?session_id={CHECKOUT_SESSION_ID}',
};

const checkoutSession = await stripe.checkout.sessions.create(stripeCheckoutSessionOptions,{
stripeAccount: 'acct_1QS3YeRWFGzA0ibU',
});

This is all in a sandbox

shut warrenBOT
fathom wedge
#

Hi there ๐Ÿ‘‹ it looks like you're working with Express Connected Accounts, so I'm not sure this is going to work. Let me dig a bit.

#

I'm not readily spotting where you as the Platform, or the owner of the Express Connected Account itself, can provide a url for terms of service for this.

Do you have a test account where you can change the terms of service URL for your account via the Stripe dashboard, and then share that account ID with me so I can try to take a closer look at what field changed and whether you can update that via the API? Though with Express Connected Accounts I'm pretty sure you lose the ability to provide information for the Connected Account once you send them to an Account Link to onboard.

blazing reef
#

That's the odd thing, event though the connected account dashboard (express and standard). I can't find a place to set the terms of service URL

#

Here's a test connected account acct_1QS3YeRWFGzA0ibU

fathom wedge
#

I wasn't able to find it in the Express dashboard either. My understanding for Standard Connected Accounts or your Platform Account is that the field is available on the dashboard settings page provided in the error message you were encountering:
https://dashboard.stripe.com/settings/public

blazing reef
#

Here's a standard connected account acct_1QS4g3DBvhlTtiVI

fathom wedge
#

But my teammates and I in this forum aren't as familiar with the dashboard side of these flows.

blazing reef
#

that's were I'm stuck too ๐Ÿ˜ฆ

fathom wedge
blazing reef
#

can yo utake a screenshot? when I go to that, it just keeps kicking me the sandbox

fathom wedge
#

No I can't

blazing reef
#

this is what I see

fathom wedge
#

Are you using the "view dashboard as [Connected Account]" feature to get there?

#

If so I'm pretty sure that's expected, and that you would need to log into the account directly.

blazing reef
#

view dashboard as feature

#

no way to set these values via an API?

fathom wedge
#

That's what I'm trying to figure out, but I wasn't readily spotting a field for the value. So I was hoping you'd be able to update the field for one of your accounts via the dashboard so we can try to map how that update is made and see if it uses a field that is exposed in the API.

blazing reef
#

i'm going to look on my sandbox; I'm going to assume it's the same account object

#

not on the account object at all ๐Ÿ˜ฆ

fathom wedge
#

Yeah, I just went through all the available fields again and also didn't see it.

blazing reef
#

i see it on the billing portal; but doesn't seem to translate to the company profile

fathom wedge
#

I'd suggest reaching out to our Support team to see if there is a way for the owners of your Express Accounts to set it for their Connected Account via the Express Dashboard:
https://support.stripe.com/?contact=true
Then if you encounter that error you can direct the account owners to that page to update the information, if that's a viable path.

blazing reef
#

on the stripe.checkout.sessions.create; if I use on_behalf_of; is that the same as a "direct charge"?

fathom wedge
blazing reef
#

who would be responbile for refunds/disputes in that case?

fathom wedge