Skip to content

Configuration listeners

Listeners let your application react to configuration changes in process.

Python

python
from platform_sdk import client

def on_timeout_update(value):
    print(f"checkout timeout updated: {value}")

platform = client(api_key="YOUR_API_KEY")
platform.listen("checkout.timeout", on_timeout_update)

Node.js

js
platform.listen("checkout.timeout", (value) => {
  console.log("checkout timeout updated:", value)
})