TIPOFF / checkout

Laravel Package for Ecommerce Checkouts
MIT License
0 stars 1 forks source link

Routes #93

Open drewroberts opened 3 years ago

drewroberts commented 3 years ago

I'm stuck in a decision about the routes in this package. @pdbreen Could you help me?

I prefer using the following:

The problem I'm running into is if the application has different payment accounts (currently Stripe) for each location, then I need to either make these a location-based route or prevent cart items from different locations from being added and still use these same routes. The 3rd option is to figure out a way to divide the total into different payments for each location, but I don't like that solution as much. What do you think?

pdbreen commented 3 years ago

@drewroberts cart currently requires all items in the cart to be from the same location, so your preferred routes are fine (actually happen to be adding them right now).

drewroberts commented 3 years ago

Perfect! Thank you