Skip to content

Set Config

METHOD NAME setConfig

Requires state IDLE

Description

Update specific configuration fields on the payment device. This allows dynamic customization of certain device behaviors without requiring a full configuration update.

Parameters

object

  • config Config
    Used to specify the configuration fields to be updated. It allows selective updates to certain aspects of the device's configuration.
    The only allowed fields are as follows, the rest of the fields will be ignored:
    • printTransactionReceipt
    • printSettlement
    • cachedResponses
    • nsd
    • logo

Result

null on success

Errors

  • MissingParams on missing config
  • IllegalState

Example

Request

{
  "jsonrpc": "2.0",
  "id": "1234567890",
  "method": "setConfig",
  "params": {
        "config": {        
            "printTransactionReceipt": "NONE"
        }
    }
}

Response

1
2
3
4
{
    "jsonrpc": "2.0",
    "id": "1234567890"
}