#delisdeli-checkout
1 messages · Page 1 of 1 (latest)
hi! can you clarify what the overall goal is? https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-metadata is how you set metadata, it's not on a per-line item basis
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
overall goal is to add data that points to entities within my application so i can pull the in the webhook subscriber. what i am doing now is putting metadata on price_data.product_data.metadata
one problem i am having is that i cannot seem to get the product and thus the metadata on the webhook handler side
stripeRepository.products.list({id:[...]}) is empty
I think that's because if you create a Product adhoc like that with product_data it's immediately archived, so you need to pass active:false to get it returned https://stripe.com/docs/api/products/list#list_products-active , not sure
i tried that but still getting nothing 😦
apiVersion: '2020-08-27',
stripeAccount: 'acct_1L0XvIRU6CSEoSVB',
});
const stripeProducts = (
await stripeRepository.products.list(
{
active: false,
},
)
).data;```
not sure then, when you create products inline like that they are probably hidden in the API