Skip to main content
Semua tipe di bawah diekspor sebagai import type dari merchantid. Bagian ini merangkum tipe inti; tipe khusus provider ada di halaman provider masing-masing.

PaymentScope

GoPay: { provider: "gopay", merchantId }. Shopee: { provider: "shopee", accountId: merchant.id, merchantId: storeId }. Bandingkan dengan samePaymentScope(a, b).

Payment

PaymentStore

Implementasi harus menerapkan scope bila diberikan. Lihat PaymentStore.

MerchantTransaction

TransactionLister dan TransactionQuery

Port offset-paginated yang dipakai GoPay. Shopee memakai TransactionFeed ternormalisasi (lihat di bawah).

TransactionFeed

Adapter feed memiliki paginasi dan konversi sendiri. truncated menandai batas halaman per tick tercapai.

MerchantProvider

Permukaan umum kecil yang diimplementasikan facade provider (GopayProvider, ShopeeProvider). Detail autentikasi sengaja tetap spesifik per provider dan tidak masuk kontrak ini:
Metode seperti payments(), createPayment(), dan refreshSession() ada di tiap facade tetapi bukan bagian dari kontrak MerchantProvider. Lihat Multi provider untuk detail.

Tipe GoPay

Lihat Merchant GoPay.

Tipe Shopee

Tipe utama Shopee: ShopeeSession, ShopeeMerchantSummary, ShopeeStore, ShopeeOtpChallenge, ShopeeOtpVerification, ShopeeOtpRequestOptions, ShopeeCookie, ShopeeStaticQrisScope, ShopeeMerchantProfile, ShopeeVerifyOtpInput, ShopeeCompleteLoginInput, ShopeeLoginWithOtpInput, dan union ShopeeLoginOutcome.
ShopeeOtpRequestOptions menerima channel (1=SMS, 2=telepon, 3=WhatsApp), password, dan deviceReport. ShopeeSession, ShopeeOtpChallenge, ShopeeOtpVerification, dan switchCredential bersifat sensitif - lihat Keamanan dan Sesi Shopee.

Logger

Lihat Logging.