Settings

The API for retrieving the extension configuration.

settings: Record<string, unknown>

The merchant settings from the extension configuration file.

Use setttings.{key} to retrieve the configuration value set by the merchant in the SHOPLINE Admin.

render("Checkout::Dynamic::Render", (props) => {
const { settings } = props;
React.useEffect(() => {
if (settings) {
// do something
}
}, []);
const top = (
<>
<Text>Extension</Text>
</>
);
return top;
});
Was this article helpful to you?