Skip to content

MngUpdateCashierProviderConfig

Creates or updates a Cashier payment provider configuration.

Provider configs define which provider/method/currency/country route is available and contain credentials/settings required by the payment module.

Access

SESSION_MANAGER, SESSION_ADMIN, SESSION_DEALER, SESSION_CRM_MANAGER, SESSION_CRM_ADMIN.

Request Parameters

Name Type Required Description
id int No Existing config id. If omitted or 0, a new config is created
provider string Yes Provider code
brand string Yes Brand code
method string No Payment method marker
country string No Country filter
currency string No Currency filter
merchant_id string No Provider merchant/account id
public_key string No Public provider key
secret_key string No Secret provider key
webhook_secret string No Webhook signature secret
settings_json string No Provider-specific settings JSON string
min_amount double No Minimum payment amount
max_amount double No Maximum payment amount
sandbox int No 1 sandbox, 0 production
enabled int No 1 enabled, 0 disabled
sort_index int No Sorting priority

Request Example

{
  "command": "MngUpdateCashierProviderConfig",
  "extID": "1",
  "data": {
    "provider": "stripe",
    "brand": "default",
    "method": "card",
    "currency": "USD",
    "merchant_id": "acct_123",
    "public_key": "pk_live_xxx",
    "secret_key": "sk_live_xxx",
    "webhook_secret": "whsec_xxx",
    "settings_json": "{}",
    "min_amount": 10.0,
    "max_amount": 5000.0,
    "sandbox": 0,
    "enabled": 1,
    "sort_index": 100
  }
}

Response

Returns the saved provider config. Secret fields are hidden in the response.

{
  "provider": {
    "id": 1,
    "provider": "stripe",
    "brand": "default",
    "method": "card",
    "country": "",
    "currency": "USD",
    "merchant_id": "acct_123",
    "public_key": "pk_live_xxx",
    "secret_key": "",
    "webhook_secret": "",
    "settings_json": "{}",
    "min_amount": 10.0,
    "max_amount": 5000.0,
    "sandbox": 0,
    "enabled": 1,
    "sort_index": 100,
    "created_time": 1779270000,
    "updated_time": 1779270000
  }
}

Notes

  • The provider code should match a loaded runtime provider module.
  • Config changes are applied to Cashier cache immediately.
  • SQLite synchronization is queued through the Cashier DB strand.
  • This method does not reload .so payment modules. Module loading happens during CashierManager initialization.