#Pankaj-metadata

1 messages · Page 1 of 1 (latest)

silver turret
#

setting metadata on a PaymentIntent would work fine in livemode too.

tepid wedge
#

ok

#

Is there any api where we can use order_id that we passed

#

rather intent_id

silver turret
#

depends what you mean by "using" it really

tepid wedge
#

pi_1Dr1oJ2eZvKYlo2CmvZ83mAR

#

is this intent_id

#

Right?

silver turret
#

that's the ID of a PaymentIntent yes.

tepid wedge
#

But I don't want to use it

silver turret
#

you can't change that or set it, it's generated by Stripe when you call the API to create the PaymentIntent.

tepid wedge
#

Basically my moto is to update meta description of an order

silver turret
# tepid wedge But I don't want to use it

don't now what "use" means in that context. But that's what metadata is for, indeed. You can set your own metadata on the object and look it up later in webhook bodies or in the API.

silver turret
tepid wedge
#

Aim

#

moto

#

meaning

silver turret
#

never heard of that word, sorry. But ok I think I understand you.

#

anyway, is everything clear now? What can I help with?

serene rain
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

tepid wedge
#

Yes

#

Can't we update metadata based on metadat we passed on payment creation

#

Like curl

serene rain
tepid wedge
#

Is i know but don't want intend id here

#

pass other paramter

#

Is this possible?

serene rain
#

No, you need to pass the pi_xxx ID as a URL parameter

tepid wedge
#

ok Thanks!!!