# Migration v23

Contains 1 breaking change of the SDK interface.

## Changes

- [fetchGatewayConfig now takes one object as single parameter](#fetchGatewayConfig-now-takes-one-object-as-single-parameter)

### fetchGatewayConfig now takes one object as single parameter

fetchGatewayConfig used to be defined as `fetchGatewayConfig(paymentType: string, countryCode: string, clientIPAddress: string, authorizationAmount: number, appIdOverride?: string)`. However, an additional parameter needed to be pass to the memberships API, `userId`. To avoid potential bugs related to using positional arguments and several optional params and to allow for future extension and mantainability, fetchGatewayConfig now is defined as `fetchGatewayConfig(configOptions: fetchGatewayConfigOptions)` where fetchGatewayConfigOptions is an object that requires all the old fields from fetchGatewayConfig plus the optional `appIdOverride` and `userId`.