~/dev justfajar
Kembali ke Proyek

Toko iPhone (E-Commerce, IMEI Verification & Trade-In Platform)

Platform e-commerce & layanan purna jual khusus unit iPhone dengan verifikasi nomor IMEI, kalkulasi ongkos kirim ganda (Radius GPS Haversine + RajaOngkir API), payment gateway Midtrans, dan notifikasi WhatsApp.

Next.js 16 TypeScript Tailwind CSS Prisma ORM PostgreSQL Midtrans RajaOngkir Fonnte
Toko iPhone (E-Commerce, IMEI Verification & Trade-In Platform)
README.md
Terverifikasi

Tentang Proyek

Toko iPhone adalah platform e-commerce dan ekosistem layanan purna jual (after-sales service) modern yang dirancang khusus untuk memfasilitasi transaksi jual-beli, servis, dan tukar tambah produk iPhone dengan standar transparansi tertinggi.

Membeli perangkat smartphone pre-owned atau rekondisi sering kali menimbulkan kekhawatiran bagi calon pembeli terkait keaslian nomor IMEI, kesehatan baterai (Battery Health), status garansi resmi (ex-iBox vs International), maupun kejelasan kondisi fisik. Toko iPhone hadir memberikan kepastian menyeluruh melalui pencatatan unit berbasis IMEI fisik, estimasi ongkir otomatis multi-metode, hingga sistem pelacakan servis mandiri.


Latar Belakang dan Tujuan

Pasar produk Apple di Indonesia berkembang sangat pesat, namun sering terkendala minimnya transparansi riwayat perangkat dan kerumitan logistik lokal. Inisiatif platform ini dibangun untuk mewujudkan sasaran-sasaran strategis:

  • Transparansi Produk Tanpa Keraguan: Menyajikan informasi kondisi fisik setiap unit secara akurat, mulai dari riwayat pemakaian, sisa kesehatan baterai, hingga legalitas sinyal dan IMEI.
  • Efisiensi Pengiriman Cerdas Ganda: Memberikan solusi logistik fleksibel yang menguntungkan pembeli lokal di sekitar gerai (pengiriman kurir instan) maupun pelanggan antar-kota di seluruh Indonesia.
  • Keamanan Transaksi Otomatis: Menghilangkan proses konfirmasi pembayaran manual yang lambat melalui integrasi gerbang pembayaran instan dan rekonsiliasi data real-time.
  • Fasilitasi Servis & Garansi Terbuka: Memberikan kemudahan bagi konsumen untuk mengklaim garansi dan memantau progres perbaikan unit secara daring dan transparan.
  • Kemudahan Peremajaan Unit (Trade-In): Membantu pengguna memperbarui tipe iPhone lama mereka ke seri terbaru dengan kalkulator taksiran harga yang adil dan transparan.

Layanan Unggulan Konsumen dan Pembeli

1. Katalog Unit Terverifikasi Nomor IMEI

  • Detail Fisik & Riwayat Akurat: Tiap etalase produk memuat rincian persentase Battery Health, kategori kondisi fisik (Grade Mulus, Minor Scratch), kelengkapan aksesoris, dan status garansi resmi Indonesia (ex-iBox / GDN) atau unit internasional.
  • Ketersediaan Unit Riil: Pemesanan terikat langsung pada nomor IMEI unik di basis data, mencegah terjadinya pesanan ganda (overselling).

2. Sistem Pengiriman Pintar Ganda (Dual Shipping Strategy)

  • Kurir Internal Instan Toko (Validasi Radius GPS): Layanan antar langsung khusus pembeli dalam radius 20 kilometer dari lokasi gerai fisik. Jarak dihitung secara presisi menggunakan formula spasial Haversine berdasarkan koordinat lokasi pembeli.
  • Ekspedisi Reguler Nasional: Pengiriman ke seluruh penjuru Nusantara melalui integrasi resmi API kurir terkemuka (JNE, POS Indonesia, dan TIKI) dengan kalkulasi tarif dinamis berdasarkan berat paket dan kota tujuan.

