The customer enters their bank account details in Element and clicks on SUBMIT. In the token method, LotusPay.js sends the bank account details in Element directly to LotusPay for bank account token creation and then passes that token into source. In the storage method, Element gives you the unmasked bank account details.
The source details in the page and the bank account details collected in Element are then captured by your server.
Your server runs a script to call the LotusPay Source API for source creation, and then passes the whole response to Element. Element sends the customer to the redirect[url] and the customer begins the redirect flow to authorise the source.
Here is sample code in PHP.
When creating a source, its status is initially set to pending. Your customer must authorise the source for it to create a mandate.