<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Salton Massally on Medium]]></title>
        <description><![CDATA[Stories by Salton Massally on Medium]]></description>
        <link>https://medium.com/@salton.massally?source=rss-eeda91a1c4f0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*7ukCXf7iM76cKVzy.</url>
            <title>Stories by Salton Massally on Medium</title>
            <link>https://medium.com/@salton.massally?source=rss-eeda91a1c4f0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:30:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@salton.massally/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Developing a More Dynamic Catalog for Kill Bill]]></title>
            <link>https://medium.com/@salton.massally/developing-a-more-dynamic-catalog-for-kill-bill-1356654b5ae2?source=rss-eeda91a1c4f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/1356654b5ae2</guid>
            <category><![CDATA[payment-processing]]></category>
            <category><![CDATA[subscription-management]]></category>
            <category><![CDATA[kill-bill]]></category>
            <dc:creator><![CDATA[Salton Massally]]></dc:creator>
            <pubDate>Fri, 14 Feb 2020 19:23:40 GMT</pubDate>
            <atom:updated>2020-02-14T19:23:40.556Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://killbill.io/">Kill Bill</a> is a leading open-source platform for billing and payment. Working on the initial releases of <a href="https://play.google.com/store/apps/details?id=xyz.idtlabs.mikashboks">MiKashBoks</a>, a group-based savings and lending social-financial app predominantly focused on helping developing world rural communities participate in self-help financial groups, we needed a solution to helping group members automate their saving contributions and leverage the convenience of digital payments.</p><p>Initial considerations were hosted and managed solutions like Stripe and Braintree given their managed nature and ease of integration. However, MiKashBoks’ target market is predominantly in the rural developing world where people are without conventional digital payment methods like debit cards with mobile money the overwhelmingly predominant form of digital payment accessible to these markets. These managed solutions provided no solution to integrating with the Mobile Money Providers in these markets.</p><p>Our options were to build a billing solution from scratch or leverage an existing one that can be customized to integrate with these mobile money payment providers. Thus, I stumbled on Kill Bill. It provided all the features of a full-fledged billing and subscription management system and was opensource. An added bonus was great documentation and pluggable interfaces including payment methods. Getting mobile money to work for our project meant writing a new piece of payment plugin with just that functionality.</p><p>However, for our application, we needed to create products and plans on the fly as saving groups are created and also edit those as the rules around how they save and withdraw are changed. Kill Bill has the concepts of catalogs that encapsulate rules around products, plans, etc. But this is declared as XML which was poorly suited for our application. Both the rate at which our catalog changes and the size of the catalog meant we needed to a more dynamic solution.</p><p>For this, we implemented the <a href="https://docs.killbill.io/latest/catalog_plugin.html">CatalogPluginApi</a> to provide an alternative database-backed catalog implementation. That allows users to:</p><p><strong>Add plans to the catalog via a rest interface</strong></p><pre>curl -v \<br>     -X POST \<br>     -u admin:password \<br>     -H &#39;X-Killbill-ApiKey: bob&#39; \<br>     -H &#39;X-Killbill-ApiSecret: lazar&#39; \<br>     -H &#39;X-Killbill-CreatedBy: admin&#39; \<br>     -H &#39;Content-Type: application/json&#39; \<br>     -d &#39;{ &quot;id&quot;: &quot;fc07bb1f-a3db-496a-90bf-409cfb6c5d66&quot;, &quot;planName&quot;: &quot;Test Plan&quot;, &quot;productName&quot;: &quot;Test Product&quot;, &quot;productCategory&quot;: &quot;BASE&quot;, &quot;currency&quot;: &quot;SLL&quot;, &quot;amount&quot;: 1000, &quot;billingPeriod&quot;: &quot;DAILY&quot;, &quot;trialLength&quot;: 30, &quot;trialTimeUnit&quot;: &quot;DAYS&quot;, &quot;availableBaseProducts&quot;: [] }&#39; \<br>     <a href="http://127.0.0.1:8080/plugins/catalog-database/plans">http://127.0.0.1:8080/plugins/catalog-database/plans</a></pre><p><strong>List all active Plans</strong></p><pre>curl -v \<br>     -X GET \<br>     -u admin:password \<br>     -H &#39;X-Killbill-ApiKey: bob&#39; \<br>     -H &#39;X-Killbill-ApiSecret: lazar&#39; \<br>     -H &#39;X-Killbill-CreatedBy: admin&#39; \<br>     -H &#39;Content-Type: application/json&#39; \<br>     <a href="http://127.0.0.1:8080/plugins/catalog-database/plans">http://127.0.0.1:8080/plugins/catalog-database/plans</a></pre><p><strong>The Catalog system uses these declared plans to build its catalog</strong></p><pre>[<br>   {<br>      &quot;name&quot;:&quot;Product Catalog&quot;,<br>      &quot;effectiveDate&quot;:&quot;2011-10-08T00:00:00.000+0000&quot;,<br>      &quot;currencies&quot;:[<br>         &quot;SLL&quot;,<br>         &quot;INR&quot;,<br>         &quot;USD&quot;<br>      ],<br>      &quot;units&quot;:[</pre><pre>],<br>      &quot;products&quot;:[<br>         {<br>            &quot;type&quot;:&quot;BASE&quot;,<br>            &quot;name&quot;:&quot;Test Product 2&quot;,<br>            &quot;prettyName&quot;:&quot;Test Product 2&quot;,<br>            &quot;plans&quot;:[<br>               {<br>                  &quot;name&quot;:&quot;Test Plan 2&quot;,<br>                  &quot;prettyName&quot;:&quot;Test Plan 2&quot;,<br>                  &quot;billingPeriod&quot;:&quot;DAILY&quot;,<br>                  &quot;phases&quot;:[<br>                     {<br>                        &quot;type&quot;:&quot;TRIAL&quot;,<br>                        &quot;prices&quot;:[</pre><pre>],<br>                        &quot;fixedPrices&quot;:[<br>                           {<br>                              &quot;currency&quot;:&quot;SLL&quot;,<br>                              &quot;value&quot;:0<br>                           }<br>                        ],<br>                        &quot;duration&quot;:{<br>                           &quot;unit&quot;:&quot;DAYS&quot;,<br>                           &quot;number&quot;:30<br>                        },<br>                        &quot;usages&quot;:[</pre><pre>]<br>                     },<br>                     {<br>                        &quot;type&quot;:&quot;EVERGREEN&quot;,<br>                        &quot;prices&quot;:[<br>                           {<br>                              &quot;currency&quot;:&quot;SLL&quot;,<br>                              &quot;value&quot;:1000.000000000<br>                           }<br>                        ],<br>                        &quot;fixedPrices&quot;:[</pre><pre>],<br>                        &quot;duration&quot;:{<br>                           &quot;unit&quot;:&quot;UNLIMITED&quot;,<br>                           &quot;number&quot;:-1<br>                        },<br>                        &quot;usages&quot;:[</pre><pre>]<br>                     }<br>                  ]<br>               }<br>            ],<br>            &quot;included&quot;:[</pre><pre>],<br>            &quot;available&quot;:[</pre><pre>]<br>         }<br>      ],<br>      &quot;priceLists&quot;:[<br>         {<br>            &quot;name&quot;:&quot;DEFAULT&quot;,<br>            &quot;plans&quot;:[<br>               &quot;Test Plan 2&quot;<br>            ]<br>         }<br>      ]<br>   }<br>]</pre><p>A link to this plugin can be found on <a href="https://github.com/mikashboks/killbill-catalog-plugin-database">GitHub</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1356654b5ae2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Digital Financial Services Ecosystem Through G2P Pilots — PART 1]]></title>
            <link>https://medium.com/@salton.massally/building-a-digital-financial-services-ecosystem-through-g2p-pilots-part-1-bde23327b7d5?source=rss-eeda91a1c4f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/bde23327b7d5</guid>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[sierra-leone]]></category>
            <category><![CDATA[financial-inclusion]]></category>
            <category><![CDATA[remittances]]></category>
            <dc:creator><![CDATA[Salton Massally]]></dc:creator>
            <pubDate>Tue, 26 Jun 2018 00:05:51 GMT</pubDate>
            <atom:updated>2018-06-26T00:05:51.572Z</atom:updated>
            <content:encoded><![CDATA[<h4>An introductory to a series in which Salton shares his experience leading a consortium of DFS stakeholders in Sierra Leone piloting three carefully selected G2P use cases solutions.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*_ztceuIRsxdwNq8-g1iCMw.jpeg" /></figure><p>Sierra Leone’s Digital Financial Service (DFS) ecosystem though still under-developed can no longer be appropriately characterized as nascent given that it has existed in the form of Mobile Money Services for a decade. Splash, aiming to replicate the success and scale of Safaricom’s Mpesa in Kenya launched in 2009 initially as a remittance service and actively sought to digitize both humanitarian cash transfer and large employer salary payments. Their launch preceded a better understanding of the challenges of delivering mobile money services, especially one none telco or bank led, before studies of Mpesa’s case pointed at its scale mainly being a function of existing conditions &amp; practices not necessarily found in Sierra Leone. Almost immediately, Zain, now several acquisitions later Orange, launched its offering, with Africell’s variant, AfriMoney, introduced much later in 2016. Splash by all practical definition no longer exists, OrangeMoney and AfriMoney combine for a mobile money penetration rate of 3.71% (<a href="https://www.bsl.gov.sl/SL%20FI%20Strategy%202017%20-%202020.pdf">National Strategy for Financial Inclusion 2017–2020</a>) and are deployments stuck in the sub-scale trap and mostly have not evolved past the primal stage of being predominantly a remittance tool.</p><p>As a consequence of these deployments being sub-scale, growth, and revenue may not justify a long-term continued or increased investment by MNOs in this space especially given competing priorities like a complete switch to 4G, improving both network coverage and quality, and planning for 5G, all investments that provide far higher returns. Thus there is a danger of Mobile Money Operations becoming a passive rather than active part of MNO’s portfolio if conditions remain the same, a state wherein investment is limited to maintaining a service rather than the requirement of achieving and maintaining scale.</p><p>Though an increased priority and appetite to support the ecosystem by the regulator and increased investment by the development sector, evidenced by the recent launch of Africa’s second sandbox and the Fintech Challenge supported by sector stakeholders like UNCDF, USAID &amp; FSD Africa, there is still minimal incentive for Sierra Leoneans to transact digitally. Consumers are aware of mobile money and digital financial services but regularly fail to transverse the customer’s journey to regular use. A quick survey points to the following barriers to adoption: 1) lack of utility of mobile money beyond its application as a remittance pipeline 2) poor agent network and liquidity management especially in rural and quasi-urban environments 3) transacting digitally is inconvenient given its multistep nature, unfriendly user interfaces and connectivity challenges 4) high direct cost of transactions relative to cash.</p><blockquote>A consensus exists in the industry that digitization of Government to People Payments (G2P), especially in fragile states like Sierra Leone where the public sector is by some distance the largest employer, can be a relatively easily applied catalyst for DFS adoption. However, research in Zambia and other countries in the SADC region suggests that a blanket approach to simply digitizing payments may have unintended, adverse effects. For example, in Malawi, due to lack of cash-out infrastructure, travel and opportunity costs incurred by digital-payment recipients amounted to more than seven times the amount of their direct account fees and accounted for 15% of their average monthly income. (<a href="https://cenfri.org/blog/delivering-on-the-promise-of-digitising-payments-in-zambia/">https://cenfri.org/blog/delivering-on-the-promise-of-digitising-payments-in-zambia/</a>).</blockquote><p>Consequently, any attempt at large scale digitization of G2P payments should first aim to solve systemic failures around agent networks and liquidity management.</p><blockquote>Additionally, G2P payments are only one type of digital payments. To recognize the full benefits of digitization, we need a broader understanding of how to migrate other types of payments from cash to digital. (<a href="https://cenfri.org/blog/delivering-on-the-promise-of-digitising-payments-in-zambia/">https://cenfri.org/blog/delivering-on-the-promise-of-digitising-payments-in-zambia/</a>).</blockquote><p>For example, during the Ebola crisis in Sierra Leone, salaries of 30,000 Ebola response workers was migrated from cash to mobile money. Given that the cash-out cost was borne by the government rather than the workers, they did not incur the same high costs of accessing their income. However, beyond receiving their payments, almost none used it to transact digitally and 80% wholly cashed out within two days of receipt, and less than 5% maintained their mobile wallets after the programme ended. Even though efficient cash transfer was our primary priority (I headed technology for that programme), we hoped that digitization of salaries would lead to an uptake of DFS and realization of the value of digitization by the target group, but that was not the case.</p><p>I am a part of a consortium that includes <a href="https://idtlabs.sl/">iDT Labs</a> (<em>FinTech</em>), <a href="http://africell.sl/">Africell &amp; AfriMoney</a> (<em>MNO</em>), <a href="http://slcb.com/">Sierra Leone Commercial Bank</a>, &amp; <a href="http://savingsandloans.sl/">ACTB Savings and Loans </a>(<em>MFI</em>) aiming to through a series of pilots targeting government workers to catalyse the DFS ecosystem at carefully selected pilot locations and document lessons learnt. Three pilot cases: 1) Piloting a Remittance Solution 2) Piloting a One-stop Merchant Payment Solution 3) Piloting a micro-savings product, where selected as a result of the “<a href="http://www.uncdf.org/download/file/127/5906/030418-g2p-financial-lives-survey-analysis-mm4p-sierra-leonepdf">The Financial Lives Survey</a>”, conducted in Sierra Leone in 2017–2018 by the UNCDF, which indicated “that government employees who received their salaries in bank accounts can be encouraged to avail of digital financial services instead of cashing out”. It surveyed how government workers spent their salaries and developed pilot cases aligned with the findings. Such a consortium in this thematic area is the ecosystem’s first in an environment where collaboration by organizations with overlapping market segments and value propositions is alien. As a consortium we aim to solve challenges and limitations that affects the development of the sector and while forwarding our organization’s specific vision &amp; objectives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kjk5PAJucTLId-BxT6nuHA.jpeg" /></figure><p>Our approach, which will be covered in follow-up posts, revolves around finding practical solutions to the problems of 1) Inadequate Agent Networks &amp; Liquidity Management and 2) The Lack of Utility of Mobile Money. Consequently, key methodologies employed include:</p><ol><li><strong>Developing a New Model for Managing Access Point &amp; Liquidity </strong>that strengthens both the availability of and ability of access points to meet cash-in and cash out demands of consumers particularly in rural locations.</li><li><strong>Leverage Credit Scoring Using Digital Trail &amp; Promise of Improved Access to Credit</strong> as a catalyst for mobile money adoption among merchants; not only incentivizing acceptance of digital currency in their exchange with customers but also enabling acceptance by their upstream suppliers.</li><li><strong>A Platform-based Approach</strong> that encourages and enables layering of solutions/effort by other stakeholders; enabling the development of FinTech products, services and creation of value on top of our output.</li></ol><p>This article forms the first in a series wherein, as Project Manager of the consortium, I detail our approach, methodology, challenges, and lessons learned. It is not only meant as knowledge sharing and open-sourcing tool, but also an effort to crowd-source feedback and opinions from a broader audience that can help Sierra Leone’s case.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bde23327b7d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTTP PATCH Request with Spring Boot and Data Transfer Objects (DTOs)]]></title>
            <link>https://medium.com/@salton.massally/http-patch-request-with-spring-boot-and-data-transfer-objects-dtos-9229869ba46c?source=rss-eeda91a1c4f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/9229869ba46c</guid>
            <category><![CDATA[spring]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[spring-mvc]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Salton Massally]]></dc:creator>
            <pubDate>Wed, 20 Jun 2018 02:06:16 GMT</pubDate>
            <atom:updated>2018-06-20T02:06:16.272Z</atom:updated>
            <content:encoded><![CDATA[<p>Working on the Spring Boot based monolithic server that clients are to connect to for the <a href="http://mikashboks.com/">miKashBoks</a> project, the need arose to implement PATCH endpoints used to update models. Given that most update actions followed the same operations:</p><ol><li>Deserialise request body into a DTO</li><li>Run some sort of validation</li><li>Load entity being updated</li><li>Copy fields that change over to the entity with the help of a Model Mapper</li><li>Save</li></ol><p>It was best to implement this logic in a base controller that could be inherited by controllers, with hooks at various points allowing further logic &amp; data manipulation. This was especially important as the Spring Boot framework does not support redeclaring endpoints in inheriting controllers.</p><p>DTOs handled the updates; deserialisation and validation came out of the box courtesy of the Spring framework.</p><pre>@Data<br>@NoArgsConstructor<br>@AllArgsConstructor<br>public class IssueUpdateDto implements ApiRequestEntity {<br><br>    private IssueCategory category;<br><br>    private String description;<br>  <br>    private boolean agentReported;</pre><pre>    private int occurrences;</pre><pre><br>}</pre><p>For updates made with DTOs containing all String or Object fields, it worked well but failed with those containing primitives, like the code above, that are initialised by Java to a default value e.g. boolean initialised to false and int initialled to 0.</p><p>Mapper of choice <a href="http://modelmapper.org/">ModelMapper</a> was configured to ignore null fields (would eventually run into situations where deliberately setting fields to null would of course fail) consequently if category or description fields above was not set it will ignore these and not override the value in the database. However, a request that only changes the field description will also initialise fields agentReported and occurrences to false and 0 in the DTO which in turn overwrites the actual values in the database.</p><p>To get around this, the PATCH logic had to be rewritten as follows:</p><ol><li>Accept ResponseBody as Map&lt;String, Object&gt; allowing only values in the PATCH request body to make it into the method</li><li>Load entity being updated and copy its current values into update DTO, e.g IssueUpdateDTo, essentially setting the defaults for all the fields present to their respective states in the database</li><li>Using Jackson’s ObjectMapper rather than ModelMapper, so it would provide the deserialisation of request body , copy fields from the request body into DTO that already had its fields initialised to the current state of the fields in the database, applying the updates from the client</li><li>ModelMapper then copy values from the updated DTO to the entity initially loaded</li><li>Save &amp; Relax</li></ol><pre>abstract public class AbstractApiController&lt;S extends RepositoryService&lt;T, String&gt;, T extends BaseEntity,<br>        C extends ApiRequestEntity, U extends ApiRequestEntity&gt;  {</pre><pre>    final protected ModelMapper modelMapper;<br>    private final Class&lt;U&gt; genericUpdateType;<br><br>    @Autowired<br>    private ObjectMapper jacksonObjectMapper;<br><br><em><br>    </em>public AbstractApiController(S entityService, ModelMapper modelMapper) {<br>        this.modelMapper = modelMapper;<br><br>        Class&lt;?&gt;[] generics = GenericTypeResolver.<em>resolveTypeArguments</em>(getClass(), AbstractApiController.class);<br>        this.genericUpdateType = (Class&lt;U&gt;) generics[3]; <strong>(1)</strong><br>    }</pre><pre>....<br></pre><ol><li>Given there was no means of knowing the class of the DTO at compile-time as these were supplied via generics on class declaration, in the case of the above U, the extra step of leveraging runtime reflection to derive this provide information needed to initialise the DTO later</li></ol><pre>...</pre><pre>U dto = modelMapper.map(entity, genericUpdateType); <strong>(1)</strong><br><br>dto = jacksonObjectMapper.readerForUpdating(dto).readValue(jacksonObjectMapper.writeValueAsBytes(data)); <strong>(2)</strong></pre><pre>modelMapper.map(dto, entity); <strong>(3)</strong><br><br><br>entityService.save(entity); <strong>(4)</strong></pre><pre>...<br></pre><ol><li>entity to update already loaded from our database, via it id for example. genericUpdateType is essentially the class of the DTO in this case IssueUpdateDto.class but given the support for inheritance, had to be derived above</li><li>Jackson deserialises and copies value to the already initialised DTO</li><li>Copy data from the DTO to the entity using ModelMapper</li><li>Save data to database</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9229869ba46c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Open Source Software Helped End Ebola]]></title>
            <link>https://medium.com/idtlabs/how-open-source-software-helped-in-the-fight-against-ebola-788bb3ca2bf0?source=rss-eeda91a1c4f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/788bb3ca2bf0</guid>
            <category><![CDATA[africa]]></category>
            <category><![CDATA[ebola]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Salton Massally]]></dc:creator>
            <pubDate>Fri, 17 Nov 2017 08:19:14 GMT</pubDate>
            <atom:updated>2017-11-17T09:16:31.971Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc-nd/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*3UMJesSWi40nvx6B91iLCA.jpeg" /></figure><p>West Africans generally associate free open source software, which is easily available to use and modify, as being inferior to commercial alternatives. This is a consequence of both their lack of understanding of the open source model of software development and a general consensus that if free software is usually of little or no value. To make matters more complicated, most West African governments are even more distrustful of open source software since they erroneously believe that the closed nature of commercial software built from scratch offers them increased security.</p><p>Open source software is, in fact, what helped to avert a major crisis in Sierra Leone during the Ebola epidemic. Here’s how it happened.</p><p>iDT Labs got involved in the Ebola crisis in Sierra Leone at a crucial time. Ebola Response Workers(ERWs) were threatening to go on strike due to non payment of hazard pay, the compensation promised to them for their dangerous work. With funding from the UNDP, we started working on a solution to disburse hazard payments to ERWs all over the country.</p><p>Whatever solution we came up had to meet the following criteria:</p><ol><li>The software had to be relatively inexpensive</li><li>There was great emphasis on quick development of the system; we had two weeks to plan, develop, and deploy everything</li><li>The solution had to be stable considering the consequences of major downtime or data corruption</li></ol><blockquote>West Africans generally associate open source software, which is freely available to use and modify, as being inferior to commercial alternatives. This is a consequence of both their lack of understanding of the open source model of software development and a general consensus that whatever is free is usually of little or no value</blockquote><p>With these perimeters in mind, we started evaluating open source projects that would not only help us to meet the criteria but would also be responsive enough for our functional requirements. Naturally, realizing that finding a ready-made holistic solution which would meet all of our specifications was improbable, so we divided our scope and evaluated if our options could meet the following needs:</p><ol><li>A core database to house ERW records, generate pay lists, and to record payment history and payment issues.</li><li>An SMS interface through which alerts and status updates could be sent to ERWs and queries received and processed from them.</li><li>De-duplication of ERW records based on their profile and on facial recognition</li><li>A process for field data collection</li></ol><p><strong>Open Source Core Database</strong></p><p><a href="https://www.odoo.com/">Odoo</a>, formerly known as OpenERP, is a suite of open source enterprise management applications that easily emerged as the best fit for our core database requirements. Its major attraction was the ease with which one could develop add-ons, while its large user base and browser-based user interface made it even more appealing. With Odoo and its PostgreSQL database engine forming the core of our solution, it was relatively simple to develop our extensions, with its web service architecture integration with external components via its excellent XML-RPC interface being fairly straightforward. Another advantage was that Odoo already had a human resource add-on the design of which was not far away from what we wanted.</p><p><strong>SMS Interface</strong></p><p>For SMS communications with the system, we decided on using the robust <a href="http://www.kannel.org/">Kannel SMS gateway</a>. We already had extensive experience with Kannel and so we didn’t experience the configuration nightmare that first-time users typically go through.</p><p><strong>De-duplication of Data</strong></p><p>Data de-duplication was to be an integral part of the system. With tens of thousands of records supplied to us via excel spreadsheets, we had to properly plan for a considerable amount of duplication in the records. De-duplicating data was particularly tricky because of the unlimited ways a person’s data can be represented. No convention existed for recording ERW data and so there was an absence of important fields like names, telephone numbers, address etc that we could use to de-duplicate our dataset. Factor in the possibility of spelling mistakes and largely incomplete data, and the magnitude of the de-duplication nightmare increased. For this problem of extracting, matching and resolving entity we had to turn to machine learning, natural language processing and statistical techniques. This ruled out using the power of postgreSQL alone as relational databases are not meant to handle complex entity resolutions. Instead, we turned to yet another open source project, <a href="https://dedupe.io/">Dedupe</a>.</p><p>Initially we flirted with using elasticsearch, an open-source search engine. However we quickly realized that this solution would take much more than the two weeks we had, so we settled with Dedupe, a python library that uses machine learning to quickly perform de-duplication and entity resolution on structured data. After adding some custom code, we got it firing exactly the way we wanted it to.</p><p>Deduplication using the passport pictures of ERWs, when available, was done with the help of <a href="http://openbiometrics.org/">OpenBR</a> and <a href="https://opencv.org/">OpenCV</a>, a facial recognition library and computer vision project respectively.</p><p><strong>Data Collection in the Field</strong></p><p>A requirement of the project was the ability for data to be collected in the field using smartphones. For this we leveraged the excellent <a href="https://opendatakit.org/">Open Data Kit project </a>(ODK), a suite of tools that allows data collection using mobile devices and data submission to an online server, even without an internet connection or mobile carrier service at the time of data collection.</p><p><strong>Open Source Projects VS from Scratch Software</strong></p><p>Adopting open source projects in our solution ensured that we finished well within our stringent time frame and budget, putting together a robust solution that would have taken us years to develop if we were to do it from scratch. The works of thousands of excellent programmers in the open-source space ensured that Sierra Leone effectively and efficiently solved what was the most complex and easily volatile aspect of the Ebola response, the distribution of hazard payment. The only component we had to pay directly for was the SSL certificate used to secure communication with the server.</p><blockquote>The works of thousands of excellent programmers in the open source community ensured that Sierra Leone effectively and efficiently solved what was the most complex and easily volatile aspect of the Ebola response, the distribution of hazard payment.</blockquote><p>Seeing how successfully open source software was deployed in our context we hope to see other West Africans in the tech for development space embrace open source technology. With billions of dollars being wasted by both Governments and the International Development Community operating in our sub-region on low-quality, non-functional software shelved after few months due to poor quality or low user adoption, it is imperative that we turn to open source technology for our software requirements. The billions being poured into commercial software licensing can easily be redirected at more pressing needs, such as poverty alleviation, HIV and Malaria prevention, to name a few.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=788bb3ca2bf0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/idtlabs/how-open-source-software-helped-in-the-fight-against-ebola-788bb3ca2bf0">How Open Source Software Helped End Ebola</a> was originally published in <a href="https://medium.com/idtlabs">iDT Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enabling Next Generation Digital Microfinance in Uganda]]></title>
            <link>https://medium.com/idtlabs/enabling-next-generation-digital-microfinance-in-uganda-3b68f8722af0?source=rss-eeda91a1c4f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b68f8722af0</guid>
            <category><![CDATA[microfinance]]></category>
            <category><![CDATA[west-africa]]></category>
            <category><![CDATA[financial-inclusion]]></category>
            <category><![CDATA[uganda]]></category>
            <category><![CDATA[fintech]]></category>
            <dc:creator><![CDATA[Salton Massally]]></dc:creator>
            <pubDate>Sun, 05 Nov 2017 20:36:43 GMT</pubDate>
            <atom:updated>2017-11-05T21:40:03.731Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc-nd/4.0/</cc:license>
            <content:encoded><![CDATA[<h4><em>iDT Labs Chief Technology Officer Salton Massally talks about his experience leading the integration of </em><a href="http://advance.co.ug/"><em>Advance Uganda</em></a><em> to the country’s ATM network and how this hands-on experience from a more developed DFS market enables </em><a href="https://idtlabs.xyz/financial-inclusion/"><em>iDT Labs’ Financial Inclusion 2.0 vision</em></a><em> across fragile states</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MT_CGBzLdm5BGPK1HFQn7Q.jpeg" /><figcaption>Next Generation Digital Microfinance: Visionary MFIs in fragile states, especially those accepting deposits, are looking to integrate services such as SMS integration, debit cards and much more to serve their customers better, even those at the base of the pyramid</figcaption></figure><p>Microfinance institutions (MFIs) continue to play very important roles as financial intermediaries for most of the world’s poor. In Sierra Leone, Liberia and the Gambia, as many as 38 MFIs are licensed by the central banks and together serve about 250,000 clients. Almost 100% of the time, these MFIs are paper-based and have been unable to leverage technology to manage their operations more efficiently and gain from the fast-paced digital ecosystem’s growth to scale and deliver better services to their clients. In instances where they employ Information Systems, these are often expensive to procure and run and have high learning curves. At the end, the poor suffer.</p><p>So what can be done to better the situation?</p><p>The following is a short Q&amp;A session I was a part of about iDT Labs’ microfinance work in Uganda and how it enables us to bring better better solutions to our West African MFIs and rural financial organizations such as credit unions and community banks:</p><p><strong>Question: Given iDT Labs’ focus in West Africa, how did you come to work with a financial institution in Uganda?</strong></p><p><strong>Answer: </strong>Our lead of Microfinance Technology Services has extensive experience with the Ugandan Microfinance market and is coincidentally also from Uganda. He had worked with the team previously and was pivotal in the initial introductions phase. Our Microfinance Technology Services, which form a section of our Financial Technology (Fintech) Unit, are designed to help small and medium sized MFIs efficiently and cost-effectively integrate technology into their business processes. Apart from wanting to subscribe to EZ Bank, an Apache Fineract backed cloud based core banking service for MFIs, they were looking at integrating customer deposit accounts with the <a href="https://www.interswitchgroup.com/">Interswitch</a> ATM network, enabling easy withdrawals from any Interswitch branded ATM in the country.</p><p>I was fascinated by the scope of the project and the ambition of the Advance team to become a debit card issuing entity, a service delivery medium generally dominated by traditional financial institutions. On top of that this collaboration provided our young team an opportunity to gain insightful experiences working in a more developed DFS ecosystem and learn lessons that can be applied to the fragile state context we usually operate in.</p><p><strong>Question: Can you tell us about iDT Lab’s Digital Microfinance Services?</strong></p><p><strong>Answer:</strong> We aim to bridge the financial inclusion divide one mobile phone at a time. The advent of branchless, mobile-first, digital banking models leverages the convergence of trends spurred by the ubiquity of mobile phones worldwide, including the exponential adoption of smartphones in urban areas, the explosion of mobile data, and the latest advances in computing technology. We see these trends more so in fragile countries like the ones where we work, but there is limited donor attention and limited global/regional private sector attention. At iDT Labs, we are pushing against the status-quo that has become a norm in fragile states. We are working locally with last-mile institutions like the MFIs and credit unions to adopt context-specific transformative technology and deliver an affordable and diverse range of financial services to the unbanked.</p><p>To help these institutions, several key infrastructural challenges have to be overcome for which we are currently focusing on sustainably developing <em>Core Banking as a Service</em>, <em>Digital Payments as a Service</em>, <em>Credit Look-up as a Service</em>, and <em>Digital Identification as a Service</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h99JvMyEiFEs5kOyjeo8Tw.jpeg" /></figure><p><strong>Question: What are some of the opportunities you see for the Microfinance Sector in iDT Labs’ immediate markets — Sierra Leone, Liberia and the Gambia?</strong></p><p><strong>Answer:</strong> There is a global debate happening about the need for microfinance institutions to adapt to the rapidly changing landscape of digital financial inclusion or risk becoming irrelevant. In these fragile markets, the cost of digital financial services (DFS) is often times higher than cash-based transactions. This shows that a lot more needs to be done to develop the broader DFS ecosystem of interoperability, agent-sharing among others. These MFIs need to <strong>a</strong>) improve their operational efficiency by adopting technology, <strong>b</strong>) engage with the broader financial sector to push for a stake in the wider ecosystem development initiatives, and <strong>c</strong>) get DFS-ready.</p><p>Overall, there are significant gains to be realized by going paperless and becoming data-driven to offer the most flexible and customer-oriented financial services in these markets. This will help further the goal and business case of going cashless as well, especially in Sierra Leone and Liberia who are signatories to the <a href="https://www.betterthancash.org/">Better Than Cash Alliance</a>, where the respective governments are prioritizing the development of inclusive payment systems and digitizing bulk payments such as government salaries, social protection cash transfers and so on to expand DFS nationally.</p><p><strong>Question: How does this project forward iDT Labs’ broader Financial Inclusion Work?</strong></p><p>For starters it allows us to experiment with EzBank in an East African DFS setting and increase the diversity of financial institutions we work with. Mostly importantly, West Africa is seeing a rise in both deposit taking MFIs and digitization of service delivery to customers. These MFIs realize that customers are better connected than ever, want to transact from the comfort of their living rooms, have information and services on-demand at their fingertips; the bottom of the pyramid, where most MFI clients are, is not exempt from these winds of change.</p><p>Consequently, MFIs are looking to better integrate with the mobile payment ecosystem and even visionary ones like Advance Uganda are looking beyond that at integrating with traditional DFS mediums like ATMs and POS, mediums associated solely with traditional financial institutions. However, integrating with processors and ATM and POS acquiring networks is complicated and cumbersome both from a technological perspective and that of maintaining back-end processes like settlements and dispute resolution. The ISO8583 protocol commonly used to exchange messages is complicated, the systems running these platforms have a high requirement of service availability, security and a scale too expensive for the MFIs to operate at.</p><p>ISO8583.io, a service being piloted by iDT labs, was conceptualized in response to the increased demand we see coming from deposit taking MFIs to join traditional POS &amp; ATM networks but lack of capacity to efficiently do so. Simply put, it is a platform that aggregates issuers, MFIs in this case, wanting to issue cards to their customers, connecting them with global stream of acquiring and processing entities like Interswitch,<a href="https://www.mastercard.com/global.html"> Mastercard</a>, and <a href="https://usa.visa.com/">VISA</a>. Advance Uganda presented an excellent opportunity to pilot this platform with a progressive and patient team.</p><p><strong>Question: What are the unique challenges of digitizing microfinance in the West African fragile states? Can you compare this to your experience in Uganda?</strong></p><p>The poor computing capacity of these institutions presents the biggest challenge we face in the region. Encompassing both network connectivity, especially beyond headquarter and in more rural branches, and end-user inexperience with working with computer system. Poor internet connectivity is accentuated by the browser-based cloud-hosted nature of EzBank presenting a serious risk to the adoption of our solution. Understanding that this is one of the harsh realities of the environments we operate in, we factored this limiting variable into the development of the user-interface, and so the system is usable in poor internet connections, however a break in connectivity or serious degradation of connectivity renders the system unusable.</p><blockquote>Mostly importantly, West Africa is seeing a rise in both deposit taking MFIs and digitization of service delivery to customers. These MFIs realize that customers are better connected than ever, want to transact from the comfort of their living rooms, have information and services on-demand at their fingertips; the bottom of the pyramid, where most MFI clients are, is not exempt from these winds of change.</blockquote><p>Insufficient computing capacity of end-user also means tremendous effort has to be put into both training end-user and post-implementation support and we find that training usually exceeds the scope of just end-user application training and extends to basic and intermediate computer literacy courses. Poor data Integrity of legacy systems, whether an existing application that was either poorly designed or poor data management techniques on the side of the user, or excel based data management strategy, means a lot of work has to be put into planning for and executing data conversion and in most projects historical data is in such a poor state that we have had to limit conversion to only active records.</p><p>As MFIs across the region are looking at digitizing not just their data and back-end processes but also service delivery, demand for value-added services like SMS-based transaction notifications and mobile money disbursement and repayments have been on the increase. To incorporate this, given the nascency of the DFS ecosystem, we have had to spend considerable resources building infrastructural pieces, e.g. digital identification platforms, mobile payment gateway and SMS aggregators that these services depend on, rather than integrating with pre-existing platforms which is the case with more advanced ecosystems like those in East Africa. We have also had to do a lot of policy advocacy and ecosystem engagement and development.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b68f8722af0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/idtlabs/enabling-next-generation-digital-microfinance-in-uganda-3b68f8722af0">Enabling Next Generation Digital Microfinance in Uganda</a> was originally published in <a href="https://medium.com/idtlabs">iDT Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How we Built an Android App that Brings Justice]]></title>
            <link>https://medium.com/idtlabs/how-we-built-an-android-app-that-brings-justice-d39c49115235?source=rss-eeda91a1c4f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/d39c49115235</guid>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[africa]]></category>
            <category><![CDATA[human-centered-design]]></category>
            <category><![CDATA[research-and-development]]></category>
            <dc:creator><![CDATA[Salton Massally]]></dc:creator>
            <pubDate>Sat, 30 Sep 2017 17:02:44 GMT</pubDate>
            <atom:updated>2017-10-17T08:39:47.113Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc-nd/4.0/</cc:license>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@salton.massally">Salton Massally</a>, Co-Founder and CTO at <a href="http://www.idtlabs.xyz/">iDT Labs</a>, talks about his team’s journey in making an effective and user friendly Android Case Management System for the low tech and low capacity public sector environment in Sierra Leone</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bi3H-OijwBdLeRD--P_fEA.jpeg" /><figcaption>A court official starting up the Justice App to create a new case for a recently charged defendant. Image credits: iDT Labs team</figcaption></figure><h3>Background</h3><p>iDT Labs developed the first-ever <a href="https://www.android.com/">Android</a> Case Management System to fast-track court cases in Sierra Leone, one of the world’s most overstretched judiciary systems in West Africa. The main goal of designing and developing this application was to streamline and reduce the time it takes for cases to be processed, as well as moving the entire case management system from an error-prone, easily corruptible, paper based environment to a digital format which would provide better management, data retention, and insight into the case management processes and practices.</p><p>Ideally, we could have created a fully-fledged desktop application given our affinity for <a href="/service/mailto:https%253A//developers.google.com/web/progressive-web-apps/">Progressive Web Applications</a>. However, such apps couldn’t work in the local context and we had to be mindful of several key challenges when designing our solution. Some of these challenges included:</p><ol><li><strong><em>Low computer literacy:</em></strong> Computer literacy rates are generally low in Sierra Leone, especially among middle-aged civil servants, a demographic that spends a majority of their career in a paper based environment. However, smartphone penetration rates were high, with most people being accustomed to using advanced mobile apps because of their familiarity with Whatsapp and Facebook.</li><li><strong><em>Poor existing network infrastructure:</em> </strong>Due to unreliable internet connectivity in Sierra Leone, especially in the public sector, a system that depended wholly on the internet to operate was likely to lead to poor adoption. An in-house server was out of the question, as the judiciary is made up of several small courts scattered across the country without any network infrastructure of their own. To add to this, we were also skeptical about the security and continued implementation of a proper data management and retention strategy once the solution was handed over.</li><li><strong><em>Need for inexpensive, fast and mobile system:</em></strong> The solution also had to be inexpensive, quickly implementable, and highly mobile. Mobility was especially crucial given that courts and their associated officials were rarely assigned dedicated court rooms and had to move around depending on availability.</li></ol><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F236221863&amp;dntp=1&amp;url=https%3A%2F%2Fvimeo.com%2F236221863&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F658258940_640.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f1c38c7455b15f135588907c0f11d1e7/href">https://medium.com/media/f1c38c7455b15f135588907c0f11d1e7/href</a></iframe><h3><strong>Towards a Robust, Contextual Solution:</strong></h3><p>After conducting thorough research and understanding the situation on-ground, we were able to come up with solutions for some of the biggest hurdles.</p><p><strong>Low latency and high performance in poor internet conditions</strong></p><p><em>Offline First:</em> We designed the app to save data in a <a href="https://www.sqlite.org/">SQLite database</a>, which can be synced whenever the application goes online and can be readily accessed offline. This makes it possible to use the application during instances of weak or zero internet connectivity. It also frees up the application from having to download data on-demand.</p><p><em>3G Connection:</em> By utilizing the 3G network capabilities provided by the Android tablets, it became possible to provide backup to Wi-Fi and become the primary connectivity medium in rural courts where Wi-Fi connections are virtually impossible.</p><p><strong>User-friendly mobile application interface</strong></p><p>Given the relatively young technological landscape of Sierra Leone and considering the fact that using technology frequently is still uncommon in most national institutions, we realised that the design of the Android application of the Case Management System would be of utmost importance. Care needed to be taken to not only ensure that the design was minimalistic and conformed to regular standards but that the User Experience should also successfully mirror the current practices and processes (some of which we found inefficient but were determined to incorporate as effectively as possible).</p><p><strong>Easy data entry</strong></p><p>While figuring out the specifications of the system and analyzing the current processes, what struck us is how wordy case files were, with clerks and judges having to take several pages of case notes for each hearing. We realised that it would be inefficient to have them type these up during or after the case, given how unfriendly that would be on a small device and their unfamiliarity with keyboards. As part of the solution, we ensured that the app could record sessions and take snapshots of already written notes which are then stored against the relevant case files.</p><p><strong>Utilizing open source software to develop the solution</strong></p><p>It was determined right at the start that even though the Android User Interface would be the primary one, we needed a secondary browser-based interface that would provide both administrative and advanced capabilities for power users and for the generation of reports and analytics. We therefore based the central server on the <a href="https://www.odoo.com/">Odoo ERP</a>, a tool we regularly use for development. After expanding it to understand, store, and support workflows for concepts like Case files, Bails and Adjournments, it formed a robust browser-based system capable of supporting:</p><p>a) Data store for the Justice System</p><p>b) Authentication and authorization provision</p><p>c) Rules and workflow engine</p><p>d) UI for administrative and power-user access</p><p>Odoo provides an excellent <a href="https://www.odoo.com/documentation/9.0/api_integration.html">XML RPC API</a> that is immediately accessible for custom models, which enabled us to rapidly communicate with mobile apps without having to write an API over the logic on the central server. We also utilized a <a href="https://github.com/Odoo-mobile/framework">mobile framework</a> written for Odoo that handled the connection, synchronization, and data conversion with the Odoo server.</p><p><strong>Leveraging the Cloud to deliver cost savings and long-term maintenance of the system</strong></p><p>Being evangelists of the cloud, we based the entire architecture on <a href="https://aws.amazon.com/">Amazon Web Services(AWS)</a>. This afforded us several benefits:</p><p>1. <em>Cost-Effectiveness</em> — We consume only the amount of computer storage and other IT resources needed. There is no long-term commitment, minimum spend or up-front investment required.</p><p>2. <em>Elastic and Scalable</em> — We can quickly add and subtract resources to applications to meet demand and manage costs. Given that we were developing a proof of concept pilot, it was important that we avoided provisioning resources up-front.</p><p>3. <em>Security</em> — AWS builds and delivers its services in accordance with the industry’s highest and strictest security best practices. Since we are not infrastructure security experts, we bypassed that by leveraging AWS because physically hosting servers at government premises is always a great security concern.</p><p>4. <em>Availability &amp; Data Retention </em>— Using the Cloud, we decoupled the availability of the system from the health of the network and power status at the judiciary. It meant the app wouldn’t experience significant down times due to connectivity and power failure at the courts (which unfortunately happens regularly).</p><p><strong>Preventing unauthorized access to areas of the tablets outside the scope of the Justice App</strong></p><p>To prevent unauthorized access to parts of the tablets that had nothing to do with the Justice App as well as for rolling out new updates we used a subscription service called <a href="https://mobilock.in/">MobiLock </a>that proved to be very capable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rEC1b1qeIdsTJ_BtdBYXAQ.jpeg" /><figcaption>Magistrate Boi Hannah Bonnie now tracks progress on all cases with just a few taps on the Justice App. She no longer has to sort through piles of paperwork, saving time and leading to increased sentencing rates. Image credits: iDT Labs team</figcaption></figure><h3><strong>The Way Forward</strong></h3><p>The Justice App is currently gaining more attention among key judicial system stakeholders such as the Ministry of Justice, Police, Prisons and Public Defendants offices. It has also generated positive reviews among the end users. At iDT Labs, we are firm believers in the power of contextualized tech solutions like the Justice App, which have the potential of solving some of the most ingrained problems that plague our part of the world.</p><p><em>A note for our readers: The Justice App is currently not available on iOS but we hope that it will be sometime in the future. If you would like to know more about the Justice App feel free to send us an email at info@idtlabs.xyz.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d39c49115235" width="1" height="1" alt=""><hr><p><a href="https://medium.com/idtlabs/how-we-built-an-android-app-that-brings-justice-d39c49115235">How we Built an Android App that Brings Justice</a> was originally published in <a href="https://medium.com/idtlabs">iDT Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>