3. Gerbang Pembayaran Instan (Midtrans Payment Gateway)

  • Metode Pembayaran Lengkap: Mendukung transaksi menggunakan QRIS (GoPay, OVO, ShopeePay), Transfer Virtual Account bank nasional (BCA, Mandiri, BNI, BRI), serta Kartu Kredit/Debit.
  • Konfirmasi Otomatis Seketika: Begitu pembayaran dilakukan, sistem langsung memperbarui status pelunasan transaksi secara otomatis melalui mekanisme webhook terenkripsi tanpa perlu unggah bukti transfer.

4. Manajemen Servis & Klaim Garansi Mandiri

  • Pengecekan Garansi Cepat: Pelanggan cukup memasukkan nomor IMEI unit mereka untuk memeriksa masa aktif garansi toko.
  • Pelacakan Tiket Servis Real-Time: Pendaftaran keluhan unit menghasilkan nomor tiket khusus untuk memantau status pengerjaan: Menunggu Pemeriksaan, Dalam Perbaikan, Selesai, hingga Siap Diambil.

5. Kalkulator Tukar Tambah Cerdas (Trade-In Engine)

  • Penaksiran Nilai Instan: Membantu pengguna mengetahui estimasi nilai tukar unit lama mereka berdasarkan seri model, kapasitas penyimpanan, kondisi layar, fisik bodi, dan fungsi kamera sebelum membawa unit ke toko.

6. Notifikasi Pembaruan Pesanan via WhatsApp

  • Komunikasi Langsung & Nyaman: Integrasi otomatis dengan WhatsApp Gateway mengirimkan tanda terima pesanan, rincian pembayaran, dan tautan nomor resi pengiriman langsung ke aplikasi WhatsApp pelanggan.

Keunggulan Rekayasa & Keandalan Sistem

Platform dirancang dengan fondasi teknologi full-stack modern untuk menjamin kecepatan, keamanan, dan skalabilitas tinggi:

  • Next.js 16 App Router & Server Actions: Memanfaatkan arsitektur React Server Components yang menyajikan rendering halaman super cepat dan proses transaksi di sisi server yang aman dari manipulasi data sisi klien.
  • Integritas Relasi Basis Data (Prisma ORM): Menjaga relasi ketat antara nomor IMEI unit, riwayat transaksi, tiket servis, dan data pelanggan agar data tetap konsisten dan bebas dari anomali.
  • Keamanan Webhook Finansial: Setiap sinyal pembayaran dari penyedia gateway diverifikasi keaslian tanda tangan kriptografinya (signature key validation) sebelum pesanan diproses ke status lunas.
  • Algoritma Geospasial Haversine: Perhitungan jarak spasial kurir internal dijalankan secara instan di sisi server untuk menentukan kelayakan radius gratis/pengiriman toko tanpa membebani kinerja peramban pengguna.

Ringkasan Spesifikasi Teknologi

KomponenTeknologiPeran Utama
Framework UtamaNext.js 16 & TypeScriptArsitektur full-stack dengan type-safety ketat
Desain AntarmukaTailwind CSS & Shadcn UIDesain responsif, bersih, dan konsisten di seluruh perangkat
Database & ORMPostgreSQL / MySQL + Prisma ORMPengelolaan skema data relasional IMEI, transaksi, dan servis
Payment GatewayMidtrans Snap & WebhookOtomasi gerbang transaksi instan QRIS dan Virtual Account
Logistik & JarakRajaOngkir API + Geolocation HaversineKalkulasi tarif kurir nasional dan validasi radius kurir toko
Notifikasi PesanFonnte WhatsApp GatewayPengiriman status pemesanan dan servis ke WhatsApp pelanggan
Sistem AutentikasiNextAuth.jsPengelolaan sesi aman via Credentials dan Google OAuth 2.0

Dokumentasi Visual Sistem

Berikut dokumentasi visual antarmuka sistem Toko iPhone yang mencakup pengalaman berbelanja pelanggan, kalkulasi tukar tambah, hingga panel kontrol administrasi dan teknisi:

