#gulam-ali_api
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1268119243598331966
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
hi, see https://support.stripe.com/questions/how-can-you-carry-over-the-description-or-metadata-to-the-payment-on-the-connected-account-for-a-destination-charge (it's for description but the same applies to updating metadata)
if possible can you please provide the code snippet how to do that, i have tried updating using payment intent & charge but i get the error StripeInvalidRequestError: No such payment_intent: 'py_1PiXHqRs3vhYm6B5DGpxVqcH'
here **py_1PiXHqRs3vhYm6B5DGpxVqcH ** is my destination_payment
below is the sample code
`await stripe.paymentIntents.update("py_1PiXHqRs3vhYm6B5DGpxVqcH", {
metadata: {
ride_id: "test-test", // Add or update your metadata key-value pairs
},
});`
it's not paymentIntents.update, it's charge.update because a py_xxx object is a charge.
you also need to use the Stripe-Account header because you're updating an object on a connected account. https://docs.stripe.com/connect/authentication
great!