Palbase Payments · API
PUT
/payments/settingsUpdate payments settings
Updates the project's payments limits, 3DS threshold, velocity rules, and buyer defaults.
Called by your server, with the project's secret key.
Request body
allow_client_paymentsboolean · requiredWhen true, publishable-key clients may create intents directly (opt-in; false by default).allow_marketplace_fiat_walletboolean · optionalOpt-in allowing closed-loop fiat wallet payments in marketplace splits (off by default for BDDK 6493 compliance).cancel_on_deleteboolean · requiredWhat becomes, at the providers, of what could still take a deleted auth user's money: the one setting for it. Subscriptions the IAP module sells on the web are among them, and what was bought or saved under a guest's name later merged into the user. On (the default): their subscriptions stop renewing at their providers (at the period's end) and their saved cards are taken off the providers' vaults. Off: both stay at the provider; the user's records here are erased all the same, so what stayed is managed only from the provider's own dashboard, and the project is told what it is, with the provider's ids (`payments.customer.left_at_provider`). Either way the profile written on the provider's customer record (name, email, address, tax number) is taken off it; the record itself stays. A provider that cannot be reached holds the user's erasure here until it can be. One that refuses the channel's keys, or a channel that cannot be asked at all, is passed over: the user is erased here all the same, and what stays at that provider is told the same way.default_buyer_addressstring · optionalFallback buyer address line.default_buyer_citystring · optionalFallback buyer city for provider risk checks.default_buyer_countrystring · optionalFallback buyer country.default_buyer_tax_idstring · optionalFallback buyer national/tax ID for Turkish providers when buyer omits it.default_currencystring · requiredDefault 3-letter ISO 4217 currency code (e.g. TRY, USD).max_payment_amountinteger (int64) · requiredMaximum single payment intent amount in minor units.three_ds_thresholdinteger (int64) · requiredAmount threshold in minor units at or above which 3DS is enforced (0 = always).time_zonestring · requiredProject reporting IANA time zone.topup_maxinteger (int64) · requiredMaximum wallet top-up amount in minor units.topup_mininteger (int64) · requiredMinimum wallet top-up amount in minor units.velocity_max_failuresinteger (int32) · requiredMaximum failed card attempts per IP/customer within the velocity window.velocity_window_secondsinteger (int32) · requiredSliding velocity window duration in seconds.curl
curl -X PUT "https://<your-ref>.palbase.studio/payments/settings" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"allow_client_payments":false,"cancel_on_delete":false,"default_currency":"string","max_payment_amount":0,"three_ds_threshold":0,"time_zone":"string","topup_max":0,"topup_min":0,"velocity_max_failures":0,"velocity_window_seconds":0}'Responses
200OK
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation UpdateSettings of payments's contract.