<?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 Isaacenobun on Medium]]></title>
        <description><![CDATA[Stories by Isaacenobun on Medium]]></description>
        <link>https://medium.com/@isaacenobun?source=rss-17902d670bbc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TM2rtLdVJRcS_LK8EBstwg.jpeg</url>
            <title>Stories by Isaacenobun on Medium</title>
            <link>https://medium.com/@isaacenobun?source=rss-17902d670bbc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 23:22:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@isaacenobun/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[Multi to Single DB Schema and Field decryption in one go!]]></title>
            <link>https://medium.com/@isaacenobun/multi-to-single-db-schema-and-field-decryption-in-one-go-390ee7ee6563?source=rss-17902d670bbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/390ee7ee6563</guid>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[decryption]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Isaacenobun]]></dc:creator>
            <pubDate>Wed, 16 Sep 2026 09:48:50 GMT</pubDate>
            <atom:updated>2026-09-16T09:48:50.960Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BEhXuiUE7JlMhAwE" /><figcaption>Photo by <a href="https://unsplash.com/@intricateexplorer?utm_source=medium&amp;utm_medium=referral">Intricate Explorer</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If one day you ever find yourself in the position where you have to change from a multi-schema configuration to a single schema, and you also want to decrypt certain fields in your database, here’s a lovely guide for you.</p><blockquote>I don’t have to tell you this, but do not practice on a production database!</blockquote><p>First off, what you want to do is save a snapshot of your data.</p><p>Now, I’m assuming you are using a relational database like PostgreSQL, so the bedrock of the schema change is this:</p><pre>ALTER TABLE stale_schema.table_name SET SCHEMA public;</pre><p>But of course, no one wants to write this for every single table in the database, so how about we generate the ALTER statements for every table?</p><pre>SELECT &#39;ALTER TABLE &#39; || quote_ident(schemaname) || &#39;.&#39; || quote_ident(tablename)<br>       || &#39; SET SCHEMA public;&#39;<br>FROM pg_tables<br>WHERE schemaname = &#39;stale_schema&#39;;</pre><p>One nice thing about SET SCHEMA is that PostgreSQL moves the table along with its associated indexes, constraints, and sequences owned by table columns. So if your tables use normal PostgreSQL serial, bigserial, or identity columns, you generally do not need to manually move those sequences separately.</p><p>And yes, your foreign key relationships remain intact. You are moving the tables, not recreating them.</p><p>If you have other objects in the old schema, such as standalone sequences, views, functions, or other schema-level objects, check those separately. The query above only generates statements for tables.</p><h3>Decryption in 5</h3><p>My problem with DB encryption is that no one really understands encryption code.</p><p>Files like keys.py, crypto.py, custom encrypted fields, key wrapping and all that stuff are things we often copy, configure and move on with our lives.</p><p>Best part is, they just work.</p><p>But once something gets corrupted, it can affect entire endpoints and you suddenly find yourself digging through encryption code you haven’t looked at in months.</p><p>So let’s say you encrypt people’s emails in your database.</p><p>Boom.</p><p>Something goes wrong one day and a few of the encrypted entries get corrupted.</p><p>What do you do?</p><p>Here is the simple way I would handle it.</p><h4>Step 1: Create temporary fields</h4><p>Suppose you currently have:</p><pre>email = EncryptedTextField(null=True, blank=True)</pre><p>Create a normal field alongside it:</p><pre>email_plain = models.TextField(null=True, blank=True)</pre><p>Do this for every encrypted field you want to convert.</p><p>The important part here is that you are <strong>not touching the original encrypted data yet</strong>.</p><h4>Step 2: Run migrations to add the fields</h4><p>Create and run your migration:</p><pre>python manage.py makemigrations<br>python manage.py migrate</pre><p>You should now have both fields in your database:</p><pre>email<br>email_plain</pre><p>The original encrypted data is still there.</p><h4>Step 3: Copy the decrypted values</h4><p>Now run a script that reads the encrypted field through your Django model, allowing your existing encrypted field to decrypt the value, and then saves that value into the new normal field.</p><p>This is the part where your existing encryption code does the work.</p><p>You are essentially saying:</p><blockquote>Take whatever is currently stored in the encrypted field, decrypt it using the existing implementation, and put the resulting plaintext into the temporary field.</blockquote><p>I would also recommend checking the results before deleting anything.</p><p>For example:</p><pre>User.objects.filter(email_plain__isnull=False).count()</pre><p>Compare that with the number of records you expected to migrate.</p><p>If your encryption code can throw an exception for corrupted values, handle those records separately instead of allowing the entire script to stop.</p><h4>Step 4: Replace the encrypted fields</h4><p>Once you have verified that the plaintext fields contain the correct data, you can remove the encrypted fields and rename the temporary fields.</p><p>Your final model would go from:</p><pre>email = EncryptedTextField(null=True, blank=True)<br>email_plain = models.TextField(null=True, blank=True)</pre><p>to:</p><pre>email = models.TextField(null=True, blank=True)</pre><p>Then create a migration that:</p><ol><li>Removes the old encrypted field.</li><li>Renames email_plain to email.</li></ol><p>Run the migration normally.</p><h4>Step 5: Remove the encryption code</h4><p>Once everything is working and you have confirmed that the application is now reading from the normal fields, you can remove the encryption implementation and any key-management code that is no longer being used.</p><p>And that’s it.</p><p>You have gone from:</p><pre>Encrypted field<br>      ↓<br>Temporary plaintext field<br>      ↓<br>Verified data<br>      ↓<br>Normal field<br>      ↓<br>Encryption code removed</pre><p>The important thing is that you never needed to directly decode or manipulate the encrypted database values yourself.</p><p>You let the existing Django field implementation decrypt them, copied the resulting values into normal fields, verified the data, and only then removed the old columns.</p><p><strong>One final warning:</strong> if this is an existing production database, do not casually delete migration files and recreate the migration history. Django migrations are part of the database’s schema history. Keep the migration history intact and create the appropriate migrations for the field changes. If you are doing this on a disposable development database, starting the migration history over can be reasonable, but that is a different situation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=390ee7ee6563" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Email-to-Ticket Chronicles]]></title>
            <link>https://medium.com/@isaacenobun/email-to-ticket-chronicles-c11018a6608a?source=rss-17902d670bbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/c11018a6608a</guid>
            <category><![CDATA[email-to-ticket]]></category>
            <category><![CDATA[zoho-flow]]></category>
            <category><![CDATA[drf]]></category>
            <category><![CDATA[webhooks]]></category>
            <category><![CDATA[zoho]]></category>
            <dc:creator><![CDATA[Isaacenobun]]></dc:creator>
            <pubDate>Mon, 22 Jun 2026 01:57:24 GMT</pubDate>
            <atom:updated>2026-06-22T01:57:24.206Z</atom:updated>
            <content:encoded><![CDATA[<p>So I’ve been trying to implement a feature on an ERP that converts incoming emails into support tickets.</p><p>The problem it’s meant to solve is that users don’t always want to go to the app to create support tickets (lazy, right?). But that’s fine. We can just create a flow where they send an email with their issues to a specific address, and then the receiving email somehow magically sends a webhook to our server to populate the ticket model.</p><p>That way, we convert an email into a functioning ticket on the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zcPCkpCQ3dVRg_xZ" /><figcaption>Photo by <a href="https://unsplash.com/@maria_shalabaieva?utm_source=medium&amp;utm_medium=referral">Mariia Shalabaieva</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Zapier, who?</h4><p>I know this is an age-old problem that everyone has solved at some point in their lives with Zapier automations. I just never learned how to use Zapier.</p><p>I started using Zoho’s ZeptoMail in recent months, and somehow I’ve fallen in love with Zoho (it’s expensive though).</p><p>Anyway, my tools for this are <strong>Zoho Mail</strong>, <strong>Zoho Flow</strong>, and <strong>DRF</strong>.</p><h4>Let’s get into it</h4><p>For this entire process, this is what will be happening under the hood.</p><p>Mr. A sends an email to agent@yourdomain.com. Zoho Mail receives the email and triggers a flow in Zoho Flow. A webhook action is fired from Flow to your webhook endpoint where, of course, you&#39;ve already set up the appropriate business logic.</p><p>And that’s it, my friend. You have successfully converted an email into anything of your choosing.</p><h4>Actual implementation</h4><p>Set up your Zoho Mail account. I’m using a paid plan at about ₦28k per year for 3 email addresses.</p><p>Next, head over to Zoho Flow. Create and build a new flow using the Zoho Mail app option. Follow the steps and choose the filtering structure you want. This determines what triggers your automation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-twgzdTNYAn4_LpjxOEJ0w.png" /></figure><p>Next, add the Webhook action, which should include the correct payload (what you want to capture from the email). Make sure you add a secret in the headers for an extra layer of security.</p><h4>Ngrok it!</h4><p>At this point, pause on Flow and quickly spin up a test Django server. Write your webhook endpoint.</p><p>Here’s a mock view block you can quickly use.</p><pre>class EmailWebhookView(APIView):<br><br>    authentication_classes = []<br>    permission_classes = []<br><br>    def post(self, request):<br>        secret = request.headers.get(&#39;zoho_flow&#39;)<br><br>        if secret != os.getenv(&#39;ZOHO_FLOW&#39;):<br>            return Response(<br>                {&quot;error&quot;: &quot;Unauthorized&quot;},<br>                status=status.HTTP_401_UNAUTHORIZED<br>            )<br><br>        serializer = EmailWebhookSerializer(data=request.data)<br>        serializer.is_valid(raise_exception=True)<br><br>        data = serializer.validated_data<br><br>        from_email = data[&quot;from_email&quot;]<br>        subject = data[&quot;subject&quot;]<br>        body = data[&quot;body&quot;]<br>        timestamp = data[&quot;timestamp&quot;]<br>        message_id = data[&quot;message_id&quot;]<br><br>        if ProcessedEmail.objects.filter(<br>            message_id=message_id<br>        ).exists():<br>            return Response({&quot;status&quot;: &quot;already_processed&quot;})<br>        <br>        ProcessedEmail.objects.create(<br>            message_id = message_id<br>        )<br><br>        soup = BeautifulSoup(body, &#39;html.parser&#39;)<br>        plain_text = soup.get_text(separator=&#39;\n&#39;, strip=True)<br><br>        print(from_email)<br>        print(subject)<br>        print(plain_text)<br>        print(timestamp.strftime(&quot;%Y%m%d&quot;))<br>        print(message_id)<br><br>        # Execute your business logic here<br><br>        return Response({&quot;status&quot;: &quot;received&quot;})</pre><p>You want to make sure the header matches your environment secret. You also want to track emails with a ProcessedEmail model, and lastly, I added BeautifulSoup to parse the email&#39;s HTML content.</p><p>Now run your local server and expose it through an Ngrok URL for testing in the wild.</p><h4>Test..test..test</h4><p>Chances are you’ve missed a step somewhere, but that’s the beauty of it. Go through the steps and figure it out.</p><p>Test the webhook functionality comprehensively in Zoho Flow and make sure your local server is being reached. Next, populate your business logic with the actual point of this exercise: translating emails into tickets.</p><p>The entire setup took less time than I expected. The biggest challenge was making sure the payload contained enough information to create meaningful tickets. Once that was sorted, the rest was straightforward.</p><p>Hope you had fun. CIAO!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c11018a6608a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a simple API with DRF (Part 1)]]></title>
            <link>https://medium.com/@isaacenobun/building-a-simple-api-with-drf-part-1-7d2b72d4e3c1?source=rss-17902d670bbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d2b72d4e3c1</guid>
            <category><![CDATA[drf]]></category>
            <category><![CDATA[api-development]]></category>
            <category><![CDATA[django-rest-framework]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Isaacenobun]]></dc:creator>
            <pubDate>Fri, 24 Jan 2025 20:32:43 GMT</pubDate>
            <atom:updated>2025-01-24T20:32:43.307Z</atom:updated>
            <content:encoded><![CDATA[<h3>API’s like abc’s</h3><p>I’ve heard many explanations of the term API (Application Programming Interface), but this analogy stands out as the most comprehensible, even for non-technical individuals.</p><p>Imagine APIs as waiters in a restaurant. Just as waiters take your orders, relay them to the chefs who then prepare your requested dishes, and finally bring back exactly what you ordered, an API functions the same way. If you decide to change your order, you simply inform your waiter, and they can adjust accordingly. This is precisely the role of an API — it acts as a digital intermediary that gathers your requests and retrieves the necessary data for your application. For instance, if your app requires real-time updates on weather conditions in a specific region, you can seamlessly connect to a weather API, which consistently delivers accurate data on weather conditions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v_bnozToRndfeTiV" /><figcaption>Photo by <a href="https://unsplash.com/@bimoluki02?utm_source=medium&amp;utm_medium=referral">Bimo Luki</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Now that you know what an API is, how about we build one?</p><p>Since we utilized a restaurant analogy, it’s fitting to develop an API for restaurant reservations. If you’re familiar with Python, you can follow this tutorial to create your own API (I will add the link to the entire source code at the end). We’ll be utilizing the Django REST Framework, which is ideal for constructing RESTful APIs. For now, understand that RESTful APIs offer a flexible and scalable approach to constructing web services that can be effortlessly utilized by various clients, including web browsers, mobile devices, and other servers.</p><h3>Gentlemen, shall we?</h3><h4>Creating a Virtual Environment</h4><p>It’s always good practice to set up a virtual environment when starting a new project. This allows you to install project-specific dependencies without concerns about conflicts with locally installed dependencies.</p><p>Once you have Python installed on your computer, use the terminal to navigate to the folder where you want your Env folder to reside, then execute the following commands one after the other.</p><pre>1. python3 -m venv Env<br>2. cd Env/bin<br>3. source activate<br>4. pip install django djangorestframework</pre><p>The first line initializes your environment in a folder called Env. The second line navigates to a bin folder. The third line activates the virtual environment and the last line installs django and django rest framework (DRF) which are the base dependencies we will need for now.</p><h4>Setting up your Project and App</h4><p>Now that Django is installed in your virtual environment, execute these commands one after the other in your terminal to initialize your project and app. Make sure you’re in a directory you want your whole project to reside.</p><pre>1. django-admin startproject APIproject<br>2. cd APIproject<br>3. python3 manage.py startapp APIapp</pre><p>django-admin is a global command-line utility for managing Django projects and applications, while manage.py is a project-specific script for performing tasks within a particular Django project.</p><p>To complete your set-up, make these changes to INSTALLED_APPS in your settings.py file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*OuMwpGfDK078oyRHWV787A.png" /><figcaption>settings.py</figcaption></figure><h4>Don’t forget your Models!</h4><p>Django uses something called the MVT architecture (Model — data handling, View — Logic, and Template — Presentation). Imagine your application as a house: the Model is like the foundation, holding all the important information, just as a database stores data for our app.</p><p>We create Models using Python classes to define the structure of our data and how it should be stored in the database. Each Model class represents a table in the database. In this project, our API will facilitate restaurant operations by enabling customers to book reservations and access the menu. Here’s what our two models will look like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OOb6282q0ZBxKkMKI9m7Xw.png" /><figcaption>models.py</figcaption></figure><p>These classes will create two database tables called “booking” and “menu.” The default database for Django is SQLite, and we’ll be keeping it that way. SQLite is a lightweight, serverless, self-contained database management system, although it is not scalable and should only be used in a development environment. Next, we run these migration commands in the terminal to initialize the database.</p><pre>1. python3 manage.py makemigrations<br>2. python3 manage.py migrate</pre><h4>Serialization and Deserialization</h4><p>These terms may sound complex, but they’re actually quite straightforward. Think of it like this: you wouldn’t wear a swimsuit to a job interview, right? Similarly, data can’t always be presented in its original form — it needs to be adjusted depending on where it’s going. In Django REST Framework (DRF), data is stored as querysets, but to share it with others over the internet, like sending it as JSON or XML, it needs to be converted. Likewise, when data comes in from requests, it’s in a different format, so DRF has to change it back into something it can understand. Here are the python classes we use to serialize our models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*xy8iCfLFv_KW9q531kEBXg.png" /><figcaption>serializers.py</figcaption></figure><p>You might be wondering why we’re serializing a User model when we didn’t define it in our models.py. The User model is a built-in model in Django, which can be imported from django.contrib.auth.models. It includes all user instances, along with their permissions and group associations.</p><h4>ViewSets</h4><p>There are multiple methods to handle requests to an API, including GET, POST, PUT, PATCH, and DELETE — each corresponding to CRUD operations. Utilizing ViewSets is a convenient approach to organize and implement API endpoints in DRF.</p><p>Import your Models and Serializers and viewsets from rest_framework.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fq73a7QVkx4g0nFB1xnoCQ.png" /><figcaption>views.py</figcaption></figure><p>Let’s begin by creating a viewset for the menus. Setting up a viewset is quite straightforward. You simply create a queryset that fetches all the objects from the menu model and assign the menu serializer to a serializer class object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*zdhRx2pthPxvg0-MTxtCJA.png" /><figcaption>views.py</figcaption></figure><h4>Routing</h4><p>In your project, you have a default urls.py file at the project level. You need to create a urls.py file at the app level. The only difference is the path. The project-level urls.py is located in the same folder as your settings.py, while the app-level urls.py will be in the same folder as your models.py.</p><p>ViewSets use a class called DefaultRouter ,imported from rest_framework.routers. DefaultRouter class is used to generate URL patterns for API views, simplifying the process of defining URL routes for CRUD operations in Django REST Framework.</p><p>You assign DefaultRouter() to a router object and then register your MenuViewset from your views.py.</p><p>Your url.py files should be updated to look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*POeu5tch6w4PHcIJkXcDPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*AevMGeh1LmTOS-KQBmkZ3A.png" /><figcaption>urls.py App Level | urls.py Project Level</figcaption></figure><h4>Catch your breath</h4><p>While we’re not finished yet, we’ve made significant progress. The API should now be functioning smoothly. Run this command in your terminal to see the current status.</p><pre>python3 manage.py runserver</pre><p>If you’ve been on track, the server should run successfully and <a href="http://127.0.0.1:8000/api/">http://127.0.0.1:8000/api/</a> should take you to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p8I_8IG9EuN9tYWunX9L_g.png" /><figcaption><a href="http://127.0.0.1:8000/api/">http://127.0.0.1:8000/api/</a></figcaption></figure><p>Clicking <a href="http://127.0.0.1:8000/api/menu/">http://127.0.0.1:8000/api/menu/</a> would output all the objects from the menu model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gJ46BjoAdG2GXPObvXAZew.png" /><figcaption><a href="http://127.0.0.1:8000/api/menu/">http://127.0.0.1:8000/api/menu/</a></figcaption></figure><p>Do you see an empty list? Wondering why? It’s because we haven’t added any data to our menu model yet. So, it’s expected that there are no results.</p><p>There are many ways we can add entries to our menu model. A direct and easy way is to fill in the HTML form you can see at the bottom of the screen. Fill in random data and click post. Do it two more times so we have three entries in our menu model. Click Get at the top right to see all the entries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lN8kZm5M67VntW39jsrUzA.png" /><figcaption>[GET] <a href="http://127.0.0.1:8000/api/menu/">http://127.0.0.1:8000/api/menu/</a></figcaption></figure><p>You can view each entry individually by adding the id to the end of the link.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EzrqtplNLpH-jkSbzwKY6g.png" /><figcaption><a href="http://127.0.0.1:8000/api/menu/4/">http://127.0.0.1:8000/api/menu/4</a></figcaption></figure><p>Do you notice that the POST method has been changed to PUT? PUT is used for updating an entry. This means you can update a specific entry using its individual link.</p><h4>Renderer Classes</h4><p>Let’s revisit our analogy about wearing a swimsuit to a job interview. Just as you’d dress appropriately for each unique setting, clients consuming your API may need data in different formats to suit their own contexts. These formats could include HTML, XML, JSON, plain text, YAML, or even CSV. Fortunately, Django Rest Framework simplifies this by offering <em>Renderer</em> classes that can flexibly render your data into these various formats, making your API versatile and adaptable to different client needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*XhjQ4VTGNmFxf-8LCPgeZQ.png" /><figcaption>settings.py</figcaption></figure><p>In Django Rest Framework (DRF), the default renderer class is the BrowsableAPIRenderer, which provides the interactive API interface we&#39;ve been using so far.</p><p>The JSONRenderer outputs data in JSON format, a lightweight and highly readable format that&#39;s widely preferred by developers for its simplicity and efficiency.</p><p>The XMLRenderer, while heavier, is capable of handling more complex data structures and is useful when working with systems that require XML formatting.</p><p>If you need to use XMLRenderer, CSVRenderer, or YAMLRenderer in DRF, you’ll need to install their respective libraries in your development environment to enable these formats.</p><pre>pip install djangorestframwework-xml<br>pip install djangorestframwework-csv<br>pip install djangorestframwework-yaml</pre><h4>Let’s Test with Insomnia</h4><p>As you build your API, it’s crucial to develop a habit of testing continuously. Regular testing allows you to catch mistakes early and identify edge cases quickly, saving time and reducing potential issues down the line. Testing an API involves sending various requests to your endpoints and comparing the actual responses with the expected results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xgRNlYXxYkwXqi9SlMg3dg.png" /><figcaption><a href="https://insomnia.rest/">https://insomnia.rest/</a></figcaption></figure><p>To facilitate our testing, we’ll be using <strong>Insomnia</strong>, a powerful and user-friendly API client designed for making HTTP requests. Insomnia lets you organize, send, and analyze requests with ease, making it an excellent tool for ensuring your API performs as intended across different scenarios. Learn all the essentials of Insomnia in just 5 minutes with the video below.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfzLPHpOP3Wc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfzLPHpOP3Wc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FfzLPHpOP3Wc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7bb0b0639da91d501558b5eeacc8cea8/href">https://medium.com/media/7bb0b0639da91d501558b5eeacc8cea8/href</a></iframe><p>If you’ve followed along carefully up to this point, you now know how to initialize a basic API and test it using Insomnia. In the next part of this series, we’ll dive into advanced features like filtering, authentication, authorization, pagination, throttling, and deploying your API to a production environment. These elements are essential for building industry-standard APIs that are secure, efficient, and provide a great user experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d2b72d4e3c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Final Prototype — ErcasPay Hackathon]]></title>
            <link>https://medium.com/@isaacenobun/final-prototype-ercaspay-hackathon-f058b805f2bd?source=rss-17902d670bbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/f058b805f2bd</guid>
            <category><![CDATA[payments]]></category>
            <category><![CDATA[ercaspay]]></category>
            <category><![CDATA[biometric-payments]]></category>
            <dc:creator><![CDATA[Isaacenobun]]></dc:creator>
            <pubDate>Mon, 16 Dec 2024 22:56:06 GMT</pubDate>
            <atom:updated>2024-12-16T22:56:06.350Z</atom:updated>
            <content:encoded><![CDATA[<h3>Final Prototype — ErcasPay Hackathon</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aNGLiYSoCsjdG8EnJBMD1w.png" /></figure><p>Over the past six days, my teammate Mubarak Lawal and I have been working on an exciting project called Tapit, a cross-platform biometric payment system that leverages the ErcasPay and Identity Pass API’s to process payments. If you’re curious about the motivation behind this project, you can check out my previous post <a href="https://medium.com/@isaacenobun/tapit-x-ercaspay-cross-platform-biometrics-payments-7f8376eb5e2a"><strong>here</strong></a> for more details.</p><h4>Product</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tUm8afWEih9MLBRCEpxqww.png" /><figcaption>Landing Page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-zDrnpu6U7kuWfl5XSdhag.png" /><figcaption>Onboarding</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J3S0hUgCqEBz6gKk-MPXEA.png" /><figcaption>User Dashboard</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DEUW3zkuKJfirVIrwJBgCw.png" /><figcaption>Demo</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2gh0OKxdt0Z4KoIkKxOeWw.png" /><figcaption>POS Payment Demo</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OvBtrx9Yca2BPd77eom2qw.png" /><figcaption>Online Payment Demo</figcaption></figure><p>Designing and building this from the ground up has been an incredible experience. Tapit holds immense potential, and hopefully, one day, when you walk into a store and pay with just your fingerprint, Tapit will be the technology making it happen.</p><p>Click <a href="https://tapit-ercas.onrender.com/"><strong>here</strong></a><strong> </strong>to try Tapit on your device. Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f058b805f2bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tapit x ErcasPay — Cross Platform Biometrics payments]]></title>
            <link>https://medium.com/@isaacenobun/tapit-x-ercaspay-cross-platform-biometrics-payments-7f8376eb5e2a?source=rss-17902d670bbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f8376eb5e2a</guid>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[biometrics]]></category>
            <category><![CDATA[payments]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Isaacenobun]]></dc:creator>
            <pubDate>Sun, 15 Dec 2024 16:48:47 GMT</pubDate>
            <atom:updated>2024-12-15T16:48:47.887Z</atom:updated>
            <content:encoded><![CDATA[<h3>Tapit x ErcasPay — Cross Platform Biometrics payments</h3><p>I saw on the news last week that a company in China introduced a contactless payment system where users simply hover their palm over a scanner. My amusement quickly faded when I remembered I still need to type my PIN on a POS terminal to pay at my local store. Honestly, Nigeria and West Africa are lagging behind in payment technology by at least two generations. It’s about time we take steps to bridge this gap.</p><h4>An Opportunity with ErcasPay</h4><p><a href="https://ercaspay.com/"><strong>ErcasPay</strong></a> has launched a hackathon focused on the innovative use of their APIs. ErcasPay API’s help businesses manage local and cross-border payments, create payment links, handle invoicing, and efficiently track transactions. Their platform supports multiple currencies for global accessibility and offers secure, compliant solutions certified by PCI DSS and PSSP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vGf__nLNhZ1r0r9ifTtzxw.png" /><figcaption>ErcasPay Hackathon</figcaption></figure><p>So we decided to build Tapit, a cross-platform biometric payment system that allows anyone to make payments anywhere using just their fingerprints. Whether it’s POS payments, online transactions, or ATM withdrawals, people will now be able to authorize payments with just a <strong>Tap</strong>.</p><h4>Why and How?</h4><p>Why should Tapit exist? The answer is simple: payment fraud. In 2023 alone, $28 billion was lost globally to payment fraud. ATM cards are inherently insecure, with risks like card theft, skimming, and PIN compromise. Senior citizens, in particular, are highly vulnerable to these threats. Beyond security, paying with just a tap is significantly faster and more convenient than traditional payment methods, offering a modern and efficient alternative to outdated systems.</p><p>How does it work? Simple. Tapit links a user’s bank account to their fingerprint. When a fingerprint is used for payment, Tapit queries the account linked to that fingerprint and instructs ErcasPay to process the payment. If the account has insufficient funds, the payment will fail.</p><h4>Day 1 to 5</h4><p>So far, so good! We’ve developed a solid execution plan and are about 40% into building a working prototype. We’ve successfully created an account on ErcasPay’s platform to obtain API credentials and reviewed the API documentation for endpoints, parameters, and authentication methods (which, by the way, is quite straightforward).</p><p>Our prototype will include a landing page, an onboarding screen, a user and merchant dashboard, and a demo of the payment flow. Below are some low-fidelity wireframes of the prototype we’ll be implementing in the coming days.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vb9j2KqgZAzPAvQxgA-PTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C_itAkzFr_HcHvXcKGg3pw.png" /><figcaption>Wireframes of Landing Page and Dashboard</figcaption></figure><h4>What Next?</h4><p>The core of our system will rely on both ErcasPay’s API for handling payments and Identity Pass’s API for authenticating user biometrics. Our next step is to develop the backend to seamlessly integrate these APIs and test their functionality. We will also be completing the frontend designs for the product in the coming days.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5nK-eMe526RYc4yynHt5ag.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f8376eb5e2a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>