#gulam-ali_api

1 messages · Page 1 of 1 (latest)

worldly tendonBOT
#

👋 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.

vague pendant
neon lake
#

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
    },
  });`
vague pendant
#

it's not paymentIntents.update, it's charge.update because a py_xxx object is a charge.

neon lake
#

Done, Thank you soo much. 🥳

#

it worked

vague pendant
#

great!