chore: update iyzico payment processing and database schema
All checks were successful
Deploy / deploy (push) Successful in 9m3s
All checks were successful
Deploy / deploy (push) Successful in 9m3s
Enhanced the iyzico payment processing logic by updating the handling of checkout form content. Modified the order schema to include a new field for storing the checkout form content, ensuring it persists across page refreshes. Updated related functions to reflect these changes, improving the overall payment experience. Additionally, updated the app database to incorporate the latest changes.
This commit is contained in:
31
src/app/odeme/page.tsx
Normal file
31
src/app/odeme/page.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
import { Suspense } from "react";
|
||||
import type { Metadata } from "next";
|
||||
import { SiteFooter } from "@/components/site-footer";
|
||||
import {
|
||||
OdemeSayfasi,
|
||||
OdemeSayfasiSkeleton,
|
||||
} from "@/features/odeme/components/odeme-sayfasi";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Güvenli Ödeme",
|
||||
robots: { index: false, follow: false },
|
||||
};
|
||||
|
||||
export default function OdemePage({
|
||||
searchParams,
|
||||
}: {
|
||||
searchParams: Promise<{ siparis?: string }>;
|
||||
}) {
|
||||
return (
|
||||
<div className="flex min-h-screen flex-col bg-slate-50 text-slate-900">
|
||||
<main className="mx-auto flex w-full max-w-xl flex-1 flex-col px-4 py-10">
|
||||
<Suspense fallback={<OdemeSayfasiSkeleton />}>
|
||||
{searchParams.then(({ siparis }) => (
|
||||
<OdemeSayfasi siparisId={siparis} />
|
||||
))}
|
||||
</Suspense>
|
||||
</main>
|
||||
<SiteFooter />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user