Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile TypeScript error on payment-router.ts related to price when line_items is being pushed in the array #24

Open
dawda92 opened this issue Jan 15, 2024 · 1 comment

Comments

@dawda92
Copy link

dawda92 commented Jan 15, 2024

I was facing an issue related to not defining a specific type for the prod when the line_items is being pushed:
Skærmbillede 2024-01-15 kl  20 50 26

If anyone else are facing the same issue, remember to set the type for the product, when you are iterating over the array of line_items:

filteredProducts.forEach((product: Product) => { line_items.push({ price: product.priceId!, quantity: 1, }) })

@rarechrisclark
Copy link

thanks for the good pick-up! Saved me some debugging time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants