OptionalapiKey?: stringLegacy API key: needed for transaction inquiry (getPayment / reconcile).
OptionalbaseUrl?: stringOverride the region base URL (testing / proxies).
HMAC secret from the dashboard: verifies transaction callbacks.
Integration ids, one per payment method (card, wallet, cash_outlet for kiosk, bnpl,
installments, …) plus card_auth, card_moto and apple_pay. Test/live mode must match the keys.
Public key (pk_…): builds the Unified Checkout URL. Safe for browsers.
Optionalregion?: "egypt" | "ksa" | "uae" | "oman"Secret key (sk_test_… / sk_live_…): creates intentions, refunds, voids.
Create the Paymob adapter:
new Sarraf({ providers: { paymob: paymob({...}) } }).