#Arctic

1 messages · Page 1 of 1 (latest)

high windBOT
fair dawn
#

it take a key-value pair

frank creek
#

and value cant be array?

fair dawn
frank creek
#

okay 500 characters long is my problem probably

#

thx

fair dawn
frank creek
#

aw rly?

#

so the value only takes string?

#

or int i guess

fair dawn
frank creek
#

is there a better way to store products in the payment intent? bcs my products are deeply nested

fair dawn
#

Checkout is not an option for you?

frank creek
fair dawn
#

The easiest way is to create an Order on your side, and pass the client_reference_id

frank creek
#

would this replace the payment intent?

fair dawn
#

you have 2 options here, you can use Checkout Session and this would mean that you will redirect your customer to our Hosted Checkout page but you can have your line_items (the different products) saved in Stripe

frank creek
#

and option 2?

fair dawn
#

or you can create the Order/Checkout basket in your own database and just pass in the metadata the id of that object

frank creek
#

just out of curiosity, why cant you put arrays in the metadata?

#

could be useful, right?

fair dawn
#

this is not possible I'm afraid, we can't allow people to use the metadata as a database

frank creek
#

i see, fair