Skip to main content
ShopeeProvider adalah adapter untuk Shopee Merchant / ShopeePay. Ia memakai alur OTP fetch-only: tidak butuh browser, Playwright, Puppeteer, atau dependency cookie eksternal.

Karakteristik

  • OTP fetch-only: nomor telepon + password (bila akun dilindungi) menghasilkan OTP lewat WhatsApp, SMS, atau panggilan.
  • Cookie jar murni: state autentikasi disimpan sebagai cookie yang dapat dipersist dan dipulihkan.
  • Multi-merchant: satu akun dapat mengakses beberapa business merchant; ganti tanpa OTP baru.
  • Multi-store: satu merchant dapat memiliki beberapa store; QRIS terikat ke store.
  • Feed cursor: ShopeePay dipaginasi dengan next_position.
  • QRIS manual: dashboard API tidak menyediakan QRIS statis; berikan manual dan ikat ke store.

Konstruksi

Opsi utama config:
Token Shopee berotasi setiap pembaruan, jadi onSessionUpdated wajib dipasang agar sesi tersimpan tidak menjadi basi. ShopeeOtpChallenge, ShopeeOtpVerification, dan ShopeeSession berisi cookie atau state autentikasi sensitif. Jangan mengirim objek tersebut ke browser, mencetaknya ke log, atau menyimpannya sebagai fixture. Lihat Keamanan.

Halaman Shopee

Login OTP

requestOtp, verifyOtp, completeLogin, loginWithOtp.

Merchant dan store

Discovery dan ganti merchant/store.

Pembayaran

QRIS manual dan rekonsiliasi.

Sesi

Perbarui sesi tanpa OTP baru.

Device risk

Device report dan pengiriman OTP.