#MarkoBoras

1 messages · Page 1 of 1 (latest)

worldly reefBOT
willow oxide
#

👋 happy to help

#

do you have multiple data that you want to store?

viral palm
#

yeah

#

I have array of ids

#

I've done this so far

#

But I am not sure if it is correct

#

const metadata: { [key: string]: string } = {
reservationIds: JSON.stringify(reservationIds),
};

Then in creation of checkout I pass that metaadata

willow oxide
#

you can pass it to the Checkout Session's metadata

#

yes

viral palm
#

ok

#

when can I then retrieve back those reservationIds

#

I want to retrieve them only if checkout has succeeded

#

and payment went successfully

willow oxide
#

in the checkout.session.completed event

viral palm
#

ok

steep sierra
#

Hi! I'm taking over my colleague. Please, let me know if you have any other questions.