Skip to content
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

Submit Order ? #4

Open
starliTrade opened this issue Jan 5, 2024 · 3 comments
Open

Submit Order ? #4

starliTrade opened this issue Jan 5, 2024 · 3 comments

Comments

@starliTrade
Copy link

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

@Accretence
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

For client side

@github-staff github-staff deleted a comment from DavideStagni Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants