You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not all countries are able to use Stripe, however, users would like to take advantage of the shopping cart state and logic that USC provides. Right now, there are Stripe values that are required in the current set up.
Goal
It would be ideal to pass a "custom" prop to the CartProvider that makes it so that no config is required at all.
Approach
As of right now, there is a ClientOnly config and a CustomCheckout config. They each share a "Common Config" which is where the Stripe values are required:
We would need a "CustomConfig" that requires only one prop: currency
It's needed for adding items to the cart and creating total values for display. I don't think it would be a good idea to leave currency out of it.
Possibilities
Perhaps users may want to take advantage of using props that DO get passed to the CartProvider. Was wondering if it would be a good idea to make a useCustomProps hook to do this.
Providing Feedback
Feel free to comment here with any issues/concerns!
The text was updated successfully, but these errors were encountered:
Given we are removing stripe most people will need a way to do some form of gathering customer info and maybe using a different payment gateway. Besides currency we should add a prop called checkoutUrl.
Let´s add the useCustomProps hook once we have a basic CartProvider working without stripe.
Overview
Not all countries are able to use Stripe, however, users would like to take advantage of the shopping cart state and logic that USC provides. Right now, there are Stripe values that are required in the current set up.
Goal
It would be ideal to pass a "custom" prop to the CartProvider that makes it so that no config is required at all.
Approach
As of right now, there is a ClientOnly config and a CustomCheckout config. They each share a "Common Config" which is where the Stripe values are required:
use-shopping-cart/use-shopping-cart/core/index.d.ts
Line 50 in c08f1a9
We would need a "CustomConfig" that requires only one prop:
currency
It's needed for adding items to the cart and creating total values for display. I don't think it would be a good idea to leave currency out of it.
Possibilities
Perhaps users may want to take advantage of using props that DO get passed to the CartProvider. Was wondering if it would be a good idea to make a
useCustomProps
hook to do this.Providing Feedback
Feel free to comment here with any issues/concerns!
The text was updated successfully, but these errors were encountered: