#yen6305
1 messages · Page 1 of 1 (latest)
Hi there
You can only update metadata via a server-side request as metadata is considered sensitive data.
So you have the write link with regards to how to perform that update.
It is totally fine (good) practice to updata/set metadata
Okay, so is it okay do something like this on the server?:
// Update the PaymentIntent metadata
const updatedPaymentIntent = await stripe.paymentIntents.update(paymentIntent.id, {
metadata: { ...paymentIntent.metadata, ...metadata },
});