Skip to content

Commit

Permalink
feat: create order init status & push order_id to monetic success/err…
Browse files Browse the repository at this point in the history
…or urls
  • Loading branch information
ClementNumericite committed Nov 7, 2024
1 parent 6c5c9ec commit 2dc68dd
Show file tree
Hide file tree
Showing 9 changed files with 8,737 additions and 58 deletions.
6 changes: 5 additions & 1 deletion webapp/src/pages/dashboard/order/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,11 @@ export default function OrderObizPage() {
bg="bgGray"
>
<Flex direction={"column"} gap={10}>
<BackButton />
<BackButton
onClick={() => {
router.push("/dashboard/wallet");
}}
/>
<Flex
alignItems={"center"}
direction={"column"}
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/payload/collections/Order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export const Orders: CollectionConfig = {
type: "number",
label: "Numéro de commande",
required: true,
unique: true,
},
{
name: "user",
Expand All @@ -47,6 +46,7 @@ export const Orders: CollectionConfig = {
type: "select",
label: "État",
options: [
{ label: "Initialisée", value: "init" },
{ label: "En attente de paiement", value: "awaiting_payment" },
{ label: "Payée", value: "payment_completed" },
{ label: "Livrée", value: "delivered" },
Expand Down
Loading

0 comments on commit 2dc68dd

Please sign in to comment.