1. Alur Layanan Pelanggan (Customer Experience)

A. Beranda & Katalog Produk

Beranda Toko iPhone Beranda Utama: Menampilkan hero banner penawaran iPhone, navigasi cepat layanan servis/trade-in, dan pilihan produk terlaris.

Katalog Produk iPhone Katalog Produk: Direktori etalase unit dengan filter tipe model, kapasitas memori, rentang harga, dan status garansi.

B. Detail Produk & Keranjang Belanja

Detail Unit Terverifikasi IMEI Detail Produk: Rincian transparansi kondisi fisik unit, persentase Battery Health, kelengkapan boks, dan verifikasi IMEI.

Keranjang Belanja Keranjang Belanja: Tinjauan pesanan unit dengan ringkasan subtotal harga dan opsi penggunaan voucher diskon.

C. Checkout & Sistem Pengiriman Cerdas Ganda

Checkout Pengiriman Ganda Checkout Pengiriman: Pemilihan kurir armada internal toko (validasi radius GPS Haversine) atau ekspedisi nasional RajaOngkir.

D. Layanan Mandiri Garansi, Servis & Tukar Tambah

Cek Garansi Mandiri IMEI Cek Garansi IMEI: Pengecekan masa aktif garansi toko secara instan cukup dengan memasukkan 15 digit nomor IMEI.

Pelacakan Tiket Servis Pelacakan Servis: Pemantauan status pengerjaan perbaikan unit secara transparan dari pemeriksaan awal hingga siap diambil.

Kalkulator Tukar Tambah Trade-In Kalkulator Trade-In: Penaksiran nilai estimasi harga tukar tambah unit lama berdasarkan kondisi fisik, fungsi, dan kelengkapan.

E. Portal Akun & Riwayat Pesanan

Daftar Pesanan Pelanggan Riwayat Pesanan Pelanggan: Daftar status transaksi pembayaran, nomor resi kurir, dan riwayat klaim garansi aktif.


2. Panel Kendali Administrasi & Portal Teknisi

A. Dashboard Analitik & Inventaris Stok IMEI

Dashboard Admin Toko Dashboard Utama Admin: Ringkasan pendapatan penjualan, grafik transaksi harian, status stok menipis, dan antrean servis.

Manajemen Inventaris Stok IMEI Kelola Inventaris: Pencatatan nomor IMEI fisik spesifik per unit barang, penetapan harga modal, dan grading kondisi fisik.

B. Manajemen Pesanan & Transaksi Tukar Tambah

Manajemen Pesanan Masuk Manajemen Pesanan: Verifikasi status pembayaran Midtrans, input nomor resi ekspedisi, dan monitoring pengiriman kurir lokal.

Kelola Pengajuan Trade-In Kelola Trade-In: Peninjauan pengajuan tukar tambah pelanggan, verifikasi fisik unit di toko, dan persetujuan nilai akhir.

C. Portal Khusus Teknisi Servis & Notifikasi

Klaim Garansi & Tiket Servis Manajemen Garansi: Penanganan permohonan klaim garansi toko, riwayat kerusakan unit, dan pencatatan nomor tiket perbaikan.

Portal Teknisi Servis Portal Teknisi: Antarmuka terfokus bagi staf teknisi untuk memperbarui status pengerjaan servis unit dan catatan pergantian suku cadang.


Informasi Repositori dan Pengembang

  • Akses Kode Sumber: Repositori Privat / Closed-Source
  • Pengembang: Just-Fajar
  • Peran: Full-Stack Web Developer (Solo Developer)
  • Lisensi: Closed-Source / Proprietary

About the Project

Toko iPhone is a modern e-commerce platform and after-sales service ecosystem specifically engineered to facilitate verified purchases, authorized repairs, and trade-in transactions for iPhone units with rigorous transparency.

