-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Decouple the Price_id and Id in Product type #337
Comments
Hmm @franva I don't know if I fully understand the issue. You think you can provide a bit of what the product objects look like? Maybe you can show me the log results after adding to cartDetails too? In the mean time, I have an update I've been super slow on working on and maybe I can provide a fix for you there if I can understand the issue better, but you might be able to get away with something that's not so ideal. You think you can use the Lemme know if you have questions or if I don't make any sense! |
Hi @dayhaysoos thank you for your kind attitude and willingness to help :) As you can see that the cartDetails have 2 price items, so the cartCount shows 2. So there are 2 features I would like to request:
Hope the explanation makes sense to you. |
hey @franva thanks for the explanation! Okay so, soon I will be doing a staycation and I plan on getting the next release out. I'm gonna do my best to try to support your needs! If anything, I'll ping you here for feedback. Thank you for bringing this to my attention! |
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_idthen 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.
The text was updated successfully, but these errors were encountered: