sesto-dev / next-prisma-tailwind-ecommerce

✨ Open-Source Full-stack E-Commerce Storefront with CMS Admin Panel. Built with Typescript, Next.js 14 App Dir, Tailwind CSS ( @shadcn-ui ) and Prisma. Admin Panel: https://pardis.vercel.app
https://pasargad.vercel.app
MIT License
219 stars 33 forks source link

Submit Order ? #4

Open starliTrade opened 10 months ago

starliTrade commented 10 months ago

How can we active order option and customer can submit a order and add to database .

sesto-dev commented 10 months ago

I still haven't implemented the order submission and payment option for this project but the API POST method for submitting an order is there:

https://github.com/Accretence/next-prisma-tailwind-ecommerce/blob/main/apps/storefront/src/app/api/orders/route.ts

It is pretty similar to the cart endpoint, you may have to customize it based on your payment provider.

starliTrade commented 10 months ago

can you write very simple example without provider or one provider for example but i want one simple example for payment at home just for submit order in db .?

starliTrade commented 10 months ago

For client side