Description
I have products in the cartDetails with my own IDs not the price ids, also I have the price_id set correctly corresponding to the the price created in the Product section I created on Stripe under test mode.
When I set my own product_id(could be any string) and use the redirectToCheckout()
method, it throws an error:
app-index.js:32 IntegrationError: No such plan:
and it shows my product_id
then I removed my product_id (not assign it when creating a new product), but do have the price_id set up for each created product, it works correctly as expected.
This creates an issue:
I have many digital photos with different resolutions, e.g. 2K, 4K.
I sell all my different photos at same price under same resolution e.g. photo1_2k is $5 and photo6_2k is also $5.
With an unique product ID for each photos(photo1_2k and photo2_2k), the shopping cart can list all of them.
However, due to the explained reason that I cannot use my own product IDs, but the price_ids, then all products with same price_id aggregated into 1 product showing in my ShoppingCart, but charged correctly when on the Stripe page.
So this is the reason why I am asking for decoupling the Price_id from the cartDetails property in the use-Shopping-Cart package, so that we can have all products listed out in shopping cart and also have the correct amount of money charged.
I hope my explanation makes sense to you.
Thank you.
Activity