Improving Your Rails Codebase

Source: Giphy Dot Com
  • The data required for KYC include a photo, proof of address, bank account, and NIN (National Identification Number).
  • Users may skip the KYC setup stage while creating an account.
  • Users need to be KYC compliant before they can make transactions above a set limit (say NGN 1k).
  • The company verifies the data submitted by the user before approving the user’s profile as KYC compliant.
  • The company sends periodic reminders to registered users who aren’t KYC compliant.
  • model to represent the KYC entity.
  • view to render the form to get the information.
  • controller action to map the route and initiate the setup process.
  • Store the photo in a 3rd party service e.g S3, Filestack, Cloudinary, etc.
  • Make some external API calls to verify the bank details, address, and NIN.
  • Send an email to the user to confirm a successful KYC data submission, or inform them of any problems that occurred while verifying their submission.
# app/workers/address_verification_worker.rbclass AddressVerificationWorker
...
end
# app/services/address_verification_service.rbclass AddressVerificationService
...
end

--

--

--

Human | www.mattwal.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Creating REST Service and REST Connector — Create Sample Test User

Part 1 — The Database.

Evolving a Solid Architecture

Automating Instagram Posts with Python and Instagram Graph API

Demo: Logic Coding Inside Docassemble

What is Hugo — Static Website Server

HackTheBox-Chatterbox

What I Wish I Knew Before Breaking Into Tech

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Olaide Ojewale

Olaide Ojewale

Human | www.mattwal.com

More from Medium

Handling Race Conditions in Rails Application

Construyendo una API RESTfull JSON con Rails 6 [2da Parte].

Ruby and Ruby on Rails

Learning Proper RESTful Design By Looking At Rails Generators