#ednonstop-stripe-account-header

1 messages · Page 1 of 1 (latest)

eternal lake
#

Hi there!

#

That has an example of how you would pass the header when creating a customer

#

The same idea holds true for updating a charge on a Connected Account

grizzled meteor
#

const charge = await stripe.charges.update(
req.body.paymentId,
{ metadata: { order_id: req.body.orderId }, description: req.body.description }
);

#

okay this is how it now

eternal lake
#
            req.body.paymentId,
            { metadata: { order_id: req.body.orderId }, description: req.body.description },
            {stripeAccount: 'acct_123'}
        );```
grizzled meteor
#

super, thanks

eternal lake
#

(edited, missed a bracket)