#rarcif

1 messages · Page 1 of 1 (latest)

austere hillBOT
candid crescent
#

Hello

delicate arrow
#

Hi

candid crescent
#

You pass that as part of the options for the request

delicate arrow
#

ok so for example

const upload = await stripe.files.create({
file: {
data: fp,
name: 'file.jpg',
type: 'application/octet-stream',
},
{ stripeAccount: stripeAccountId },
purpose: 'dispute_evidence',
});

#

I'll be back in 3 min

candid crescent
#

Should just be const upload = await stripe.files.create({ file: { data: fp, name: 'file.jpg', type: 'application/octet-stream', }, purpose: 'dispute_evidence', stripeAccount: stripeAccountId }); for that

delicate arrow
#

ok sounds good. Imma test this out

candid crescent
#

Sorry moving too quickly

#

It is const upload = await stripe.files.create({ file: { data: fp, name: 'file.jpg', type: 'application/octet-stream', }, purpose: 'dispute_evidence',}, { stripeAccount: stripeAccountId });

delicate arrow
#

yeah that would have been my understanding as well. So the two objects are separated.

candid crescent
#

Yeah, the initial is the param arguments object and the second object is your options object

delicate arrow
#

allrigthy, and where do I find the document after upload? I mean where exactly in the stripe connect profile of the user?

#

I guess in the API logs

candid crescent
#

Yeah not sure exactly what you mean