#pluto-connect
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
as a platform you could any request on behalf of the Connected Accounts by using the Stripe Account header https://stripe.com/docs/api/connected_accounts
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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 };
};```
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?
yes. i initially thought it would appear on the checkout screen as a secondary text
the metadata is just to hold information for you, not customer facing unfortunately
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!