#hitarth_97327

1 messages · Page 1 of 1 (latest)

twilit martenBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

harsh tundra
#

hi there!

barren creek
harsh tundra
#

what are you trying to udpate exactly?

barren creek
harsh tundra
#

if the invoice is finalized, you can no longer update it

#

you can only update information about an invoice if it's in Draft

barren creek
#

here is my code
customer = await stripe.customers.update(updatedCustomer,{
email: customerCreateOptionsMerged.email,
})
// }

const paymentIntent = await stripe.paymentIntents.update(updatedInvoice,{

receipt_email: "test@gmail.com",
    metadata: metadata

})

harsh tundra
#

can you give me more context? for example:

  1. the PaymentIntent was generated by an Invoice?
  2. does your code works or returns an error?
barren creek
#

pi_3OZBUjFpbAyYhOzg1j60pfyX
no not getting any single error

harsh tundra
#

you only answered half my questions, and haven't told me exactly what is the issue

barren creek
#

I want to update the email

harsh tundra
#

so what's the issue? the email is updated.

barren creek
#

No I sent you screen grab I want to update for the customer please check the screen grab

harsh tundra
#

where is this screenshot from exactly?

#

if you retrieve the PaymentIntent pi_3OZBUjFpbAyYhOzg1j60pfyX with the API, you will see the new email set

barren creek
#

I am checking in the payments page in which there is a list which shows all payments list. In that list I want to update the column for customer email.