Files
jaengseung-made/app/payment/test/page.tsx
gahusb 5515a6b48b hide: 로또 서비스 전면 비공개 (PG 심사 정책 대응)
- 홈페이지: FREE_TOOLS, LIVE_SERVICES에서 로또 제거
- 사이드바: 로또 번호 추천 메뉴 제거
- SEO: 키워드, JSON-LD에서 로또 제거
- lib/products.ts: lotto_gold/platinum/diamond 상품 삭제
- 결제 테스트: 로또 상품 제거
- 로또 페이지: redirect('/') 복원
- DB 마이그레이션 005: lotto 카테고리 DELETE 추가 + saju_detail 1000원 반영

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 01:40:35 +09:00

54 lines
1.9 KiB
TypeScript

'use client';
import PaymentButton from '@/app/components/PaymentButton';
import { PRODUCTS } from '@/lib/products';
// DB products 테이블에 등록된 상품만 테스트 가능
const TEST_PRODUCTS = [
'saju_detail', // 1,000원
];
export default function PaymentTestPage() {
return (
<div className="max-w-2xl mx-auto px-6 py-12">
<div className="mb-8">
<h1 className="text-2xl font-extrabold text-[#04102b] mb-2"> </h1>
<p className="text-slate-500 text-sm">
V2 .
</p>
<div className="mt-3 bg-amber-50 border border-amber-200 text-amber-800 text-xs px-4 py-2.5 rounded-xl">
. .
</div>
</div>
<div className="space-y-4">
{TEST_PRODUCTS.map((id) => {
const product = PRODUCTS[id];
if (!product) return null;
return (
<div
key={id}
className="flex items-center justify-between bg-white border border-slate-200 rounded-xl px-5 py-4"
>
<div>
<p className="font-semibold text-sm text-slate-800">{product.name}</p>
<p className="text-xs text-slate-400 mt-0.5">
{product.price.toLocaleString()}
{product.type === 'monthly' && ' / 월'}
<span className="ml-2 text-slate-300">({id})</span>
</p>
</div>
<PaymentButton
productId={id}
className="bg-[#1a56db] hover:bg-[#1e4fc2] text-white px-5 py-2.5 rounded-xl text-sm font-bold transition shadow-lg shadow-blue-600/20"
>
</PaymentButton>
</div>
);
})}
</div>
</div>
);
}