PAYMENT_PROVIDER=manual tanpa Scalev.
Dashboard: app.scalev.idDocs: docs.scalev.com · developers.scalev.id
Env di project
Setup
Akun bisnis Scalev
Daftar / login app.scalev.id — setup toko (store) dan produk/variant harga.
API key bisnis
Dashboard developer → buat Business API key (bearer token).
Docs auth:
Docs auth:
Authorization: Bearer <token> untuk route /v3/...Webhook
- Di Scalev, subscribe event:
order.payment_status_changed,order.status_changed, dll. - URL webhook production:
https://app.sertifikasitrainer.com/api/...(endpoint webhook di API) - Simpan secret ke
SCALEV_WEBHOOK_SECRET— verifikasi signature di handler
Mapping variant/bundle
Setiap tier/kelas di TrainerHub perlu
variant_unique_id atau bundle_price_option_unique_id yang match produk di Scalev.Alur order (ringkas)
Contoh URL pembayaran setelah order dibuat:Troubleshooting
| Masalah | Solusi |
|---|---|
| Pembayaran tidak update | Cek webhook URL + SCALEV_WEBHOOK_SECRET |
| 401 ke API | SCALEV_API_KEY invalid atau expired |
| Harga minimum error | Konfigurasi tier di admin + mapping variant |
| Dev error Scalev | Override PAYMENT_PROVIDER=manual di dev |
| Ganti API key / DB baru | Tier masih pegang store lama → ./thub scalev resync — lihat DB baru + Scalev resync |
Not Found saat ensure-scalev | SCALEV_STORE_UNIQUE_ID di tier ≠ toko di key baru — resync |