#pluto-connect

1 messages ยท Page 1 of 1 (latest)

late osprey
#

๐Ÿ‘‹ happy to help

fervent spire
# late osprey as a platform you could any request on behalf of the Connected Accounts by using...

so should this work

const createProductObject = async(product) => {
    console.log(product.product_name);
    const newProduct = await stripe.products.create({
        name: product.product_name,
        id: product.id,
        // add images
        metadata: { artist: product.artist.artist_name },
        url: process.env.CLIENT + "/product/" + product.id,
    }, {
        stripeAccount: `${artist_stripe_account_id}`
    });
    const price = await createPriceObject(product);
    return {...newProduct, price };
};```
late osprey
#

metadata: { artist: product.artist.artist_name }, isn't that a bit redundant though?

#

if I understood your code correctly the artist is the Connect Account holder right?

fervent spire
late osprey
#

the metadata is just to hold information for you, not customer facing unfortunately

plush raptor
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!