#resolveai

1 messages · Page 1 of 1 (latest)

slow heraldBOT
lucid scroll
#

Hey there, sorry for the delay

#

Where are you setting metadata currently?

#

You control when and where metadata is stored in most cases

summer loom
#

like this

#

of course theres more in the session create

lucid scroll
#

Sure, gotcha

#

So this is attached to the Checkout session

#

The way you could port this to a customer would be in a webhook handler for checkout.session.completed events

summer loom
#

i know what do i do to add it to customer?

lucid scroll
#

You'd inspect the session metadata and the customer ID, then update the customer object to apply any metadata to the customer that you want there

summer loom
#

how in python?

#

tell me i have no idea

lucid scroll
#
stripe.Customer.modify(
  "cus_ICdmArUkdrMi1a",
  metadata={"order_id": "6735"},
)