#ednonstop-stripe-account-header
1 messages · Page 1 of 1 (latest)
Hi there!
Have you taken a look at https://stripe.com/docs/connect/authentication already?
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
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
req.body.paymentId,
{ metadata: { order_id: req.body.orderId }, description: req.body.description },
{stripeAccount: 'acct_123'}
);```
super, thanks
(edited, missed a bracket)