- 20 Jun 2024
- 2 Minutes To Read
- Print
- DarkLight
- PDF
Overview
- Updated On 20 Jun 2024
- 2 Minutes To Read
- Print
- DarkLight
- PDF
Mambu Functions help you enhance your financial products by extending the functionality of the Mambu composable banking platform. Using Functions reduces the time it takes to create custom financial products and gives you the power to customize for your unique requirements by injecting your own code into existing business processes.
You can write custom functions in TypeScript or JavaScript that draw on Mambu data. For example, you may use Functions to create the following common custom processes:
- Create custom deposit fees for clients.
- Create custom monthly deposit fees.
Mambu CLI allows you to deploy your custom code and manage your functions. It is the preferred way to interact with Mambu Functions while you can also use the Management APIs for the same purpose.
Early versions of this feature are limited to the calculation of fees in Deposit products, either manually or monthly.
How Functions work
Mambu Functions apply your custom logic when a process attached to a product is invoked. For example, you may want to apply a special fee class every time a deposit is made by clients with over EUR1000 in their account. Instead of being limited to the options in Mambu, you can code your own logic using data from the banking platform.
Once the Function has been deployed, it can be bound to a product using the Mambu UI - when choosing product configuration features such as deposit fee - and it will be invoked when the relevant API is called.
You can create Mambu Functions for the extension points listed in the Core Extensions page. Each extension point has ready-to-use templates that you can use to start your development.
Restrictions and security
Mambu Functions are run in an isolated environment for security purposes. Functions may only access and use data supplied by the Mambu cloud banking platform. To ensure that Mambu Functions do not affect the functioning of the cloud banking platform, check the individual pages under Core Extensions and Event Driven Functions for the current restrictions imposed.
You are responsible for running thorough functional tests of your Functions before deploying them to your production environment.
API keys used by the Mambu CLI are not encrypted at rest in the credentials file. Please ensure that your local disk is encrypted and that your workspace is secure.
Getting help
For help with Mambu Functions, please see the various channels available that you can use on the Getting Support page. For help with setting up your environment, see the Troubleshooting section. The release notes for Mambu Functions can be found on our Release Notes page.