Purchasing pre-owned or refurbished smartphones in Indonesia often induces anxiety regarding IMEI registration legitimacy, Battery Health degradation, official warranty pedigree (ex-iBox vs International), and physical condition. Toko iPhone resolves these consumer risks through physical IMEI-bound inventory tracking, automated dual shipping rate estimation, and transparent self-service repair tracking.


Background and Strategic Goals

While demand for Apple hardware in Indonesia remains high, secondary market transactions are frequently hampered by opaque device histories and complex local courier logistics. Toko iPhone was engineered to deliver targeted strategic objectives:

  • Uncompromising Product Transparency: Disclosing the exact physical condition of each serialized unit, including operational history, remaining Battery Health, and IMEI signal registration status.
  • Dual-Strategy Shipping Efficiency: Offering flexible logistics benefiting local customers close to the physical storefront (local store fleet delivery) alongside nationwide expedited courier services.
  • Automated Settlement & Security: Eliminating tedious manual bank transfer slips through automated payment gateway integration and real-time webhook reconciliation.
  • Transparent After-Sales & Warranty Support: Empowering consumers to verify warranty claims and track live device repair progression online.
  • Fair Trade-In Valuation Engine: Providing customers with instant, fair trade-in estimations to upgrade older iPhone units seamlessly.

Consumer Services & Features

1. Serialized IMEI-Verified Product Catalog

  • Transparent Physical Grading: Product listings feature verified Battery Health percentages, physical cosmetic grading (Flawless, Minor Scratch), bundled accessories, and official Indonesian carrier registry status (ex-iBox / GDN vs International).
  • Physical Unit Ingestion: Orders bind atomically to individual 15-digit IMEI serial numbers in the database, preventing overselling.

2. Dual-Engine Shipping System (Dual Shipping Strategy)

  • Local Store Courier (GPS Haversine Radius): Express direct delivery for buyers within a 20-kilometer radius of the retail store. Distance is calculated server-side using the spatial Haversine equation based on geolocation coordinates.
  • Nationwide Expedited Couriers: Nationwide shipping across Indonesia integrated via RajaOngkir API (JNE, POS Indonesia, and TIKI) with real-time parcel weight and city tariff calculations.

3. Automated Payment Processing (Midtrans Payment Gateway)

  • Comprehensive Tender Methods: Seamless checkout supporting dynamic QRIS (GoPay, OVO, ShopeePay), major Indonesian bank Virtual Accounts (BCA, Mandiri, BNI, BRI), and Visa/Mastercard credit/debit cards.
  • Instant Webhook Reconciliation: Automatic payment settlement verification powered by cryptographically verified webhooks, eliminating manual receipt uploads.

4. Self-Service Warranty & Repair Ticket Tracking

  • Instant IMEI Warranty Lookup: Customers query active warranty windows by inputting their unit’s 15-digit IMEI number.
  • Real-Time Repair Progression: Dedicated repair tracking portal showing lifecycle stages: Awaiting Inspection, In Repair, Testing Completed, through Ready for Pickup.

5. Intelligent Trade-In Calculator (Trade-In Engine)

  • Instant Valuation Assessment: Users calculate trade-in valuations based on model series, storage capacity, screen integrity, body condition, and camera functionality prior to visiting the storefront.

6. Automated WhatsApp Transaction Alerts

  • Direct & Convenient Updates: Fonnte WhatsApp Gateway automatically dispatches official purchase receipts, payment confirmation tokens, and delivery tracking numbers straight to the customer’s phone.

Engineering Architecture & System Resilience

Toko iPhone is architected on a high-velocity full-stack technology stack designed for transactional reliability:

  • Next.js 16 App Router & Server Actions: Utilizing React Server Components for fast initial page loads and secure server-side mutation logic protected against client-side tampering.
  • Relational Data Integrity (Prisma ORM): Enforcing strict relational constraints between IMEI records, checkout transactions, customer profiles, and service tickets.
  • Cryptographic Webhook Validation: Server-side signature validation ensuring that transaction mutations originate exclusively from authenticated payment providers.
  • Server-Side Haversine Geolocation: Immediate spatial calculations conducted server-side without offloading compute strain onto client mobile browsers.

