Skip to content

Config options ​

config/flutterwave.php, published by php artisan flutterwave:install. Generate your .env lines with the .env builder.

Keys and environment ​

OptionEnvDefault
publicKeyFLW_PUBLIC_KEYNeeded for the inline checkout and pay buttons
secretKeyFLW_SECRET_KEYNeeded for every API call
encryptionKeyFLW_ENCRYPTION_KEY''Encrypts payloads that Flutterwave requires encrypted
secretHashFLW_SECRET_HASH''Signs webhooks. Without it, every webhook is rejected.
envFLW_ENVIRONMENTstaging
merchantIdFLW_MERCHANT_ID

Checkout ​

OptionEnvDefault
businessNameFLW_BUSINESS_NAMEFlutterwave Store
titleFLW_PAYMENT_DESCRIPTORFlutterwave Store
descriptionFLW_CHECKOUT_DESCRIPTIONFlutterwave Store Description
logoFLW_BUSINESS_LOGOA placeholder image
countryFLW_DEFAULT_COUNTRYNG
currencyFLW_DEFAULT_CURRENCYNGN
transactionPrefixFLW_TRANSACTION_PREFIXLARAVEL-
paymentTypeAll methods: card, account, banktransfer, ussd, mobile money...
checksumFLW_CHECKSUMfalse
redirectUrlFLW_REDIRECT_URLAPP_URL/flutterwave/payment/callback
successUrlFLW_SUCCESS_URLAPP_URL/flutterwave/payment/success
cancelUrlFLW_CANCEL_URLAPP_URL/flutterwave/payment/cancel

HTTP client ​

OptionEnvDefault
timeoutFLW_TIMEOUT60Seconds
retriesFLW_RETRIES2GET requests only. POSTs are never retried.

Webhooks ​

OptionEnvDefault
webhook.enabledFLW_WEBHOOK_ENABLEDtrueRegisters the route
webhook.pathFLW_WEBHOOK_PATHflutterwave/webhook
webhook.middleware[]Extra middleware for the route
webhook.verify_chargestrueRe-fetch charges before ChargeCompleted
webhook.dedupeFLW_WEBHOOK_DEDUPEtrue
webhook.dedupe_storeFLW_WEBHOOK_DEDUPE_STOREYour default cache storeUse one that's shared and persistent
webhook.dedupe_forOne weekSeconds
webhook.queueFLW_WEBHOOK_QUEUEQueue name; empty handles webhooks during the request
webhook.queue_connectionFLW_WEBHOOK_QUEUE_CONNECTIONYour default connection

Notifications ​

OptionEnv
notify.chargebacksFLW_NOTIFY_CHARGEBACKSComma-separated emails
notify.failed_transfersFLW_NOTIFY_FAILED_TRANSFERSComma-separated emails

Services ​

OptionDefault
services[]Map a service key to your own class, or to null to turn it off. See Configuration.

Service keys: transactions, webhooks, modals, transfers, banks, subaccounts, plans, subscriptions, virtual_accounts, beneficiaries, balances, refunds, settlements, stablecoins, cards, chargebacks, fx, preauth, bills, payout_subaccounts, bvn.

Released under the MIT License.