SofizPay Logo

SofizPay

SofizPay Logo
SofizPay
Technical Documentation

SofizPay SDKs

Official client libraries to integrate SofizPay payments, CIB & EDAHABIA checkout, and digital services.

Unified Method Reference

All SDKs implement consistent method names across languages (camelCase for JS, PHP, Dart, and Java; snake_case for Python).

PurposeJS / Dart / Java / PHP (camelCase)Python (snake_case)Alias
Get SDK VersiongetVersion()get_version()—
Derive Public Key from SecretgetPublicKey(secretKey)get_public_key(secret_key)getPublicKeyFromSecret()
Get DZT BalancegetBalance(publicKey)get_balance(public_key)getDzdBalance() (PHP)
Submit DZT Paymentsubmit(paymentData)submit(payment_data)sendPayment() / send_payment()
Get Exhaustive Transactions HistorygetTransactions(publicKey, limit)get_transactions(public_key, limit)getPaymentHistory() / get_all_transactions()
Search Transactions by MemosearchTransactionsByMemo(key, memo, limit)search_transactions_by_memo(...)getTransactionsByMemo()
Fetch Transaction by HashgetTransactionByHash(hash)get_transaction_by_hash(hash)—
Start Real-Time Transaction StreamstartTransactionStream(key, callback, ...)start_transaction_stream(...)setupTransactionStream()
Stop Transaction StreamstopTransactionStream(keyOrId)stop_transaction_stream(key_or_id)—
Get Stream StatusgetStreamStatus(keyOrId)get_stream_status(key_or_id)—
Create CIB/EDAHABIA TransactionmakeCIBTransaction(data)make_cib_transaction(data)Supports is_sandbox flag
Create Sandbox CIB TransactionmakeSandboxCIBTransaction(data)make_sandbox_cib_transaction(data)Dedicated simulation gateway
Check CIB Order StatuscheckCIBStatus(cibTxId, isSandbox?)check_cib_status(cib_tx_id, is_sandbox?)Uses cib_transaction_id
Check Sandbox CIB Order StatuscheckSandboxCIBStatus(cibTxId)check_sandbox_cib_status(cib_tx_id)Dedicated sandbox check
Verify Webhook Payload SignatureverifyWebhookSignature(payload)verify_webhook_signature(payload)Verifies cib.payment.updated
Raw RSA Digital Signature VerificationverifySignature(message, signature)verify_signature(message, signature)verify_sofizpay_signature()
Get Products & Offers ListgetProducts(encryptedKey?)get_products(encrypted_sk?)—
Recharge Mobile Phone (Flexy)rechargePhone(data)recharge_phone(data)Requires encrypted_sk
Recharge Internet SubscriptionrechargeInternet(data)recharge_internet(data)Requires encrypted_sk
Recharge Gaming CreditsrechargeGame(data)recharge_game(data)Requires encrypted_sk
Pay Utility BillspayBill(data)pay_bill(data)Requires encrypted_sk
Get Operations HistorygetOperationHistory(key, limit, offset)get_operation_history(key, limit, offset)—
Get Operation Details by IDgetOperationDetails(id, key)get_operation_details(id, key)—