Technical Architecture Overview

ComponentTechnologyCore Role
Primary FrameworkNext.js 16 & TypeScriptEnd-to-end type-safe full-stack application architecture
Interface DesignTailwind CSS & Shadcn UIResponsive, high-contrast, clean modern commerce aesthetic
Database & ORMPostgreSQL / MySQL + Prisma ORMRelational schema modeling IMEI units, checkout orders, and repairs
Payment GatewayMidtrans Snap & WebhooksAutomated multi-channel payments (QRIS, Virtual Accounts)
Logistics EngineRajaOngkir API + Haversine RadiusDynamic nationwide shipping calculations and local fleet checks
Messaging GatewayFonnte WhatsApp APIAutomated order confirmation and delivery status messaging
AuthenticationNextAuth.jsSecure session administration via Credentials and Google OAuth 2.0

Visual System Documentation

Visual interface tour of Toko iPhone across e-commerce purchasing, warranty validation, and technician administration:

1. Customer Shopping & Service Workflows

A. Storefront & Product Catalog

Toko iPhone Storefront Home Storefront Home: Promotional banner showcase, quick service shortcuts, and curated best-seller units.

iPhone Product Catalog Product Catalog: Model series filters, storage tiers, price range sliders, and warranty status toggles.

B. Product Details & Checkout Cart

IMEI-Verified Product Details Product Details: Battery Health metrics, physical condition transparency, binned accessories, and IMEI pedigree.

Shopping Cart Shopping Cart: Line-item order reviews with coupon discount vouchers.

C. Checkout & Dual Shipping Selection

Dual-Engine Shipping Checkout Shipping Checkout: Selecting between the local store fleet (GPS Haversine radius validation) and nationwide couriers.

D. Self-Service Warranty, Repair & Trade-In

Self-Service IMEI Warranty Lookup IMEI Warranty Lookup: Instant store warranty validation using 15-digit serial numbers.

Service Ticket Tracking Service Tracking: Transparent repair stage monitoring from initial diagnostic triage through completion.

Trade-In Calculator Trade-In Calculator: Interactive valuation assessments based on device condition, functionality, and storage.

E. Customer Account & Order History

Customer Orders Ledger Order History: Payment transaction statuses, courier tracking waybills, and active warranty records.


2. Administrative Control & Technician Workspace

A. Analytics Dashboard & IMEI Inventory

Store Admin Dashboard Executive Dashboard: Sales revenue, daily volume charts, inventory alerts, and active service queues.

IMEI Inventory Management Inventory Ledger: Registering unique IMEI numbers, purchasing costs, and condition grades per hardware unit.

B. Order Fulfillment & Trade-In Review

Incoming Orders Management Order Fulfillment: Midtrans settlement verification, waybill tracking generation, and store courier dispatch.

Trade-In Submissions Review Trade-In Management: Evaluating trade-in submissions, in-store physical verification, and final valuation approval.

C. Warranty Claims & Dedicated Technician Portal

Warranty & Repair Management Warranty Management: Reviewing claim tickets, fault diagnostics, and repair progress.

Technician Service Portal Technician Portal: Dedicated view for repair staff to update device progress and log replacement components.


Repository and Developer Information

  • Source Code Access: Private Repository / Closed-Source
  • Developer: Just-Fajar
  • Role: Full-Stack Web Developer (Solo Developer)
  • License: Closed-Source / Proprietary

Galeri Pratinjau Proyek

Toko iPhone (E-Commerce, IMEI Verification & Trade-In Platform) Preview 1
Toko iPhone (E-Commerce, IMEI Verification & Trade-In Platform) Preview 2
Toko iPhone (E-Commerce, IMEI Verification & Trade-In Platform) Preview 3
Toko iPhone (E-Commerce, IMEI Verification & Trade-In Platform) Preview 4
Toko iPhone (E-Commerce, IMEI Verification & Trade-In Platform) Preview 5
Toko iPhone (E-Commerce, IMEI Verification & Trade-In Platform) Preview 6