#devangbhuva97-Payment

1 messages · Page 1 of 1 (latest)

shrewd garnet
static cave
shrewd garnet
#

Hi, I am afraid there is no direct way to do this. But I think you can listen to the webhook event invoice.created, then find the PaymentIntent and try updating its description from there

#

by PaymentIntent Update API

static cave
#

Looks this is very long for us

shrewd garnet
#

Sorry for the inconvenience...

static cave
#

Thanks @shrewd garnet for suggesting alternative way

#

Instead of listening webhook, we can immediate after invoice creation. Right?

shrewd garnet
#

Ah yeah!

#

Sorry, that would work too!

#

hmm let me see

#

After creating an Invoice, and finalizing it (it will have Open status), you will have an Invoice with a PaymentIntent created inside

static cave
#

Yes.. i mean after finalizing

#

@shrewd garnet looks like is not working
getting error - No such payment_intent: 'pi_3KWx4cCScnf89tZo1G39sa9k'

shrewd garnet
#

Maybe Stripe account is different?

#

The account created the PI and the account trying to update it?

static cave
#

Oh.. my bad
Sorry for that