If you wish to customize the usage of iBranch, you can build your own triggers to open iBranch programmatically with the following routes.
Open an invoice in FundNow
// Make sure ibranch is already initialized and rendered ... // Pass in partner_invoice_uuid and open invoice FundNow lendica.ibranch.openFundNow(partner_invoice_uuid);
Open a bill in PayLater
// Pass in partner_bill_uuid lendica.ibranch.openPayLater(partner_bill_uuid);
Neutral route to open iBranch programmatically.
// iBranch will display the last page that the user visited lendica.ibranch.open();
You can also open ibranch on specific pages.
// Available routes // Account summary with total credit available and deals table lendica.ibranch.open('wallet'); // Product pages with credit available and invoice table lendica.ibranch.open('paylater'); // if PayLater is available for the partner lendica.ibranch.open('fundnow'); // if FundNow is available for the partner // Upcoming payment schedules and transaction history lendica.ibranch.open('activity-center'); // Download reports lendica.ibranch.open('reports'); // Account settings page, with company contact info, and ability to add new bank accounts lendica.ibranch.open('account');
Neutral route to open ibranch on application page. If customer has already been approved, it will redirect to Wallet page.
Remove iBranch from DOM.
After removing, you can call
render again to remount iBranch to DOM.
//...after ibranch removed lendica.ibranch.render();