def METHOD_NAME(site, app):
	marketplace_apps = (
		get_saas_apps(app)
		if frappe.db.get_value("Saas Settings", app, "multi_subscription")
		else [app]
	)
	# create subscriptions
	subscription_docs, custom_saas_config = get_app_subscriptions(marketplace_apps, app)
	# set site config
	site_config = {f"sk_{s.app}": s.secret_key for s in subscription_docs}
	site_config.update(custom_saas_config)
	site._update_configuration(site_config, save=False)
	return subscription_docs