PAYMENT_PROVIDER=manual tanpa Scalev.
Dashboard: app.scalev.idDocs: docs.scalev.com · developers.scalev.id
Env di project
Setup
1
Akun bisnis Scalev
Daftar / login app.scalev.id — setup toko (store) dan produk/variant harga.
2
API key bisnis
Dashboard developer → buat Business API key (bearer token).
Docs auth:
Docs auth:
Authorization: Bearer <token> untuk route /v3/...3
Ambil store unique id
Dari API list store atau dashboard — masukkan ke
SCALEV_STORE_UNIQUE_ID4
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
5
Mapping variant/bundle
Setiap tier/kelas di TrainerHub perlu
variant_unique_id atau bundle_price_option_unique_id yang match produk di Scalev.6
Dev tanpa Scalev
./thub env merge → checkout manual tanpa hit API Scalev.