#nsad__

1 messages ยท Page 1 of 1 (latest)

lunar lynxBOT
glad shore
#

Hello ๐Ÿ‘‹
Can you elaborate?

proud lichen
#

Hello, my friend, i am using api to create product, but i have doubt to create features inside product

glad shore
#

What's the doubt?

proud lichen
glad shore
proud lichen
#
        produto = stripe.Product.create(
            name=name,
            description=description,
            features=['oi','dois']
        )

this way dont work

glad shore
#

What error are you getting?

proud lichen
#

stripe.error.InvalidRequestError: Request req_9oUGqkKya0Gl2l: Invalid object

glad shore
#

ah it needs to be an array of hashes

#

so like

features=[{name: "Abc"}, {name: "Xyz"}]
proud lichen
#

okay,this worked, when i change price of product or something, send a webhook?

glad shore
proud lichen
#

okay, thanks for everything, have a good day!